make git magic
This commit is contained in:
parent
71ae5733ae
commit
14f8dbbec9
1 changed files with 6 additions and 1 deletions
7
init.sh
7
init.sh
|
@ -1,9 +1,14 @@
|
|||
#!/bin/bash
|
||||
{
|
||||
{ ## DO NOT REMOVE THIS OR EVERYTHING BLOWS UP
|
||||
source config
|
||||
find -type f | xargs sed -i "s/\$mainfile/$(printf '%s\n' "$mainfile" | sed -e 's/[\/&]/\\&/g')/g"
|
||||
find -type f | xargs sed -i "s/\$course/$(printf '%s\n' "$course" | sed -e 's/[\/&]/\\&/g')/g"
|
||||
find -type f | xargs sed -i "s/\$stylefile/$(printf '%s\n' "$stylefile" | sed -e 's/[\/&]/\\&/g')/g"
|
||||
find -type f | xargs sed -i "s/\$repo/$(printf '%s\n' "$repo" | sed -e 's/[\/&]/\\&/g')/g"
|
||||
find -type f | xargs sed -i "s/\$term/$(printf '%s\n' "$term" | sed -e 's/[\/&]/\\&/g')/g"
|
||||
rm init.sh
|
||||
rm -rf .git
|
||||
git init
|
||||
git add .
|
||||
git commit -m "initial commit"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue