OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   25-Jan-2009 20:12:38
  Branch: HEAD                             Handle: 2009012519123800

  Modified files:
    openpkg-src/x509        x509-util.sh

  Log:
    sanity check environment

  Summary:
    Revision    Changes     Path
    1.3         +10 -0      openpkg-src/x509/x509-util.sh
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/x509/x509-util.sh
  ============================================================================
  $ cvs diff -u -r1.2 -r1.3 x509-util.sh
  --- openpkg-src/x509/x509-util.sh     25 Jan 2009 18:28:09 -0000      1.2
  +++ openpkg-src/x509/x509-util.sh     25 Jan 2009 19:12:38 -0000      1.3
  @@ -31,6 +31,16 @@
   num_object="${9-4}"
   outdir="."
   
  +# sanity check environment
  +if [ ! -x "$prefix/bin/shtool" ]; then
  +    echo "ERROR: $prefix/bin/shtool (OpenPKG \"shtool\" package) required" 
1>&2
  +    exit 1
  +fi
  +if [ ! -x "$prefix/bin/csp" ]; then
  +    echo "ERROR: $prefix/bin/csp (OpenPKG \"csp\" package) required" 1>&2
  +    exit 1
  +fi
  +
   # display processing information
   echo "++ creating CSP environment"
   
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to