Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.