File: eda.sh

package info (click to toggle)
librsb 1.3.0.2%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 32,792 kB
  • sloc: ansic: 274,405; f90: 108,468; cpp: 16,934; sh: 6,761; makefile: 1,679; objc: 692; awk: 22; sed: 1
file content (7 lines) | stat: -rwxr-xr-x 562 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
#!/bin/bash
# eda.sh -- Use m4 and a Doxyfile to expand the Doxygen aliases in the documentation.
filter() { sed 's/\\rsb/RSB_D_/g;s/\\librsb\>/RSB_D_librsb/g;s/\\see_/RSB_D_see/g'| sed "s/#/"'\`'"#'/g"; }
cat doc/Doxyfile | grep -v "'" | grep -v '^#' | grep ^ALIASES | sed 's/^[^"]\+//g' | sed 's/^"/\\/g;s/" *$//g' |  filter | sed 's/\([^=]\+\)=\([^=]*\)/define(\`\1'"'"', \`\2'"'"')dnl/g'   > Doxyfile.m4
( echo "include("'`'"Doxyfile.m4')dnl " ; cat rsb_rsb.c ; ) | filter > rsb_rsb.m4
cat rsb_rsb.m4 | m4 -I . > rsb_rsb_e.c
grep RSB_D_ rsb_rsb_e.c && false