install.sh 1.28 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

set -e

./make.sh

CALL_CP="cp --preserve=timestamps"
CALL_CHMOD="chmod 644"

CLEAN_MODULES="StdArray StdCharList StdClass StdDebug StdFunc StdFunctions StdList StdOrdList \
		StdOverloaded StdTuple _SystemEnum StdEnum _SystemArray StdEnv _SystemStrictLists \
		_SystemEnumStrict StdStrictLists StdOverloadedList StdGeneric StdMaybe _SystemStrictMaybes"

SYSTEM_MODULES="StdBool StdChar StdFile StdInt StdMisc StdReal StdString"

ABC_MODULES="_system"

17
OBJECT_MODULES="_startup _startupTrace"
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

mkdir -p $INSTALL_STDENV_DIR

mkdir -p $INSTALL_STDENV_DIR/"Clean System Files"

for M in $CLEAN_MODULES $SYSTEM_MODULES; do
	$CALL_CP $M.icl $INSTALL_STDENV_DIR/$M.icl
	$CALL_CHMOD $INSTALL_STDENV_DIR/$M.icl
done

for M in $CLEAN_MODULES $SYSTEM_MODULES $ABC_MODULES $OBJECT_MODULES; do
	$CALL_CP $M.dcl $INSTALL_STDENV_DIR/$M.dcl
	$CALL_CHMOD $INSTALL_STDENV_DIR/$M.dcl
done

for M in $SYSTEM_MODULES $CLEAN_MODULES $ABC_MODULES; do
	$CALL_CP "Clean System Files"/$M.abc $INSTALL_STDENV_DIR/"Clean System Files"/$M.abc
	$CALL_CHMOD $INSTALL_STDENV_DIR/"Clean System Files"/$M.abc
done

sleep 1

for M in $SYSTEM_MODULES $CLEAN_MODULES $ABC_MODULES $OBJECT_MODULES; do
	$CALL_CP "Clean System Files"/$M.o $INSTALL_STDENV_DIR/"Clean System Files"/$M.o
	$CALL_CHMOD $INSTALL_STDENV_DIR/"Clean System Files"/$M.o
done