File: repack.sh

package info (click to toggle)
saods9 7.3.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,044 kB
  • ctags: 21,414
  • sloc: cpp: 66,406; tcl: 60,491; ansic: 19,507; sh: 9,996; xml: 1,375; makefile: 892; perl: 68
file content (27 lines) | stat: -rwxr-xr-x 721 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# ./debian/repack
# Repackage the DS9 source files, with unnecessary files removed. 

ver=$2
orig_tar=$3
tardir=$(dirname $orig_tar)
wd=$(mktemp -d)
echo $ver $orig_tar $tardir $wd

tar xf $orig_tar -C $wd 
srcdir=$wd/*

for subdir in funtools\* tcl8.\* tcllib-\* tk8.\* tkimg\* signal_ext\* \
              tktable\* tkcon-\* tclxml-\* wcssubs-\* xpa-\* tkblt\* win \
              zip-\* zlib-\* compilers ast-\* zvfs tkmacosx\* ; do
    rm -rf $srcdir/$subdir
done

find $srcdir/ -name config.status |xargs rm -f
find $srcdir/ -name conf.h |xargs rm -f

dfsg_tar=$tardir/saods9_$ver+repack.orig.tar.xz
tar cJf $dfsg_tar -C $wd .
rm -rf $wd

exec uupdate --no-symlink --upstream-version $ver+repack $dfsg_tar