From Jeff Morris: using named tempfiles preventing errors on multiprocessor machines
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 16 Dec 2003 06:46:58 +0000 (06:46 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 16 Dec 2003 06:46:58 +0000 (06:46 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9295 f5534014-38df-0310-8fa8-9805f1628bb7

help/convert-include.sh

index 6635298bf3e24555d021c2c27b348d3416158185..2f0ff4b6cd0489135c3f31009b1fb71c79579fd6 100644 (file)
 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