File: orig-tar.sh

package info (click to toggle)
springpython 1.2.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 588 kB
  • ctags: 843
  • sloc: python: 4,809; makefile: 14; sh: 6
file content (11 lines) | stat: -rwxr-xr-x 327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=springpython-$2+ds
TAR=springpython_$2+ds.orig.tar.gz

# Repack upstream source to tar.gz and clean it
tar zxf $3
mv springpython-* $DIR
GZIP=--best tar -cz --owner root --group root --mode a+rX -f $TAR $DIR
rm -rf $DIR springpython_$2.orig.tar.gz