From cd976138bb662842ab9710197a196dbb8e742d23 Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 30 Aug 2000 22:08:16 +0000 Subject: forgot this one in last commit --- www/mozilla/scripts/moz-install | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 www/mozilla/scripts/moz-install diff --git a/www/mozilla/scripts/moz-install b/www/mozilla/scripts/moz-install new file mode 100755 index 00000000000..2575afd5e40 --- /dev/null +++ b/www/mozilla/scripts/moz-install @@ -0,0 +1,35 @@ +#!/bin/sh + +${SED} -e "s,@PREFIX@,${PREFIX},g" ${FILESDIR}/mozilla-${OBJECT_FMT}.in > ${PREFIX}/bin/mozilla +${CHOWN} ${BINOWN} ${PREFIX}/bin/mozilla +${CHGRP} ${BINGRP} ${PREFIX}/bin/mozilla +${CHMOD} ${BINMODE} ${PREFIX}/bin/mozilla + +# make directories +for i in `${EGREP} ^@dirrm ${PLIST_SRC} | ${SED} -e 's/^@dirrm//'` ; do + ${BSD_INSTALL_DATA_DIR} ${PREFIX}/$i +done + +# install programs +for i in `${SED} -n -e '/^@comment begin PROGRAMS$/,/^@comment end PROGRAMS$/p' ${PLIST_SRC} | ${EGREP} -v ^@comment` ; do + src=`echo $i | sed -e 's@lib/mozilla@dist/bin@'`; + ${BSD_INSTALL_PROGRAM} ${WRKSRC}/${src} ${PREFIX}/$i +done + +# install scripts +for i in `${SED} -n -e '/^@comment begin SCRIPTS$/,/^@comment end SCRIPTS$/p' ${PLIST_SRC} | ${EGREP} -v ^@comment` ; do + src=`echo $i | sed -e 's@lib/mozilla@dist/bin@'`; + ${BSD_INSTALL_SCRIPT} ${WRKSRC}/${src} ${PREFIX}/$i +done + +# install DSO +for i in `${SED} -n -e '/^@comment begin DSO$/,/^@comment end DSO$/p' ${PLIST_SRC} | ${EGREP} -v ^@comment` ; do + src=`echo $i | sed -e 's@lib/mozilla@dist/bin@'`; + ${BSD_INSTALL_PROGRAM} ${WRKSRC}/${src} ${PREFIX}/$i +done + +# install DATA +for i in `${SED} -n -e '/^@comment begin DATA$/,/^@comment end DATA$/p' ${PLIST_SRC} | ${EGREP} -v ^@comment` ; do + src=`echo $i | sed -e 's@lib/mozilla@dist/bin@'`; + ${BSD_INSTALL_DATA} ${WRKSRC}/${src} ${PREFIX}/$i +done -- cgit v1.2.3