summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2006-09-07 08:04:48 +0000
committerBenedikt Boehm <hollow@gentoo.org>2006-09-07 08:04:48 +0000
commit278998cbb0c631e17099ec5f16abb7f83f49673f (patch)
tree48955fec82384e929af088d3ac9976cb7d5e62f8 /dietlibc/mkrelease
parentsync mkrelease scripts (diff)
downloadmisc-278998cbb0c631e17099ec5f16abb7f83f49673f.tar.gz
misc-278998cbb0c631e17099ec5f16abb7f83f49673f.tar.bz2
misc-278998cbb0c631e17099ec5f16abb7f83f49673f.zip
fix stackgap/ssp; fix execstacks; sync mkrelease
svn path=/; revision=466
Diffstat (limited to 'dietlibc/mkrelease')
-rwxr-xr-xdietlibc/mkrelease22
1 files changed, 14 insertions, 8 deletions
diff --git a/dietlibc/mkrelease b/dietlibc/mkrelease
index 7f309c2..d8787ad 100755
--- a/dietlibc/mkrelease
+++ b/dietlibc/mkrelease
@@ -1,14 +1,20 @@
#!/bin/bash
-if [ -z $2 ]; then
- echo "Usage: mkrelease <ver> <rev>"
+# Package name convention for dietlibc patches
+# dietlibc-patches-${PVR}.tar.bz2
+# where
+# PVR is the package version + revision (i.e. 2.0.1-r1)
+
+if [ -z $1 ]; then
+ echo "Usage: mkrelease <ver> [<rev>]"
exit 1
fi
-VER="${1}"
-REV="${2}"
+PVR=${1}
+
+[[ -n ${2} ]] && PVR=${1}-${2}
-shift 2
+P="dietlibc-patches-${PVR}.tar.bz2"
tmpdir=$(mktemp -du)
@@ -18,7 +24,7 @@ pushd ${tmpdir} >/dev/null
pushd patches >/dev/null
for dir in *; do
- [ "${dir}" == "${VER}-${REV}" ] && mv ${dir}/* .
+ [ "${dir}" == "${PVR}" ] && mv ${dir}/* .
rm -rf "${dir}"
done
@@ -28,8 +34,8 @@ rm -f mkrelease
popd >/dev/null
-tar cjvf ./dietlibc-${VER}-patches-${REV}.tar.bz2 -C ${tmpdir} . | sort
+tar cjvf ./${P} -C ${tmpdir} . | sort
rm -rf ${tmpdir}
-echo "Tarball is at ./dietlibc-${VER}-patches-${REV}.tar.bz2"
+echo "Tarball is at ./${P}"