File: repack.sh

package info (click to toggle)
flashgot 1.4.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,932 kB
  • sloc: cpp: 1,932; sh: 9; makefile: 8
file content (15 lines) | stat: -rwxr-xr-x 282 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

VERSION=$2
XPI=$3
PACKAGE=$(dpkg-parsechangelog | sed -n 's/^Source: //p')
TAR=../${PACKAGE}_${VERSION}.orig.tar.gz
DIR=../${PACKAGE}-${VERSION}

/usr/bin/xpi-unpack $XPI $DIR

tar -zcf ../${PACKAGE}_${VERSION}+dfsg.orig.tar.gz --exclude *.exe $DIR

rm -rf $DIR
rm $XPI