diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-02-13 16:47:16 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-02-13 16:47:16 -0500 |
commit | 1d6d75bd4e5143e56b09a664df58d719fbe92164 (patch) | |
tree | 9dad06fff47d1c958766d6ab49278b837f3eae3f | |
parent | Update .gitignore to exclude autotools' compile script (diff) | |
download | elfix-1d6d75bd4e5143e56b09a664df58d719fbe92164.tar.gz elfix-1d6d75bd4e5143e56b09a664df58d719fbe92164.tar.bz2 elfix-1d6d75bd4e5143e56b09a664df58d719fbe92164.zip |
misc/bundle.sh: generalize bundle.sh for all misc packages
-rwxr-xr-x | misc/bundle.sh | 16 | ||||
-rwxr-xr-x | misc/install-xattr-bundle.sh | 10 |
2 files changed, 16 insertions, 10 deletions
diff --git a/misc/bundle.sh b/misc/bundle.sh new file mode 100755 index 0000000..13e9318 --- /dev/null +++ b/misc/bundle.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [[ -z $2 ]]; then + echo "Usage $0 <package> <version>" + exit +fi + +if [[ ! -d $1 ]]; then + echo "No such pacakge $1 to bundle" + exit +fi + +PKG=${1%%/} + +tar jcvf ${PKG}-${2}.tar.bz2 ${PKG}/ +gpg -s -a -b ${PKG}-${2}.tar.bz2 diff --git a/misc/install-xattr-bundle.sh b/misc/install-xattr-bundle.sh deleted file mode 100755 index b332606..0000000 --- a/misc/install-xattr-bundle.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -if [[ -z ${1} ]]; then - echo "Usage $0 <version>" - exit -fi - -tar jcvf install-xattr-${1}.tar.bz2 install-xattr/ -gpg -s -a -b install-xattr-${1}.tar.bz2 - |