[BACK]Return to checkver CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/checkver between version 1.5.2.3 and 1.13

version 1.5.2.3, 2000/08/14 14:06:58 version 1.13, 2008/04/30 13:10:50
Line 15 
Line 15 
 # 2. Redistributions in binary form must reproduce the above copyright  # 2. Redistributions in binary form must reproduce the above copyright
 #    notice, this list of conditions and the following disclaimer in the  #    notice, this list of conditions and the following disclaimer in the
 #    documentation and/or other materials provided with the distribution.  #    documentation and/or other materials provided with the distribution.
 # 3. All advertising materials mentioning features or use of this software  
 #    must display the following acknowledgement:  
 #        This product includes software developed by the NetBSD  
 #        Foundation, Inc. and its contributors.  
 # 4. Neither the name of The NetBSD Foundation nor the names of its  
 #    contributors may be used to endorse or promote products derived  
 #    from this software without specific prior written permission.  
 #  #
 # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS  # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED  # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
Line 37 
Line 30 
 #  #
   
 #--------------------------------------------------------------------#  #--------------------------------------------------------------------#
 # checkver [-q] -d [installedlibdir [library name]]"  # checkver -
 # checkver [-q] -s [setlistdir [library name]]"  #       Check for libraries that appear to be newer than the
 # checkver [-q] -f liblistfile [library name]"  #       one we're about to install.
 #  #
 # This script must be run from a directory in which  # checkver [-q] [-v shlib_version_file] -d [installedlibdir [library name]]"
 # a shlib_version file resides.  # checkver [-q] [-v shlib_version_file] -s [setlistdir [library name]]"
   # checkver [-q] [-v shlib_version_file] -f liblistfile [library name]"
 #  #
 # One of -d, -s or -f must be specified.  # One of -d, -s or -f must be specified.
 #  #
Line 61 
Line 55 
 # -f: Checks the version against the provided list.  A filename  # -f: Checks the version against the provided list.  A filename
 #       must be supplied.  #       must be supplied.
 #  #
 # This script produces no output if all library version are not  # -v: Specify the filename of the shlib_version file.  Defaults
   #     to "./shlib_version".
   #
   # This script produces no output if all library version are not
 # large than the source version.  If an installed library with a  # large than the source version.  If an installed library with a
 # version greater than the source is found, checkver prints a  # version greater than the source is found, checkver prints a
 # header and a list of the names of the offending installed libraries.  # header and a list of the names of the offending installed libraries.
Line 76  trap "exit 2" 1 2 3 4 5 6 7 8 10 12 13 1
Line 73  trap "exit 2" 1 2 3 4 5 6 7 8 10 12 13 1
 trap "[ -d $TMP ] && rm -rf $TMP" 0  trap "[ -d $TMP ] && rm -rf $TMP" 0
   
 Usage() {  Usage() {
     echo "Usage: $1 [-q] -d [installedlibdir [library name]]"      echo "Usage: $1 [-q] [-v version_file] -d [installedlibdir [library name]]"
     echo "       $1 [-q] -s [setlistdir [library name]]"      echo "       $1 [-q] [-v version_file] -s [setlistdir [library name]]"
     echo "       $1 [-q] -f liblistfile [library name]"      echo "       $1 [-q] [-v version_file] -f liblistfile [library name]"
       echo "      $1 is a script that looks for installed libraries with"
       echo "         versions greater than that in the version file."
       echo "      For more information, read the comments."
 }  }
   
 basedir=/usr/src  basedir=/usr/src
 setsdir=$basedir/distrib/sets/lists  setsdir=$basedir/distrib/sets/lists
 libdir=/usr/lib  libdir=/usr/lib
   shlib_version=./shlib_version
   
 error=0  error=0
 quiet=0  quiet=0
Line 91  usedir=0
Line 92  usedir=0
 usefile=0  usefile=0
 usesets=0  usesets=0
 CWD=`pwd`  CWD=`pwd`
 args=`getopt "df:shq" "$@"`  args=`getopt "df:shqv:" "$@"`
 if [ $? -ne 0 ] ; then  if [ $? -ne 0 ] ; then
     Usage $0      Usage $0
     exit 0      exit 0
Line 99  fi
Line 100  fi
   
 set -- $args  set -- $args
   
 while . ; do  while [ ! -z "$1" ]; do
     case "$1" in      case "$1" in
         -d) usedir=1 ; shift          -d) usedir=1 ; shift
             if [ $usefile -eq 1 -o $usesets -eq 1 ]; then              if [ $usefile -eq 1 -o $usesets -eq 1 ]; then
Line 113  while . ; do
Line 114  while . ; do
             if [ $usedir -eq 1 -o $usefile -eq 1 ]; then              if [ $usedir -eq 1 -o $usefile -eq 1 ]; then
                 Usage $0 ; exit 2                  Usage $0 ; exit 2
             fi;;              fi;;
           -v) shlib_version=$2; shift ; shift ;;
         -h) Usage $0 ; exit 0;;          -h) Usage $0 ; exit 0;;
         -q) quiet=1 ; shift;;          -q) quiet=1 ; shift;;
         --) shift ; break;;          --) shift ; break;;
Line 180  if [ $? != 0 ]; then
Line 182  if [ $? != 0 ]; then
 fi  fi
   
   
 if [ ! -f ./shlib_version ] ; then  if [ ! -f $shlib_version ] ; then
     echo "$0: unable to find ./shlib_version"      echo "$0: unable to find $shlib_version"
     exit 2      exit 2
 fi  fi
   
 # Grab major and minor numbers from the source.  # Grab major and minor numbers from the source.
 . ./shlib_version  . $shlib_version
   
 if [ "X$minor" = "X" -o "X$major" = "X" ] ; then  if [ "X$minor" = "X" -o "X$major" = "X" ] ; then
     echo "$0: shlib_version doesn't contain the version."      echo "$0: $shlib_version doesn't contain the version."
     exit 2      exit 2
 fi  fi
   
Line 226  fi
Line 228  fi
         fi          fi
         echo $instlib > /dev/stderr          echo $instlib > /dev/stderr
         error=1          error=1
     fi      fi
  done   done
   
 exit $error  exit $error

Legend:
Removed from v.1.5.2.3  
changed lines
  Added in v.1.13

CVSweb <webmaster@jp.NetBSD.org>