File: orig-tar.sh

package info (click to toggle)
lapack 3.2.1-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 55,196 kB
  • ctags: 33,064
  • sloc: fortran: 448,214; perl: 8,226; makefile: 1,528; sh: 87; awk: 70
file content (37 lines) | stat: -rw-r--r-- 837 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
28
29
30
31
32
33
34
35
36
37
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=lapack-$2
TAR=../lapack_$2.orig.tar.gz

# clean up the upstream tarball
tar -z -x -f $3
rm $3
(cd $DIR
echo ""
echo "Downloading manpages from netlib website"
wget http://www.netlib.org/lapack/manpages.tgz >/dev/null 2>&1
echo "Unpack manpages.tgz"
tar zxf manpages.tgz --strip-components 1
rm manpages.tgz
mv TESTING testing; ln -s testing TESTING
mv SRC src; ln -s src SRC
mv INSTALL install; ln -s install INSTALL
mv BLAS blas; ln -s blas BLAS
mv manpages/man .
rm -rf manpages
)
RULES=$(pwd)/debian/rules
(cd $DIR ; $RULES lug/index.html)
echo tar -c -z -f $TAR $DIR
tar -c -z -f $TAR $DIR
rm -rf $DIR

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
    . .svn/deb-layout
    mv $TAR $origDir
    echo "moved $TAR to $origDir"
fi

exit 0