File: orig-tar.sh

package info (click to toggle)
lapack 3.4.1+dfsg-1+deb70u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 103,172 kB
  • sloc: fortran: 469,422; ansic: 127,041; makefile: 3,817; python: 267; sh: 94
file content (30 lines) | stat: -rwxr-xr-x 670 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
#!/bin/sh -e

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

# clean up the upstream tarball
tar -z -x -f $3
rm $3
mv $ORIGDIR $DIR
(cd $DIR
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
rm lapacke/example/example_DGESV_rowmajor.c lapacke/example/example_ZGESV_rowmajor.c
)
echo tar -j -c -f $TAR $DIR
tar -j -c -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