File: keybinding2docbook.sh

package info (click to toggle)
darktable 1.4.2-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 19,940 kB
  • ctags: 22,185
  • sloc: ansic: 181,925; cpp: 32,612; lisp: 4,681; xml: 4,046; sh: 2,002; makefile: 395; python: 315; perl: 114; awk: 110; 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