~noskcaj/ubuntu/vivid/dhelp/merge

« back to all changes in this revision

Viewing changes to scripts/gz-extract

  • Committer: Package Import Robot
  • Author(s): Leo Iannacone
  • Date: 2011-12-02 19:20:37 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20111202192037-dlhauhjixd70e43q
Tags: 0.6.20ubuntu1
* Merge with debian unstable (LP: #898773), remaining changes:
  - lib/dhelp.rb:
    + Exit and return zero code if bdb isn't available; this usually
      indicates that dhelp is not configured yet.
* Drop changes:
  - debian/control:
    + Packages that Depend/Recommend/Suggest firefox (metapackages) must
      alternatively Depend/Recommend/Suggest abrowser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Script optimised to run from within dhelp's swish++.conf.
 
3
# That means:
 
4
# * No error checking on parameters; edit swish++.conf the right way.
 
5
# * Spit output only on errors (a line pointing to input file).
 
6
#
 
7
# $1 = Input file, $2 = Output file
 
8
 
 
9
2>/dev/null gzip -dc ${1} > ${2}
 
10
EXITVAL=$?
 
11
if [ ${EXITVAL} -ne 0 ]; then
 
12
        echo "Error decompressing file: ${1}"
 
13
fi
 
14
exit ${EXITVAL}