summaryrefslogtreecommitdiff
path: root/doSH
diff options
context:
space:
mode:
Diffstat (limited to 'doSH')
-rw-r--r--doSH10
1 files changed, 9 insertions, 1 deletions
diff --git a/doSH b/doSH
index 43fd322ea5..1e95ad6367 100644
--- a/doSH
+++ b/doSH
@@ -3,7 +3,15 @@
: if this fails, just run all the .SH files by hand
. ./config.sh
-rm -f x2p/config.sh
+(
+ cd x2p
+ rm -f config.sh
+ case "$d_symlink" in
+ *define*) ln -s ../config.sh . || ln ../config.sh .;;
+ *) ln ../config.sh . || ln -s ../config.sh .
+ esac
+)
+
cp cppstdin x2p
echo " "