diff options
Diffstat (limited to 'ids.rc.do')
-rwxr-xr-x | ids.rc.do | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ids.rc.do b/ids.rc.do new file mode 100755 index 0000000..9c5ffd2 --- /dev/null +++ b/ids.rc.do @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -e +redo-ifchange R.zip +printf 'declare -A ids\n' >"$3" +7z e -so R.zip R | sed 's/^\(int[][]*\) \([^ ]*\) \([^ ]*\) \([0-9a-fA-F{},x ]*\)$/ids[\2:\3]="\1 \3 = \4"/' >>"$3" +# vim:ft=bash |