File: update-0.16

package info (click to toggle)
linpac 0.16pre3-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,328 kB
  • ctags: 2,582
  • sloc: cpp: 16,514; sh: 7,991; ansic: 4,061; makefile: 211; perl: 101
file content (22 lines) | stat: -rwxr-xr-x 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/bash
# Add BLOCK7P setting to the init script

FILE=macro/init.mac
TEMP=/tmp/update.$$

awk '
   {
      print
   }

/HOME_ADDR/ {
      if ($1 == "set") {
         print ""
         print ";; Preferred size of 7plus blocks"
         print "set BLOCK7P 5120"
      }
}' <$FILE >$TEMP

cp -f $FILE ${FILE}.old
cp -f $TEMP $FILE
rm -f $TEMP