diff options
| author | Camil Staps | 2018-06-08 23:39:38 +0200 | 
|---|---|---|
| committer | Camil Staps | 2018-06-08 23:39:38 +0200 | 
| commit | cc72ac2ff83e132fe5498cc1f5a3d80f74b05b1f (patch) | |
| tree | dd814399fe464e55d555938207dedf62e74963e1 /clean/bin | |
| parent | Remove table from readme (diff) | |
Fix install_clean: some things should be done afterwards regardless of installation method
Diffstat (limited to 'clean/bin')
| -rwxr-xr-x | clean/bin/install_clean | 46 | 
1 files changed, 24 insertions, 22 deletions
| diff --git a/clean/bin/install_clean b/clean/bin/install_clean index f712f1d..43fcee4 100755 --- a/clean/bin/install_clean +++ b/clean/bin/install_clean @@ -13,36 +13,38 @@ if [ "$TARGET" == "nightly" ]; then  		| tar -xz  	rm -rf /opt/clean  	mv clean-bundle-complete /opt/clean -	mv /opt/clean/lib/exe /opt/clean/exe -	ln -s /opt/clean/exe /opt/clean/lib/exe -	rm -r /opt/clean/lib/Generics -	rm -r /opt/clean/lib/StdLib -	sed -i 's=lib/exe/linker=lib/exe/linker:-no-pie=' /opt/clean/etc/IDEEnvs -	cloogletags -a -c -d /opt/clean/lib -o /opt/clean/lib/tags -	exit 0  else  	echo "Broken on GCC >= 6..."  	sleep 5 -fi -if [ "$DATE" != "" ]; then -	export CLEANDATE="$DATE" -fi +	if [ "$DATE" != "" ]; then +		export CLEANDATE="$DATE" +	fi + +	cd /tmp +	git clone -b build-by-date https://gitlab.science.ru.nl/cstaps/clean-build +	cd "clean-build/clean-$TARGET/linux-x64" + +	./fetch.sh +	./setup.sh +	./build.sh -cd /tmp -git clone -b build-by-date https://gitlab.science.ru.nl/cstaps/clean-build -cd "clean-build/clean-$TARGET/linux-x64" +	rm -rf /opt/clean +	mv "target/clean-$TARGET" /opt/clean -./fetch.sh -./setup.sh -./build.sh +	cd /tmp +	rm -rf clean-build +fi -rm -rf /opt/clean -mv "target/clean-$TARGET" /opt/clean  mv /opt/clean/lib/exe /opt/clean/exe +ln -s /opt/clean/exe /opt/clean/lib/exe + +rm -r /opt/clean/lib/Generics +rm -r /opt/clean/lib/StdLib + +sed -i 's=lib/exe/linker=lib/exe/linker:-no-pie=' /opt/clean/etc/IDEEnvs + +cloogletags -a -c -d /opt/clean/lib -o /opt/clean/lib/tags  ln -s /home/camil/VersionControl/clean-test/cleantest /opt/clean/bin/cleantest  ln -s /home/camil/VersionControl/clean-test/makecleantest /opt/clean/bin/makecleantest - -cd /tmp -rm -rf clean-build | 
