File: make-dist.sh

package info (click to toggle)
xkeycaps 2.47-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,268 kB
  • sloc: ansic: 40,772; sh: 132; makefile: 11
file content (15 lines) | stat: -rwxr-xr-x 345 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -ex

NAME=xkeycaps
VERSION=$(dpkg-parsechangelog 2>&1 | perl -ne 'print $1 if /^Version: ([^-]*)/')
TGZ=${NAME}_$VERSION.orig.tar.gz
TGZ_DIR=$NAME-$VERSION

[ ! -f ../$TGZ ]
mkdir ../$TGZ_DIR
cp -a . ../$TGZ_DIR
rm -rf ../$TGZ_DIR/debian
find ../$TGZ_DIR -name .svn | xargs rm -rf
cd .. && tar cvz -f $TGZ $TGZ_DIR
rm -rf ../$TGZ_DIR