Created
June 1, 2010 21:38
-
-
Save kwharrigan/421541 to your computer and use it in GitHub Desktop.
Process Innosetup Manifest File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
EXPECTED_ARGS=1 | |
B2F='gsub(/\\/, "/")' | |
OUT='("basename \"" $2 "\"") | getline filename ; printf("%s %s %s %s\n", $1, filename, $3, $5)' | |
if [ $# -ne $EXPECTED_ARGS ] | |
then | |
echo "Usage: process_manifest.sh <filename>" | |
exit 1 | |
fi | |
cat $1 | awk -F "\t" '{ $B2F } { ("basename \"" $2 "\"") | getline filename ; printf("%s %s %s %s\n", $1, filename, $3, $5) }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment