File: convert-texi-files.in

package info (click to toggle)
xemacs21 21.4.24-9
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 33,952 kB
  • sloc: ansic: 243,821; lisp: 94,071; cpp: 5,726; sh: 4,406; perl: 1,096; cs: 775; makefile: 761; python: 279; asm: 248; lex: 119; yacc: 95; sed: 22; csh: 9
file content (13 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

TEXI_FILES="`find . -name '*.texi'`"

if [ "$1" = "CLEAN" ] ; then
    perl -i.deb-old -pe 's/\(xemacs@MAJVERSION@\/xemacs@MAJVERSION@\)/(dir)/g if m/^\@node/;' \
      $TEXI_FILES
else
    perl -i.deb-old -pe 's/\(dir\)/(xemacs@MAJVERSION@\/xemacs@MAJVERSION@)/g if m/^\@node/;' \
      $TEXI_FILES
fi

rm -f `find . -name '*.deb-old'`