diff options
author | martin <martin@pkgsrc.org> | 2000-08-30 22:08:16 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2000-08-30 22:08:16 +0000 |
commit | cd976138bb662842ab9710197a196dbb8e742d23 (patch) | |
tree | 864e1f1b38f909adb2152bef2f05e60d0c842e30 | |
parent | 5b2330d15aaaf480ff560619d38499eca838b001 (diff) | |
download | pkgsrc-cd976138bb662842ab9710197a196dbb8e742d23.tar.gz |
forgot this one in last commit
-rwxr-xr-x | www/mozilla/scripts/moz-install | 35 |
1 files changed, 35 insertions, 0 deletions
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 |