Skip to content

Commit

Permalink
feat: complete the handbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Oct 6, 2023
1 parent 0d1adbb commit c660b6a
Show file tree
Hide file tree
Showing 6 changed files with 431 additions and 187 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,5 @@ scripts/*
!scripts/*.ps1

.DS_Store

BIT-bithesis-graduates*
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ test: doc copy FORCE_MAKE
cd $(SCAFFOLDDIR)/presentation-slide && latexmk && cd ..
cd $(TESTDIR)/doctor-thesis && latexmk && cd ..
cd $(TESTDIR)/autorefs && latexmk && cd ..
cp ./the-graduates-handbook && latexmk && cd ..

regression-test: cls
$(REGRESSION_TEST_COMMAND)
Expand All @@ -67,6 +68,7 @@ copy: cls
cp bithesis.cls $(SCAFFOLDDIR)/reading-report
cp bithesis.cls $(TESTDIR)/doctor-thesis
cp bithesis.cls $(TESTDIR)/autorefs
cp bithesis.cls ./the-graduates-handbook
cp bitreport.cls $(SCAFFOLDDIR)/lab-report
cp bitbeamer.cls $(SCAFFOLDDIR)/presentation-slide

Expand Down Expand Up @@ -99,6 +101,23 @@ pkg: doc
mv ./bithesis/README-bithesis.md ./bithesis/README.md
zip -r bithesis.zip bithesis

GRAD_DEST_DIR = ./BIT-bithesis-graduates

grad: doc copy FORCE_MAKE
# if $version is not specified, alert the user.
@if [ -z "$$version" ]; then \
echo -e "\e[32mPlease specify the version of the template you want to generate.\e[0m"; \
echo -e "\e[32mFor example: make grad version=1.0.0\e[0m"; \
exit 1; \
fi
cd ./the-graduates-handbook && latexmk main && cd -
cd $(SCAFFOLDDIR)/graduate-thesis && latexmk && latexmk -c && cd -
cp -r $(SCAFFOLDDIR)/graduate-thesis ${GRAD_DEST_DIR}-${version}
cp ./bithesis.pdf ${GRAD_DEST_DIR}-${version}/
cp ./the-graduates-handbook/main.pdf ${GRAD_DEST_DIR}-${version}/quick-start.pdf
zip -r ${GRAD_DEST_DIR}-${version}.zip ${GRAD_DEST_DIR}-${version}


examples: cls
cp bithesis.cls $(EXAMPLEDIR)/cover/
cp bithesis.cls $(EXAMPLEDIR)/publications/
Expand Down
Loading

0 comments on commit c660b6a

Please sign in to comment.