Debian Codegraph @

debian/make-orig-tar

raw
1
2 tlnet=${1:-$HOME/public_html/tlnet}
3
4 package=tex-gyre
5 contents="tex-gyre tex-gyre-math"
6
7
8 version=`dpkg-parsechangelog --show-field version | sed -e s/-.*$//`
9
10 pkg="${package}-${version}"
11 orig="${package}_${version}.orig.tar.gz"
12
13 if [ -r $pkg ] ; then
14 echo "already here: $pkg"
15 exit 1
16 fi
17
18 unpackone() {
19 what=$1
20 for i in "" .doc .source .i386-linux ; do
21 fn="$tlnet/archive/$what${i}.tar.xz"
22 if [ -r "$fn" ] ; then
23 echo "unpacking $fn"
24 tar -xf "$fn"
25 fi
26 done
27 }
28
29 echo "installing from $tlnet"
30
31 mkdir -p $pkg
32 cd $pkg
33 for i in $contents ; do
34 unpackone $i
35 done
36 cd ..
37
38 GZIP=-9 tar -czf $orig $pkg
39