[X2Go-Commits] [buildscripts] 06/12: bin/signtarballs: let script take a parameter which is the dir containing tarballs/binaries.
git-admin at x2go.org
git-admin at x2go.org
Thu Apr 6 08:34:54 CEST 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository buildscripts.
commit c548b92dbfcacc70c95ad7f6f0ed6a2c23b601ff
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Apr 6 08:28:32 2017 +0200
bin/signtarballs: let script take a parameter which is the dir containing tarballs/binaries.
---
bin/signtarballs | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/bin/signtarballs b/bin/signtarballs
index e7f50ce..5c305bc 100755
--- a/bin/signtarballs
+++ b/bin/signtarballs
@@ -1,6 +1,16 @@
#!/bin/bash
-test -d _releases_ && cd _releases_ || test -d ../_releases_ && cd ../_releases_ || exit 1
+typeset to_dir="${1}"
+
+if [ -z "${to_dir}" ] && [ -d "${to_dir}" ]; then
+ cd "${to_dir}"
+elif [ -d "_releases_" ]; then
+ cd "_releases"
+elif [ -d "../_releases_" ]; then
+ cd "../_releases"
+else
+ exit 1
+fi
find * -type f | egrep ".*(\.zip|\.tar\.gz|\.exe|\.dmg)$" | while read tarball; do
test -f "${tarball}.md5" || { printf "md5: "; md5sum "${tarball}" | tee "${tarball}.md5"; }
--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
More information about the x2go-commits
mailing list