summaryrefslogtreecommitdiff
path: root/install/debian/orig-tar.sh
blob: eac52f5bc41bd8595146e03d2801a39d67194f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
TAR=$3
DIR=fpcbuild-$2

# clean up the upstream tarball
tar -x -z -f $TAR
tar -c -z -f $TAR --exclude '*.dll' --exclude '*.exe' --exclude '*.log' --exclude '*.o' $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