File: generate-preinst

package info (click to toggle)
xemacs21 21.4.24-8
  • links: PTS
  • area: main
  • in suites: buster
  • size: 33,604 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 (17 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

CLEAN=0

if test "$1" = "CLEAN" ; then
    shift
    CLEAN=1
fi

for i in $@ ; do
    if test "$CLEAN" = "1" ; then
        rm -f xemacs@MAJVERSION@@SUBNAME@-$i.preinst.in
    else
        cat preinst-base | sed -e "s/REPLACE_ME/$i/g" > xemacs@MAJVERSION@@SUBNAME@-$i.preinst.in
    fi
done