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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web          Date:   05-Aug-2003 20:58:07
  Branch: HEAD                             Handle: 2003080519580502

  Modified files:
    openpkg-src/wine-msov   wine-msov.sh wine-msov.spec
    openpkg-web             news.txt

  Log:
    support reading from stdin

  Summary:
    Revision    Changes     Path
    1.2         +16 -1      openpkg-src/wine-msov/wine-msov.sh
    1.2         +2  -2      openpkg-src/wine-msov/wine-msov.spec
    1.6046      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/wine-msov/wine-msov.sh
  ============================================================================
  $ cvs diff -u -r1.1 -r1.2 wine-msov.sh
  --- openpkg-src/wine-msov/wine-msov.sh        18 Jul 2003 13:42:23 -0000      1.1
  +++ openpkg-src/wine-msov/wine-msov.sh        5 Aug 2003 18:58:07 -0000       1.2
  @@ -1,4 +1,4 @@
  -#!/bin/sh
  [EMAIL PROTECTED]@/lib/openpkg/bash
   ##
   ##  msov -- Microsoft Office Viewer Frontend Utility
   ##  Copyright (c) 2003 Ralf S. Engelschall <[EMAIL PROTECTED]> 
  @@ -30,6 +30,7 @@
           -h|--help    ) help="Usage"  ;;
           -q|--quiet   ) quiet=yes     ;;
           --format=*   ) format=$arg   ;;
  +        -            ) break         ;;
           -*           ) help="Invalid option \`$opt'"; break ;;
           *            ) break         ;;
       esac
  @@ -100,7 +101,16 @@
       exit 1
   fi
   rc=0
  +tmpfile=""
   for file in $*; do
  +    #   support reading from stdin
  +    if [ ".$file" = ".-" ]; then
  +        tmpfile="/tmp/msov.$$.tmp"
  +        file="$tmpfile"
  +        set -o noclobber
  +        cat >$file || exit 1
  +    fi
  +
       #   make sure file exists
       if [ ! -f $file ]; then
           echo "msov:ERROR: file \"$file\" not found" 1>&2
  @@ -155,6 +165,11 @@
   
       #   execute the viewer application
       $prefix/bin/wine "$path" "$file" >/dev/null 2>&1
  +
  +    #   cleanup
  +    if [ ".$tmpfile" != . ]; then
  +        rm -f $tmpfile
  +    fi
   done
   exit $rc
   
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/wine-msov/wine-msov.spec
  ============================================================================
  $ cvs diff -u -r1.1 -r1.2 wine-msov.spec
  --- openpkg-src/wine-msov/wine-msov.spec      18 Jul 2003 13:42:23 -0000      1.1
  +++ openpkg-src/wine-msov/wine-msov.spec      5 Aug 2003 18:58:07 -0000       1.2
  @@ -32,8 +32,8 @@
   Distribution: OpenPKG [EVAL]
   Group:        X11
   License:      Freeware
  -Version:      20030718
  -Release:      20030718
  +Version:      20030805
  +Release:      20030805
   
   #   list of sources
   Source0:      
http://download.microsoft.com/download/excel2000/Xlviewer/2000/WIN98/EN-US/xlViewer.exe
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.6045 -r1.6046 news.txt
  --- openpkg-web/news.txt      5 Aug 2003 18:43:24 -0000       1.6045
  +++ openpkg-web/news.txt      5 Aug 2003 18:58:05 -0000       1.6046
  @@ -1,3 +1,4 @@
  +05-Aug-2003: Upgraded package: P<wine-msov-20030805-20030805>
   05-Aug-2003: Upgraded package: P<pgadmin-0.8.0.20030805-20030805>
   05-Aug-2003: Upgraded package: P<ruby-1.8.0-20030805>
   05-Aug-2003: Upgraded package: P<xmlsec-1.1.0-20030805>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to