4
# $Id: lr_inflate,v 1.24 2001/10/18 19:13:17 flacoste Exp $
7
# Copyright (C) 2000-2001 Stichting LogReport Foundation LogReport@LogReport.org
9
# This program is free software; you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 2 of the License, or
12
# (at your option) any later version.
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program (see COPYING); if not, check with
21
# http://www.gnu.org/copyleft/gpl.html or write to the Free Software
22
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
31
tag="all all $id $PROGRAM"
35
echo >&2 "$tag err give filename as arg"
39
echo >&2 "$tag info started with '$@'"
43
if [ ! -f "$file" ]; then
44
echo >&2 "$tag err aborted, no file '$file' found"
48
if test ! -d "$TMPDIR"
52
echo >&2 "$tag err $TMPDIR is a file, it should be a dir, aborting"
59
tmpfile=$TMPDIR/${PROGRAM}.$$.`date +%Y%m%d.%H%M%S`.${id}.log
62
if [ "$ext" = "gz" -o "$ext" = "Z" -o "$ext" = "ZIP" ]; then
63
echo >&2 "$tag info inflating $file to $tmpfile"
67
echo >&2 "$tag info moving $file to $tmpfile"
73
echo >&2 "$tag info stopped"