#40 added setup script to init repo
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -13,6 +13,7 @@ chapter/out.md | ||||
| *.iml | ||||
| .sublime-project | ||||
| .sublime-workspace | ||||
| .vscode/tasks.json | ||||
|  | ||||
| ## MS Office Temp Files | ||||
| ~$*.ppt* | ||||
|   | ||||
							
								
								
									
										25
									
								
								setup.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										25
									
								
								setup.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| #!/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 | ||||
|     cp templates/markdown.gitlab-ci.yml ./.gitlab-ci.yml | ||||
|     cp templates/markdown.tasks.json ./.vscode/tasks.json | ||||
| elif [ $1 == "latex" ] | ||||
| then | ||||
|     cp templates/latex.gitlab-ci.yml ./.gitlab-ci.yml | ||||
|     cp templates/latex.tasks.json ./.vscode/tasks.json | ||||
| else | ||||
|     write_help | ||||
| fi | ||||
							
								
								
									
										24
									
								
								templates/markdown.tasks.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								templates/markdown.tasks.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| { | ||||
|     // See https://go.microsoft.com/fwlink/?LinkId=733558 | ||||
|     // for the documentation about the tasks.json format | ||||
|     "version": "2.0.0", | ||||
|     "tasks": [ | ||||
|         { | ||||
|             "label": "latexmk", | ||||
|             "type": "shell", | ||||
|             "command": "${workspaceFolder}/build.sh pandoc", | ||||
|             "group": { | ||||
|                 "kind": "build", | ||||
|                 "isDefault": true | ||||
|             }, | ||||
|             "dependsOrder": "sequence", | ||||
|             "dependsOn": ["clean"] | ||||
|         }, | ||||
|         { | ||||
|             "label": "clean", | ||||
|             "type": "shell", | ||||
|             "command": "${workspaceFolder}/build.sh clean", | ||||
|             "group": "none", | ||||
|         } | ||||
|     ] | ||||
| } | ||||
		Reference in New Issue
	
	Block a user