summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconf/build-magic.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/conf/build-magic.sh b/conf/build-magic.sh
index 94d1a01f..f064a286 100755
--- a/conf/build-magic.sh
+++ b/conf/build-magic.sh
@@ -1,21 +1,21 @@
-#! /bin/sh
+#! /bin/bash
-RSCRIPT="spells-build.sh"
+RSCRIPT="spells-build"
if [ -a $RSCRIPT ]; then printf ""; else
- echo '#! /bin/sh' > $RSCRIPT;
- echo 'cat \' >> $RSCRIPT;
+ echo '#! /bin/bash' > $RSCRIPT;
+ echo 'sed \' >> $RSCRIPT;
chmod a+x $RSCRIPT
fi
for n in `grep -o '"#..."' magic.conf.template`; do
if grep $n $RSCRIPT; then printf ""; else
CHANGES=1
- echo "|sed 's/${n}/${n}/' \\" >> $RSCRIPT;
+ echo "'s/${n}/${n}/;'\\" >> $RSCRIPT;
fi
done
if [ x$CHANGES == x1 ]
-then echo "spells-build.sh has been updated; please provide invocations for spells and/or teleport anchors.";
+then echo "${RSCRIPT} has been updated; please provide invocations for spells and/or teleport anchors.";
else cat magic.conf.template | ./$RSCRIPT > magic.conf;
-fi \ No newline at end of file
+fi