move files when initializing

This commit is contained in:
Maximilian Keßler 2022-02-15 23:50:22 +01:00
parent 24d6c4caac
commit 8ffad3ff1b
5 changed files with 7 additions and 0 deletions

View file

@ -6,6 +6,13 @@ find -type f | xargs sed -i "s/\$course/$(printf '%s\n' "$course" | sed -e 's/[\
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"
mv mainfile.tex $mainfile.tex
mv stylefile.tex $stylefile.tex
mv gitlab-ci.yml .gitlab-ci.yml
mv gitignore .gitignore
mv gitmodules .gitmodules
mv latexmkrc .latexmkrc
mv ci .ci
rm init.sh
rm -rf .git
git init