Skip to content

Instantly share code, notes, and snippets.

@kwharrigan
Created June 1, 2010 21:38
Show Gist options
  • Save kwharrigan/421541 to your computer and use it in GitHub Desktop.
Save kwharrigan/421541 to your computer and use it in GitHub Desktop.
Process Innosetup Manifest File
#!/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