[svn] / ecrypt / trunk / scripts / cleanup  

svn: ecrypt/trunk/scripts/cleanup

Diff for /ecrypt/trunk/scripts/cleanup between version 191 and 192

version 191, Mon Jan 15 16:50:11 2007 UTC version 192, Mon Jan 15 17:17:18 2007 UTC
Line 271 
Line 271 
   
 i=ecrypt-$type.h;  i=ecrypt-$type.h;
   
 sed 's/^\(#define *ECRYPT_NAME *\)"\([^"]*\)"/\1"'$name'"/' "$i" > .tmp.h;  sed 's%^\(#define *ECRYPT_NAME *\)"\([^"]*\)"%\1"'$name'"%' "$i" > .tmp.h;
 mv -f .tmp.h "$i";  mv -f .tmp.h "$i";
   
 name=$(echo $name | tr '[:upper:]_' '[:lower:]-');  name=$(echo $name | tr '[:upper:]_/' '[:lower:]--');
   
 # -----------------------------------------------------------------------------  # -----------------------------------------------------------------------------
   
Line 461 
Line 461 
   
 for std in {'-std=gnu99','-std=c99','-ansi'}; do  for std in {'-std=gnu99','-std=c99','-ansi'}; do
     while true; do      while true; do
         make clean &> /dev/null;          make mrproper &> /dev/null;
         errors=$((make std="$std" 2>&1) | grep "error:\|warning:" | wc -l);          errors=$((make std="$std" 2>&1) | grep "error:\|warning:" | wc -l);
   
         if [ -e ecrypt-test ]; then          if [ -e ecrypt-test ]; then
Line 488 
Line 488 
             if [ "$answer" = "n" ]; then              if [ "$answer" = "n" ]; then
                 break 2;                  break 2;
             else              else
                 make clean &> /dev/null;                  make mrproper &> /dev/null;
   
                 export name type std;                  export name type std;
                 stage=2 bash --rcfile "$ECRYPT_ROOT/scripts/manual.rc";                  stage=2 bash --rcfile "$ECRYPT_ROOT/scripts/manual.rc";
Line 505 
Line 505 
   
 # -----------------------------------------------------------------------------  # -----------------------------------------------------------------------------
   
 make clean &> /dev/null;  make mrproper &> /dev/null;
 make &> /dev/null;  make &> /dev/null;
   
 if [ -e ecrypt-test ]; then  if [ -e ecrypt-test ]; then
Line 537 
Line 537 
   
                 rm -rf *~;                  rm -rf *~;
   
                 make clean &> /dev/null;                  make mrproper &> /dev/null;
                 make &> /dev/null;                  make &> /dev/null;
             fi              fi
         fi          fi
     done      done
 fi  fi
   
 make clean &> /dev/null;  make mrproper &> /dev/null;
   
 # -----------------------------------------------------------------------------  # -----------------------------------------------------------------------------


Generate output suitable for use with a patch program
Legend:
Removed from v.191  
changed lines
  Added in v.192

eSTREAM Project

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help