summaryrefslogtreecommitdiffstats
path: root/cpp.pkg.in/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'cpp.pkg.in/postinst')
-rwxr-xr-xcpp.pkg.in/postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp.pkg.in/postinst b/cpp.pkg.in/postinst
new file mode 100755
index 0000000..6087128
--- /dev/null
+++ b/cpp.pkg.in/postinst
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+if [ "x${1}" = 'xconfigure' ]; then
+ if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then
+ ln -sf @PKG_TARGET_ARCH@-cpp /usr/bin/cpp
+ fi
+fi