2020-06-29 20:28:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
function write_help {
|
|
|
|
echo "Usage:"
|
|
|
|
echo " ./setup.sh markdown Setup Boilerplate for usage with Markdown"
|
|
|
|
echo " ./setup.sh latex Setup Boilerplate for usage with LaTex"
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ $# == 0 ]
|
|
|
|
then
|
|
|
|
write_help
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $1 == "markdown" ]
|
|
|
|
then
|
2021-05-16 20:01:36 +00:00
|
|
|
#cp templates/markdown.gitlab-ci.yml ./.gitlab-ci.yml
|
|
|
|
cp templates/markdown/.drone.yml ./.drone.yml
|
2023-02-02 15:48:24 +00:00
|
|
|
mkdir -p .github/workflows
|
2022-09-14 07:53:03 +00:00
|
|
|
cp templates/markdown/github-workflow.yml ./.github/workflows/latex.yml
|
|
|
|
#cp templates/markdown/azure-pipelines.yml ./azure-pipelines.yml
|
2021-05-16 20:01:36 +00:00
|
|
|
cp templates/markdown/tasks.json ./.vscode/tasks.json
|
|
|
|
cp templates/markdown/main.tex ./main.tex
|
2020-06-29 20:28:44 +00:00
|
|
|
elif [ $1 == "latex" ]
|
|
|
|
then
|
2021-05-16 20:01:36 +00:00
|
|
|
#cp templates/latex.gitlab-ci.yml ./.gitlab-ci.yml
|
2022-09-14 07:53:03 +00:00
|
|
|
#cp templates/latex.azure-pipelines.yml ./azure-pipelines.yml
|
2020-06-29 20:28:44 +00:00
|
|
|
cp templates/latex.tasks.json ./.vscode/tasks.json
|
|
|
|
else
|
|
|
|
write_help
|
|
|
|
fi
|