diff options
author | Camil Staps | 2020-06-22 10:20:27 +0200 |
---|---|---|
committer | Camil Staps | 2020-06-22 10:20:27 +0200 |
commit | 6c4f9c01e183edbe1dee1abe6d011762b3938001 (patch) | |
tree | f0ca8d3b27fdc75ee013bbd85c724f8ba50053db /clean/bin | |
parent | Vim: set nowrap; set cursorline (diff) |
Improve Clean install script for 32-bit: patch iTasksDev environment
Diffstat (limited to 'clean/bin')
-rwxr-xr-x | clean/bin/install_clean | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clean/bin/install_clean b/clean/bin/install_clean index 557b432..699940b 100755 --- a/clean/bin/install_clean +++ b/clean/bin/install_clean @@ -32,7 +32,15 @@ do done grep -h '^[[:space:]]' "$CLEAN_HOME"/etc/*.env >> "$CLEAN_HOME/etc/IDEEnvs" -cat ~/.clean/iTasksDev.env >> "$CLEAN_HOME/etc/IDEEnvs" +if [[ "$PLATFORM" = "x86" ]]; then + sed \ + -e 's/gc-sections/gc-sections -m32/' \ + -e 's/Linux-64/Linux-32/' \ + -e 's/Environment64BitProcessor:\tTrue/Environment64BitProcessor:\tFalse/' \ + ~/.clean/iTasksDev.env >> "$CLEAN_HOME/etc/IDEEnvs" +else + cat ~/.clean/iTasksDev.env >> "$CLEAN_HOME/etc/IDEEnvs" +fi tail -n +3 ~/projects/viia/config/IDEEnvs >> "$CLEAN_HOME/etc/IDEEnvs" ln -s lib/exe "$CLEAN_HOME/exe" |