diff options
author | agc <agc@pkgsrc.org> | 2001-10-26 14:35:12 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-10-26 14:35:12 +0000 |
commit | 296e868cf08c88bfb4279bc4607978e70b46be6c (patch) | |
tree | ad46229cd47514a2a0b14293fc2fda9d14db650a /www/mozilla/files | |
parent | 63e640ea1d47814335c4d05834957d9c985adb2f (diff) | |
download | pkgsrc-296e868cf08c88bfb4279bc4607978e70b46be6c.tar.gz |
Move the moz-install script from the scripts/ directory to the files/
directory.
Diffstat (limited to 'www/mozilla/files')
-rwxr-xr-x | www/mozilla/files/moz-install | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/www/mozilla/files/moz-install b/www/mozilla/files/moz-install new file mode 100755 index 00000000000..aea26a9310d --- /dev/null +++ b/www/mozilla/files/moz-install @@ -0,0 +1,50 @@ +#!/bin/sh +# +# $NetBSD: moz-install,v 1.1 2001/10/26 14:35:12 agc Exp $ + +${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 `${SED} -n -e '/^@comment begin DIRS$/,/^@comment end DIRS$/p' ${PLIST_SRC} | ${EGREP} -v ^@comment | ${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 + +# install INCLUDE +for i in `${SED} -n -e '/^@comment begin INCLUDE$/,/^@comment end INCLUDE$/p' ${PLIST_SRC} | ${EGREP} -v ^@comment` ; do + src=`echo $i | sed -e 's@include/mozilla@dist/include@'`; + ${BSD_INSTALL_DATA} ${WRKSRC}/${src} ${PREFIX}/$i +done + +# +# +# +cd ${PREFIX}/lib/mozilla +${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regxpcom +${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ./regchrome |