diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-16 06:46:58 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-16 06:46:58 +0000 |
commit | 7b91880330dc93dee15b0e94f18e3d0bd7519796 (patch) | |
tree | e74a62bad08409685999e12078d23ad94bb3ed0f /help | |
parent | dbf3a6d6a0fb4ded91b6741abb6ce3d392daa544 (diff) |
From Jeff Morris: using named tempfiles preventing errors on multiprocessor machines
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9295 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'help')
-rw-r--r-- | help/convert-include.sh | 8 |
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 |