File: install.sh2

package info (click to toggle)
smartlist 3.15-28
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,308 kB
  • sloc: ansic: 9,238; sh: 4,901; makefile: 118
file content (38 lines) | stat: -rwxr-xr-x 987 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /bin/sh
: &&O='cd .' || exec /bin/sh install.sh2  # we're in a csh, feed myself to sh
$O || exec /bin/sh install.sh2		  # we're in a buggy zsh
#$Id: install.sh2,v 1.14 1999/01/20 17:58:15 guenther Exp $

test -z "$bindir" && echo "Call install.sh instead" && exit 64

/bin/rm -f targetdir.tmp

cd ../src
$MAKE getparams gethome <&4 || exit 1
cd ../SmartList

ltarget=""

case "X$ltarget" in
   X/*) homedir=$ltarget ;;
   X)  homedir='$HOME' ;;
   X*) homedir="\$HOME/$ltarget" ;;
esac
echo "Hardwiring '$homedir' as the list directory owned by '$listid'."

echo "homedir='$homedir'" >>targetdir.tmp	# pass it on to install.sh3

hfile=targetdir.h

cat >$hfile <<HERE
#define TARGETDIR	"$ltarget"
#define LISTID		"$listid"
#define PROCMAIL	"../$bindir/procmail"
#define INIT_PATH	"PATH=../$bindir"
HERE

cmp $hfile ../src/$hfile 2>/dev/null 1>&2 || cp $hfile ../src/$hfile

cd ../src
$MAKE multigram CC="${CC}" CFLAGS0="${CFLAGS0}" LDFLAGS0="${LDFLAGS0}" <&4 || exit 1
cd ../SmartList