Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Informatik 8
TexCommon
Commits
a934bc32
Commit
a934bc32
authored
Jul 20, 2018
by
Sergey Goncharov
Browse files
improving make pack
parent
6bd0fbef
Pipeline
#14645
passed with stage
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
a934bc32
...
...
@@ -157,12 +157,21 @@ pack: $(TEXSRC)
make cleanall
$(MAKE)
pdf
mkdir
-p
submission
# purging old files if any
rm
-Rf
submission/
*
cp
$(THISDIR)
*
.tex
$(THISDIR)
*
.sty
$(THISDIR)
*
.cls submission
-
cp
*
.bib
*
.bbl
*
.bst submission
# copying all files from TexCommon mentioned in log-file
for
file
in
$(THISDIR)
/
*
;
do
\
if
grep
--quiet
$(
shell
basename
$(THISDIR)
)
/
$
$(
basename
$$
file
)
*
.log
;
\
then
cp
-v
$$
file submission
;
\
fi
;
done
cp
*
.bib
*
.bbl
*
.bst submission
# copying all files from the current directory mentioned in log-file
for
file
in
*
;
do if
grep
--quiet
$$
file
*
.log
;
then
cp
$$
file submission
;
fi
;
done
# remove comments
for
file
in
submission/
*
.tex
;
do
perl
-i
-pe
's/(^|[^\\])%.*/\1%/'
$$
file
;
done
cd
submission
;
zip
-r
../submission.zip
*
# remove appendix
for
file
in
submission/
*
.tex
;
do
sed
-i
'/\\appendix/,$$c \\\end{document}'
$$
file
;
done
cd
submission
;
rm
*
.aux
*
.blg
*
.log
*
.out
;
rm
-f
../submission.zip
;
zip
-r
../submission.zip
*
.PHONY
:
up
up
:
$(PDFNAMES)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment