commit:     1d6d75bd4e5143e56b09a664df58d719fbe92164
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 13 21:47:16 2016 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Feb 13 21:47:16 2016 +0000
URL:        https://gitweb.gentoo.org/proj/elfix.git/commit/?id=1d6d75bd

misc/bundle.sh: generalize bundle.sh for all misc packages

 misc/bundle.sh               | 16 ++++++++++++++++
 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 
-

Reply via email to