[X2Go-Commits] [buildscripts] 01/01: identify-cygwin-packages.sh: Only require the filename and assume the file is under /bin/

git-admin at x2go.org git-admin at x2go.org
Thu Sep 18 00:32:43 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit 22bcff7f8301a35f3231bc08a38c19358b15cc3b
Author: Mike DePaulo <mikedep333 at gmail.com>
Date:   Wed Sep 17 18:32:35 2014 -0400

    identify-cygwin-packages.sh: Only require the filename and assume the file is under /bin/
---
 bin/identify-cygwin-packages.sh |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/identify-cygwin-packages.sh b/bin/identify-cygwin-packages.sh
index ea2bee7..a16c885 100755
--- a/bin/identify-cygwin-packages.sh
+++ b/bin/identify-cygwin-packages.sh
@@ -3,7 +3,7 @@
 export OUT="cygwin files and packages.csv"
 
 if [[ $# == 0 ]]; then
-	echo "Example usage: $0 /bin/sh.exe /bin/libgcc_s-1.dll"
+	echo "Example usage: $0 sh.exe libgcc_s-1.dll"
 	echo "Output will be appended to \"${OUT}\""
         echo "This script is intended to help with GPL compliance."
 	echo "Currently this script does not identify the source package,"
@@ -15,6 +15,7 @@ echo "File,Binary Package w/ Version,Source Package" >> "${OUT}"
 
 for file in "$@"
 do
-        binPkg=`cygcheck -f $file| tr -d '\r' | tr -d '\n'`
+		filepath="/bin/${file}"
+        binPkg=`cygcheck -f $filepath| tr -d '\r' | tr -d '\n'`
         echo "${file},${binPkg}," >> "${OUT}"
 done

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list