ack/first/mk_target

44 lines
1.3 KiB
Plaintext
Raw Normal View History

1991-10-15 16:02:38 +00:00
set -e
: machine-dependant stuff
create_dir $TARGET_HOME
1991-10-18 10:02:44 +00:00
( cd $TARGET_HOME ; find . -exec chmod +w {} \; )
1991-10-15 16:02:38 +00:00
create_dir $TARGET_HOME/config
create_dir $TARGET_HOME/lib.bin
create_dir $TARGET_HOME/modules
create_dir $TARGET_HOME/modules/h
create_dir $TARGET_HOME/modules/man
create_dir $TARGET_HOME/modules/pkg
create_dir $TARGET_HOME/modules/lib
create_dir $TARGET_HOME/bin
1991-10-18 10:02:44 +00:00
( cd $SRC_HOME/modules/h ; tar cf - . ) | ( cd $TARGET_HOME/modules/h ; tar xf - )
1991-10-15 16:02:38 +00:00
cp local.h em_path.h $TARGET_HOME/config
1991-10-18 10:02:44 +00:00
( cd $SRC_HOME/bin ; tar cf - . ) | ( cd $TARGET_HOME/bin ; tar xf - )
1991-10-15 16:02:38 +00:00
echo "echo $SYSNAME" > $TARGET_HOME/bin/ack_sys
chmod +x $TARGET_HOME/bin/ack_sys
: machine-independant stuff
if [ $DO_MACHINE_INDEP = n ]
then
exit 0
fi
create_dir $TARGET_HOME/lib
create_dir $TARGET_HOME/etc
create_dir $TARGET_HOME/h
create_dir $TARGET_HOME/include
create_dir $TARGET_HOME/doc
create_dir $TARGET_HOME/man
cp $SRC_HOME/etc/ip_spec.t $TARGET_HOME/etc/ip_spec.t
1991-10-18 10:02:44 +00:00
( cd $SRC_HOME/lib ; tar cf - . ) | ( cd $TARGET_HOME/lib ; tar xf - )
( cd $SRC_HOME/include ; tar cf - . ) | ( cd $TARGET_HOME/include ; tar xf - )
( cd $SRC_HOME/h ; tar cf - . ) | ( cd $TARGET_HOME/h ; tar xf - )
( cd $SRC_HOME/man ; tar cf - . ) | ( cd $TARGET_HOME/man ; tar xf - )
( cd $SRC_HOME/doc ; tar cf - . ) | ( cd $TARGET_HOME/doc ; tar xf - )
1991-10-15 16:02:38 +00:00
exit 0