summaryrefslogtreecommitdiff
path: root/scripts/tarpkg
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-10-11 19:36:32 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-10-11 19:36:32 +0200
commit6d26b19269a28ff576e872473cb3b4610a61fceb (patch)
treed93378254682782dbe0175dcf69edb1fbf65dbe3 /scripts/tarpkg
parentb45a02c444117a90d202706013d71a56813990e1 (diff)
make more apps statically linkable
- update libusb to latest upstream - update bluez to latest upstream - add a new PKG_OPTS option: libonly, useful for library only packages, which are not created, when static linking is choosen
Diffstat (limited to 'scripts/tarpkg')
-rwxr-xr-xscripts/tarpkg9
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/tarpkg b/scripts/tarpkg
index c126af594..818f99ea7 100755
--- a/scripts/tarpkg
+++ b/scripts/tarpkg
@@ -9,16 +9,11 @@ if [ "$1" = "build" ];then
pkgname=$(grep "^Package:" $2/CONTROL/control | sed -e "s/^[^:]*:[[:space:]]*//")
version=$(grep "^Version:" $2/CONTROL/control | sed -e "s/^[^:]*:[[:space:]]*//")
arch=$(grep "^Architecture:" $2/CONTROL/control | sed -e "s/^[^:]*:[[:space:]]*//")
- cd $2
- rm -rf CONTROL
- tar -czf $3/${pkgname}_${version}_${arch}.tar.gz .
- cd -
- exit 0
+ rm -rf $2/CONTROL
+ (cd $2 && tar -czf $3/${pkgname}_${version}_${arch}.tar.gz .)
elif [ "$1" = "install" ];then
tar -xzpf $2 -C ${INSTROOT}
- exit 0
else
echo "unknown command"
exit 1
fi
-exit 0