#!/usr/bin/ksh -pe
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)install-p7zip 1.2 07/12/03 SMI"
VERS=p7zip_4.55
PREFIX=$ROOT/usr
BINDIR=$PREFIX/bin
LIBDIR=$PREFIX/lib/7z
MANDIR=$PREFIX/share/man/man1
MANSCRIPT=../sunman-stability
. ${SRC}/tools/install.subr
cd ${VERS}
for f in bin/7z bin/7za bin/7zr; do
_install E $f $BINDIR/${f#*/} 555
done
for f in bin/7z.so bin/Codecs/Rar29.so; do
_install D $f $LIBDIR/${f#*/} 555
done
for f in man1/7z.1 man1/7za.1 man1/7zr.1; do
_install M $f $MANDIR/${f#*/} 444
done
_install S bin/p7zip $BINDIR/p7zip 555
_install M contrib/gzip-like_CLI_wrapper_for_7z/man1/p7zip.1 $MANDIR/p7zip.1 444
exit 0