aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2003-12-16 06:46:58 +0000
committerUlf Lamping <ulf.lamping@web.de>2003-12-16 06:46:58 +0000
commite411cd98b8b09f2ee953bd6a692bf09e313064ad (patch)
treee74a62bad08409685999e12078d23ad94bb3ed0f
parent2dbc7fccce5a19271b70a135d8f0f38d8910c0db (diff)
From Jeff Morris: using named tempfiles preventing errors on multiprocessor machines
svn path=/trunk/; revision=9295
-rw-r--r--help/convert-include.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/help/convert-include.sh b/help/convert-include.sh
index 6635298bf3..2f0ff4b6cd 100644
--- a/help/convert-include.sh
+++ b/help/convert-include.sh
@@ -14,12 +14,12 @@
LINECOUNT=400
# Create an #include'able version of this file
-rm -f $1.h MAKETMP*
-split -l $LINECOUNT $1.txt MAKETMP
+rm -f $1.h $1_tmp*
+split -l $LINECOUNT $1.txt $1_tmp
NUM=0
echo "/* THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY!!! */" >>$1.h
echo "const char *$1_part[] = {" >>$1.h
-for i in MAKETMP*; do
+for i in $1_tmp*; do
if [ $NUM -ne 0 ]; then
echo "," >>$1.h
echo >>$1.h
@@ -34,6 +34,6 @@ echo "#define $NAME_UPPER_PARTS $NUM" >>$1.h
SIZE=`wc -c $1.txt | tr -d ' A-Za-z._-'`
NAME_UPPER_SIZE=`echo $1_SIZE | tr '[:lower:]' '[:upper:]'`
echo "#define $NAME_UPPER_SIZE $SIZE" >>$1.h
-rm -f MAKETMP*
+rm -f $1_tmp*
exit 0