Skip to content

Commit

Permalink
fix: zip without parent folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Mar 20, 2024
1 parent 08910a6 commit 94d14b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ overleaf: doc FORCE_MAKE
mkdir overleaf
ls templates | \
xargs -I {} bash -c \
"cp -r ./templates/{} overleaf && cp $(PACKAGE).pdf ./overleaf/{} && zip -r ./overleaf/BIThesis-{}-v$(version).zip ./overleaf/{}"
"cp -r ./templates/{} overleaf && cp $(PACKAGE).pdf ./overleaf/{} && (cd overleaf/{}/ && zip -r ../BIThesis-{}-v$(version).zip .)"

dev:
ls bithesis.dtx | entr -s 'yes y | make doc && make copy'
Expand Down Expand Up @@ -116,7 +116,7 @@ grad: doc copy FORCE_MAKE
cp -r $(SCAFFOLDDIR)/graduate-thesis/ ${GRAD_DEST_DIR}-${version}/graduate-thesis/
cp ./bithesis.pdf ${GRAD_DEST_DIR}-${version}/'3-详细配置手册'.pdf
cp ./the-graduates-handbook/main.pdf ${GRAD_DEST_DIR}-${version}/'2-快速使用手册'.pdf
zip -rm ${GRAD_DEST_DIR}-${version}/"1-BIThesis-论文模板-${version}".zip ${GRAD_DEST_DIR}-${version}/graduate-thesis/.
(cd ${GRAD_DEST_DIR}-${version}/graduate-thesis/ && zip -rm ../"1-BIThesis-论文模板-${version}".zip . )
rmdir ${GRAD_DEST_DIR}-${version}/graduate-thesis
zip -r ${GRAD_DEST_DIR}-${version}.zip ${GRAD_DEST_DIR}-${version}

Expand Down

0 comments on commit 94d14b2

Please sign in to comment.