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

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

Diff for /src/etc/Attic/postinstall between version 1.73 and 1.74

version 1.73, 2004/03/16 23:03:14 version 1.74, 2004/03/16 23:15:40
Line 900  Usage: ${PROGNAME} [-s srcdir] [-d destd
Line 900  Usage: ${PROGNAME} [-s srcdir] [-d destd
                 help    display this help                  help    display this help
                 list    list available items                  list    list available items
                 check   perform post-installation checks on items                  check   perform post-installation checks on items
                 diff [diff options ...]                  diff [diff(1) options ...]
                         similar to 'check' but also output difference of files                          similar to 'check' but also output difference of files
                 fix     apply fixes that 'check' determines need to be applied                  fix     apply fixes that 'check' determines need to be applied
                 usage   display this usage                  usage   display this usage
Line 909  _USAGE_
Line 909  _USAGE_
 }  }
   
   
 diff_usage()  
 {  
         cat 1>&2 << _USAGE_  
 ${PROGNAME}: $*  
 _USAGE_  
         exit 1  
 }  
   
   
 list()  list()
 {  {
         echo "Supported items:"          echo "Supported items:"
Line 933  list()
Line 924  list()
 main()  main()
 {  {
         while getopts s:d:m: ch; do          while getopts s:d:m: ch; do
         case ${ch} in                  case ${ch} in
         s)                  s)
                 SRC_DIR=${OPTARG} ;;                          SRC_DIR=${OPTARG}
         d)                          ;;
                 DEST_DIR=${OPTARG} ;;                  d)
         m)                          DEST_DIR=${OPTARG}
                 MACHINE=${OPTARG} ;;                          ;;
         a)                  m)
                 MACHINE_ARCH=${OPTARG} ;;                          MACHINE=${OPTARG}
         *)                          ;;
                 usage ;;                  a)
         esac                          MACHINE_ARCH=${OPTARG}
                           ;;
                   *)
                           usage
                           ;;
                   esac
         done          done
         shift $((${OPTIND} - 1))          shift $((${OPTIND} - 1))
         [ $# -gt 0 ] || usage          [ $# -gt 0 ] || usage
Line 969  main()
Line 965  main()
                 op=check                  op=check
                 DIFF_STYLE=n                    # default style is RCS                  DIFF_STYLE=n                    # default style is RCS
                 OPTIND=1                  OPTIND=1
                 while getopts bcenuw ch; do                  while getopts bcenpuw ch; do
                         case ${ch} in                          case ${ch} in
                         c|e|n|u)                          c|e|n|u)
                                 if [ ${DIFF_STYLE} != n -a \                                  if [ ${DIFF_STYLE} != n -a \
                                     ${DIFF_STYLE} != ${ch} ]; then                                      ${DIFF_STYLE} != ${ch} ]; then
                                         diff_usage \                                          err 1 "conflicting output style: ${ch}"
                                             conflicting output style: ${ch}  
                                 fi                                  fi
                                 DIFF_STYLE=${ch};;                                  DIFF_STYLE=${ch}
                         b|w)                                  ;;
                                 DIFF_OPT="${DIFF_OPT} -${ch}";;                          b|p|w)
                         *)      diff_usage unknown diff option;;                                  DIFF_OPT="${DIFF_OPT} -${ch}"
                                   ;;
                           *)
                                   err 1 "unknown diff option"
                                   ;;
                         esac                          esac
                 done                  done
                 shift $((${OPTIND} - 1));;                  shift $((${OPTIND} - 1))
                   ;;
         esac          esac
   
         case "${op}" in          case "${op}" in

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

CVSweb <webmaster@jp.NetBSD.org>