Subversion Repositories DevTools

Rev

Rev 1530 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1530 dpurdie 1
#set -x
2
# This script deletes the used backout data for a patch package
3
# and removes the deletes file entries.
4
#
5
# directory format options.
6
#
7
#       @(#)patch_postinstall 1.3 98/07/29 SMI
8
#
9
# Copyright (c) 1995 by Sun Microsystems, Inc.
10
# All rights reserved
11
#
12
 
13
PATH=/usr/sadm/bin:$PATH
14
THIS_DIR=`dirname $0`
15
 
16
Our_Deletes=$THIS_DIR/deletes
17
 
18
#
19
# Delete the used backout data
20
#
21
if [ -f $Our_Deletes ]; then
22
	cat $Our_Deletes | while read path; do
23
		if valpath -l $path; then
24
			Client_Path=`echo "$CLIENT_BASEDIR/$path" | sed "s|//|/|"`
25
		else	# It's an absolute path
26
			Client_Path=$path
27
		fi
28
		rm `removef $PKGINST $Client_Path`
29
	done
30
	removef -f $PKGINST
31
 
32
	rm $Our_Deletes
33
fi
34
 
35
#
36
# Remove the deletes file, checkinstall and the postinstall
37
#
38
rm -r $PKGSAV/$ACTIVE_PATCH
39
rm -f $THIS_DIR/checkinstall $THIS_DIR/postinstall
40
 
41
exit 0