Pristine Ack-5.5
[Ack-5.5.git] / first / mk_target
1 set -e
2
3 : machine-dependant stuff
4
5 create_dir $TARGET_HOME
6 create_dir $TARGET_HOME/config
7 create_dir $TARGET_HOME/lib.bin
8 create_dir $TARGET_HOME/modules
9 create_dir $TARGET_HOME/modules/h
10 create_dir $TARGET_HOME/bin
11
12 cp local.h em_path.h $TARGET_HOME/config
13 cp_dir $SRC_HOME/bin $TARGET_HOME/bin
14 cp $CONFIG/bin/cp_dir $TARGET_HOME/bin/cp_dir
15 echo "echo $SYSNAME" > $TARGET_HOME/bin/ack_sys
16 chmod +x $TARGET_HOME/bin/ack_sys
17
18 : machine-independant stuff
19
20 if [ $DO_MACHINE_INDEP = n ]
21 then
22         exit 0
23 fi
24
25 create_dir $TARGET_HOME/lib
26 create_dir $TARGET_HOME/etc
27 create_dir $TARGET_HOME/h
28 create_dir $TARGET_HOME/include
29 create_dir $TARGET_HOME/doc
30
31 cp $SRC_HOME/etc/ip_spec.t $TARGET_HOME/etc/ip_spec.t
32 cp_dir $SRC_HOME/lib $TARGET_HOME/lib
33 cp_dir $SRC_HOME/h $TARGET_HOME/h
34 cp_dir $SRC_HOME/include $TARGET_HOME/include
35
36 cd $TARGET_HOME
37 find . -type f -exec chmod +w {} \;
38
39 exit 0