xenadmin/XenAdmin/Help/extract-help-numbers
Mihaela Stoica bd36a85bff CP-4816: Initial commit to git repo
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
2013-06-24 12:41:48 +01:00

9 lines
292 B
Bash

#!/bin/sh
dir=$(dirname "$0")
cat $dir/HelpManager.resx | sed -e 's#
##g' | awk '
/data name="/ { FS="\""; NAME=$2; }
/<value>.*<\/value>/ { print "#define " NAME " " $1; }' |
sed -e 's# *<value># #g' | sed -e 's#</value>##g' | grep -v Icon1 | grep -v Bitmap1 | grep -v Name1 | sort -nk 3