File: orig-tar.sh

package info (click to toggle)
mac-widgets 0.10.0%2Bsvn416-dfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,968 kB
  • sloc: java: 9,909; makefile: 13; sh: 12
file content (18 lines) | stat: -rwxr-xr-x 629 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
SOURCE_NAME=mac-widgets
VERSION=$2
DEBIAN_VERSION=$VERSION-dfsg1
UPSTREAM_SOURCE_DIR=${SOURCE_NAME}-${VERSION}
DEBIAN_SOURCE_DIR=${SOURCE_NAME}-$DEBIAN_VERSION
TAR=${USCAN_DESTDIR:-.}/${SOURCE_NAME}_$DEBIAN_VERSION.orig.tar.bz2

# clean up the upstream tarball
tar xf $3
# rename upstream source dir
mv ${UPSTREAM_SOURCE_DIR} ${DEBIAN_SOURCE_DIR}
# Remove excluded files
tar -c -j -X debian/orig-tar.exclude -f $TAR ${DEBIAN_SOURCE_DIR}/
rm -rf ${DEBIAN_SOURCE_DIR} $3
echo "${SOURCE_NAME}: Applied DFSG removals and set up tarball to `basename ${TAR}`"