aboutsummaryrefslogtreecommitdiff
path: root/clean
diff options
context:
space:
mode:
authorCamil Staps2018-06-08 23:39:38 +0200
committerCamil Staps2018-06-08 23:39:38 +0200
commitcc72ac2ff83e132fe5498cc1f5a3d80f74b05b1f (patch)
treedd814399fe464e55d555938207dedf62e74963e1 /clean
parentRemove table from readme (diff)
Fix install_clean: some things should be done afterwards regardless of installation method
Diffstat (limited to 'clean')
-rwxr-xr-xclean/bin/install_clean46
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