aboutsummaryrefslogtreecommitdiff
path: root/devel/understand_c/files/wrapper.sh
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-03-09 23:08:58 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-03-09 23:08:58 +0000
commit54e5a54aecafad7c7eb2c6063cf334c416f41f7b (patch)
treeff18fec3ac47aee6c14e6219dc90e02805668449 /devel/understand_c/files/wrapper.sh
parent1288d2ff349ab1472f754685c2d137f927057514 (diff)
downloadports-54e5a54aecafad7c7eb2c6063cf334c416f41f7b.tar.gz
ports-54e5a54aecafad7c7eb2c6063cf334c416f41f7b.zip
Notes
Diffstat (limited to 'devel/understand_c/files/wrapper.sh')
-rw-r--r--devel/understand_c/files/wrapper.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/understand_c/files/wrapper.sh b/devel/understand_c/files/wrapper.sh
new file mode 100644
index 000000000000..0e5b5ce2ca01
--- /dev/null
+++ b/devel/understand_c/files/wrapper.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+PREFIX="%%PREFIX%%"
+PROGRAM="${0}"
+
+if [ ${#} -gt 1 ]
+then
+ shift
+fi
+
+exec ${PREFIX}/${PROGRAM##*/} ${*} &