2006-07-18 16:45:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
1991-10-15 16:02:38 +00:00
|
|
|
set -e
|
|
|
|
|
2002-09-10 13:30:06 +00:00
|
|
|
PATH=::$CONFIG/bin:$UTIL_HOME/bin:/usr/ccs/bin:/usr/ucb:$PATH
|
1991-10-15 16:02:38 +00:00
|
|
|
export PATH
|
|
|
|
|
1991-11-14 09:35:36 +00:00
|
|
|
$SRC_HOME/first/create_dir $CONFIG
|
|
|
|
$SRC_HOME/first/create_dir $CONFIG/bin
|
|
|
|
|
2006-07-18 16:45:57 +00:00
|
|
|
(
|
|
|
|
# Slight complication here to ensure that the #! magic at the
|
|
|
|
# beginning of TakeAction is preserved correctly.
|
|
|
|
|
|
|
|
head -1 $SRC_HOME/TakeAction
|
|
|
|
echo "PATH=:$CONFIG/bin:$UTIL_HOME/bin:$PATH; export PATH"
|
|
|
|
tail +2 $SRC_HOME/TakeAction
|
|
|
|
) > $CONFIG/bin/TakeAction
|
|
|
|
|
1991-11-14 09:35:36 +00:00
|
|
|
sed '/^#PARAMS/r make_macros' < $SRC_HOME/first/mk_makefile > $CONFIG/bin/mk_makefile
|
|
|
|
cp $SRC_HOME/first/create_dir $CONFIG/bin/create_dir
|
1991-12-18 14:51:08 +00:00
|
|
|
cp $SRC_HOME/first/cp_dir $CONFIG/bin/cp_dir
|
1991-11-25 16:47:36 +00:00
|
|
|
chmod +x $CONFIG/bin/*
|
1991-11-14 09:35:36 +00:00
|
|
|
|
1991-11-25 16:47:36 +00:00
|
|
|
$SRC_HOME/first/mk_config
|
1991-10-15 16:02:38 +00:00
|
|
|
|
1991-11-25 16:47:36 +00:00
|
|
|
$SRC_HOME/first/mk_target
|
1991-10-15 16:02:38 +00:00
|
|
|
|
1991-11-25 16:47:36 +00:00
|
|
|
$SRC_HOME/first/limit_impl
|
1991-10-15 16:02:38 +00:00
|
|
|
|
|
|
|
case $SYSNAME in
|
|
|
|
i386)
|
1995-08-14 08:08:56 +00:00
|
|
|
ed -s $TARGET_HOME/lib/descr/fe << 'ABC'
|
1991-10-15 16:02:38 +00:00
|
|
|
1,$s/-D{NAME}/-D{NAME} -DNO_PROTOTYPE/
|
|
|
|
w
|
|
|
|
q
|
|
|
|
ABC
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
: find varargs include file
|
|
|
|
: if not present use our own
|
|
|
|
|
|
|
|
if test -f /usr/include/varargs.h
|
|
|
|
then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
cp $SRC_HOME/include/_tail_cc/varargs.h $TARGET_HOME/modules/h
|
|
|
|
fi
|
|
|
|
|
|
|
|
case X$SYSVAX in
|
|
|
|
Xvax_sysV_2)
|
1995-08-14 08:08:56 +00:00
|
|
|
ed -s $TARGET_HOME/lib/vax4/descr << 'ABC'
|
1991-10-15 16:02:38 +00:00
|
|
|
/CPP_F/s/$/ -D__USG/
|
|
|
|
w
|
|
|
|
q
|
|
|
|
ABC
|
1995-08-14 08:08:56 +00:00
|
|
|
ed -s $CONFIG/mach/vax4/Action << 'ABC'
|
1992-06-09 11:23:39 +00:00
|
|
|
/libbsd4_2/s/libbsd4_2/libsysV_2/
|
1991-10-15 16:02:38 +00:00
|
|
|
w
|
|
|
|
q
|
|
|
|
ABC
|
|
|
|
( cd $CONFIG/mach/vax4
|
|
|
|
for i in libcc libcc.ansi
|
|
|
|
do
|
1995-08-14 08:08:56 +00:00
|
|
|
ed -s $i/Makefile << 'ABC'
|
1991-10-15 16:02:38 +00:00
|
|
|
/BFS/s/BFS/UFS/
|
|
|
|
w
|
|
|
|
q
|
|
|
|
ABC
|
|
|
|
done
|
|
|
|
)
|
|
|
|
;;
|
|
|
|
Xvax_bsd4_2)
|
1995-08-14 08:08:56 +00:00
|
|
|
ed -s $TARGET_HOME/lib/vax4/descr << 'ABC'
|
1991-10-15 16:02:38 +00:00
|
|
|
/CPP_F/s/$/ -D__BSD4_2/
|
|
|
|
w
|
|
|
|
q
|
|
|
|
ABC
|
|
|
|
;;
|
|
|
|
Xvax_bsd4_1a)
|
1995-08-14 08:08:56 +00:00
|
|
|
ed -s $CONFIG/mach/vax4/Action << 'ABC'
|
1992-06-09 11:23:39 +00:00
|
|
|
/libbsd4_2/s/libbsd4_2/libbsd4_1a/
|
1991-10-15 16:02:38 +00:00
|
|
|
w
|
|
|
|
q
|
|
|
|
ABC
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
: and finally installing ...
|
|
|
|
cd $CONFIG
|
1991-10-18 10:02:44 +00:00
|
|
|
set +e
|
1991-11-25 16:47:36 +00:00
|
|
|
exec TakeAction
|