Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
7638 views
1
#!/bin/bash
2
3
REV=$(git describe --tags)
4
O=mupdf-$REV-source
5
6
echo git archive $O.tar
7
git archive --format=tar --prefix=$O/ HEAD > $O.tar
8
9
git submodule | while read R P T
10
do
11
M=$(basename $P)
12
echo git archive $O.$M.tar
13
git archive --format=tar --remote=$P --prefix=$O/$P/ HEAD > $O.$M.tar
14
tar Af $O.tar $O.$M.tar
15
rm -f $O.$M.tar
16
done
17
18
echo gzip $O.tar
19
gzip -f $O.tar
20
21