[Olsr-cvs] olsrd-current CHANGELOG, 1.113, 1.114 gcc-warnings, 1.5, 1.6

Bernd Petrovitsch (spam-protected)
Mon Nov 12 01:12:17 CET 2007


Update of /cvsroot/olsrd/olsrd-current
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6618

Modified Files:
	CHANGELOG gcc-warnings 
Log Message:
fixed and improved the `gcc-warnings` script:
* support older gcc's (as on Debian/Sarge) as they have slightly different
  error messages
* removed superflous lines
* replaced the call of `sed` with shell built-in features fixing syntax
  errors on Debian/Sarge
* set all locale-relevant variables to "C" (just to be sure)


Index: gcc-warnings
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/gcc-warnings,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** gcc-warnings	4 Nov 2007 18:45:30 -0000	1.5
--- gcc-warnings	12 Nov 2007 00:12:15 -0000	1.6
***************
*** 9,12 ****
--- 9,15 ----
  #set -vx
  
+ # make sure we do not use some locale ....
+ export LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_NUMERIC=C
+ 
  OPTS=""
  for param; do
***************
*** 28,37 ****
      while read error; do 
         case "$error" in
!        *error:\ unrecognized\ *option*)
!                                        opt="${error#*\`}"
!                                        opt="${opt%\'*}"
                                         opt="${error#*\"}"
                                         opt="${opt%\"*}"
!                                        OPTS=`echo $OPTS | sed -e s/$opt//g`
                                         ;;
         esac
--- 31,43 ----
      while read error; do 
         case "$error" in
!        *error:\ unrecognized\ *option\ \"*)
                                         opt="${error#*\"}"
                                         opt="${opt%\"*}"
!                                        OPTS="${OPTS//$opt}"
!                                        ;;
!        *error:\ unrecognized\ *option\ \`*)
!                                        opt="${error#*\`}"
!                                        opt="${opt%\'*}"
!                                        OPTS="${OPTS//$opt}"
                                         ;;
         esac

Index: CHANGELOG
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/CHANGELOG,v
retrieving revision 1.113
retrieving revision 1.114
diff -C2 -d -r1.113 -r1.114
*** CHANGELOG	11 Nov 2007 23:25:29 -0000	1.113
--- CHANGELOG	12 Nov 2007 00:12:15 -0000	1.114
***************
*** 118,121 ****
--- 118,128 ----
    values in host byte order (and not network byte order). So the route
    list in the e.g. httpinfo plugin is now nicely sorted.
+ - fixed and improved the `gcc-warnings` script:
+   * support older gcc's (as on Debian/Sarge) as they have slightly different
+     error messages
+   * removed superflous lines
+   * replaced the call of `sed` with shell built-in features fixing syntax
+     errors on Debian/Sarge
+   * set all locale-relevant variables to "C" (just to be sure)
  
  0.5.4 ---------------------------------------------------------------------





More information about the Olsr-cvs mailing list