+bin/ccache-build
authorJan Kratochvil <jkratochvil@openjdk.org>
Fri, 28 Jul 2023 10:36:58 +0000 (18:36 +0800)
committerJan Kratochvil <jan@jankratochvil.net>
Fri, 28 Jul 2023 10:38:24 +0000 (18:38 +0800)
bin/ccache-build [new file with mode: 0755]

diff --git a/bin/ccache-build b/bin/ccache-build
new file mode 100755 (executable)
index 0000000..df63d74
--- /dev/null
@@ -0,0 +1,12 @@
+#! /bin/bash
+# openjdk: export PATH="$(echo "$PATH"|sed 's#:/usr/lib64/ccache:#:'$HOME'/ccache:#')";bash configure --disable-precompiled-headers --disable-ccache
+set -ex
+rm -rf ~/ccache
+mkdir ~/ccache
+cd ~/ccache
+for i in /usr/lib64/ccache/*;do
+  j=`basename $i`
+  echo -e '#! /bin/bash\nexport PATH="$(echo "$PATH"|sed s#:$HOME/ccache:#:#)"\nexec '$i' "$@"' >$j
+  chmod +x $j
+done
+echo done