3
# $Header: /cvsroot/firebird/firebird2/builds/install/arch-specific/sinixz/preinstall.in,v 1.1 2003/07/08 22:58:56 brodsom Exp $
4
#------------------------------------------------------------------------------
6
# Copyright (C) Siemens Nixdorf Informationssysteme AG 1994 - 1998
7
# Copyright (C) Siemens AG 1998 1999
8
# Copyright (C) Fujitsu Siemens Computers GmbH 1999 2000
11
#------------------------------------------------------------------------------
13
# save files which will be replaced
14
# don't save shell, will not be removed
22
echo "saving the original modules ..."
24
if [ -f /tmp/ERROR.${PKGINST} ]
26
rm /tmp/ERROR.${PKGINST}
29
for file in ${FILELIST};do
30
if [ ! -f ${PKGSAV}${file}.Z -a -f ${file} ];then
31
echo ${file} | tr '\040' '\012' | cpio -pvdum ${PKGSAV}
32
/usr/bin/compress ${PKGSAV}${file}
34
done >/tmp/ERROR.${PKGINST} 2>&1
36
# check for successful saved modules
38
for file in ${FILELIST}; do
39
[ ! -s ${file} ] && continue
40
if [ ! -f ${PKGSAV}${file}.Z ]; then
41
if [ "$ERR" = '0' ];then
42
echo "\nAn error occured when saving original modules. \ntmp/ERROR.${PKGINST} contains the reported errors.\n\n"
43
echo "/tmp/ERROR.${PKGINST}:"
44
cat /tmp/ERROR.${PKGINST}
47
ls -l $file ${PKGSAV}${file}.Z
51
[ "$ERR" = '0' ] && rm -f /tmp/ERROR.${PKGINST}