git » fp-git.git » commit 2b1db51

optimized some scripting

author ecalot
2004-06-22 07:01:39 UTC
committer ecalot
2004-06-22 07:01:39 UTC
parent c5542c221a6a977900e0b0e3ec8bdc89e7052701

optimized some scripting

stuff/data/makedat +1 -4

diff --git a/stuff/data/makedat b/stuff/data/makedat
index 89f3974..d400eb6 100755
--- a/stuff/data/makedat
+++ b/stuff/data/makedat
@@ -32,8 +32,6 @@ then
 	echo "Directory def does not contain information" >> error_log
 fi
 
-
-
 #initializes output files
 number=$numberstart
 echo -n "Generating header and xml files              "
@@ -53,8 +51,7 @@ do
 	FINDEX="index/$definition.index"
 	TYPE=`sed -e '1,1d' -e '3,$d' $FDEF`
 	LINEX="^$VARDEFINE RES_TYPE_$TYPE \([0-9]*\)\$"
-	LINE=`grep -e "$LINEX" result/types.h`	
-	ID=`echo "$LINE"|sed -e "s/$LINEX/\1/g"`
+	ID=`grep -e "$LINEX" result/types.h|sed -e "s/$LINEX/\1/g"`	
 
 	if [ -z "$ID" ] 
 	then