File: make_lib.awk

package info (click to toggle)
noweb 2.13-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,540 kB
  • sloc: sh: 2,580; ansic: 1,829; makefile: 903; perl: 781; lisp: 757; awk: 174; csh: 3
file content (12 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
# edits noweb/src/lib/makefile for Ms-Dos + PC386 + Icon 386 9.0 + DJGPP + MKS 4.2
# tested with noweb 2.7a

BEGIN { print "# generated MsDos makefile, original in makefile.old"; }

/SHELL\=/ { $0 = "# " $0 } # disable SHELL def

/cp unmarkup emptydefn toascii \$/ {  # add an extension .ksh) when copying
   $0 = "\tcp unmarkup $(LIB)/unmarkup.ksh\n\tcp emptydefn $(LIB)/emptydefn.ksh\n\tcp toascii $(LIB)/toascii.ksh"
}

{ print $0 } # prints the line (which might have been changed)