Ver código fonte

Set needgsed to 0 for non-NetBSD systems

git-svn-id: trunk@21823 -
pierre 13 anos atrás
pai
commit
b93b08427f
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      rtl/unix/scripts/check_consts.sh

+ 3 - 1
rtl/unix/scripts/check_consts.sh

@@ -20,6 +20,8 @@ os=`uname -s`
 
 if [ "$os" == "NetBSD" ] ; then
   needgsed=1
+else
+  needgsed=0
 fi
 
 SED=sed
@@ -37,7 +39,7 @@ fi
 for file in $@ ; do 
 
 echo "Looking for constants in \"$file\""
-$SED  -n "s:.*[[:space:]]\([a-zA-Z_][a-zA-Z_0-9]*\)[[:space:]]*=[[:space:]]*\([-+]*[0-9][xX]*[0-9+-\*/]*\)[[:space:]]*;.*:test_const \1 \2:p" $file  >  check_const_list.sh
+$SED  -n -e "s:.*[[:space:]]\([a-zA-Z_][a-zA-Z_0-9]*\)[[:space:]]*=[[:space:]]*\([-+]*[0-9][xX]*[-0-9+[:space:]]*\)[[:space:]]*;.*:test_const \1 \2:p" $file  >  check_const_list.sh
 
 test_const ()
 {