summaryrefslogtreecommitdiff
path: root/bin/identify-cygwin-packages.sh
diff options
context:
space:
mode:
authorMike DePaulo <mikedep333@gmail.com>2014-09-17 18:32:35 -0400
committerMike DePaulo <mikedep333@gmail.com>2014-09-17 18:32:35 -0400
commit22bcff7f8301a35f3231bc08a38c19358b15cc3b (patch)
tree4510f5ae6bda87dbb47a5ad45e5a758d44ffe275 /bin/identify-cygwin-packages.sh
parent1b0b435d4312e60cb6c6264e4027b77eeb95e7ac (diff)
downloadbuildscripts-22bcff7f8301a35f3231bc08a38c19358b15cc3b.tar.gz
buildscripts-22bcff7f8301a35f3231bc08a38c19358b15cc3b.tar.bz2
buildscripts-22bcff7f8301a35f3231bc08a38c19358b15cc3b.zip
identify-cygwin-packages.sh: Only require the filename and assume the file is under /bin/
Diffstat (limited to 'bin/identify-cygwin-packages.sh')
-rwxr-xr-xbin/identify-cygwin-packages.sh5
1 files 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