File: keybinding2docbook.sh

package info (click to toggle)
darktable 1.0.4-1%2Bdeb7u2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 11,620 kB
  • sloc: ansic: 98,133; cpp: 26,859; xml: 2,202; lisp: 1,940; sh: 720; python: 274; awk: 89; makefile: 83; perl: 57; asm: 46
file content (10 lines) | stat: -rwxr-xr-x 385 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Run from darktable root directory
git grep -A 2 -h gtk_accel_map_add_entry | tr -d '\n' | \
sed 's/gtk_accel_map_add_entry *( *\(\"[^\"]\+\"\) *, *\([^ ,]\+\) *, *\([^,)]\+\)) *;/%~\1;\2;\3%~/g' | \
tr '%~' '\n' | \
awk -f 'tools/keybinding2docbook.awk' | \
gcc `pkg-config --cflags --libs gtk+-2.0` -o tmp -xc -

./tmp > ./doc/usermanual/addendum/keymappings.xml
rm ./tmp