File:  [Public] / rpm2html / DoUpgrade
Revision 1.11: download - view: text, annotated - select for diffs
Thu Oct 7 07:33:52 1999 UTC (24 years, 8 months ago) by daniel
Branches: MAIN
CVS tags: RPM2HTML_1_5, RPM2HTML_1_4_FINAL, RPM2HTML_1_4, HEAD
Switched to rpmfind.net, reuse libxml libs, prepared 1.3, Daniel.

#!/bin/sh
PREFIX=/usr/local
WWW=/serveur/WWW/public/linux/rpm2html/
FTP=/serveur/ftp/pub/rpm2html/
BASE=/serveur/WWW/public/linux/RPM/

VERSION=`grep ^VERSION Makefile.in | awk '{printf("%s\n",$3) }'`
echo "Installing version $VERSION of rpm2html"
echo
echo "configuring"
echo
autoconf
./configure
make clean
make depends
echo
echo "Rebuilding"
echo
make
if [ "`hostname`" != "rpmfind.net" ] ; then exit 0 ; fi
echo
echo "Installing"
echo
chmod og+r $FTP/*
cp rpm2html $PREFIX/bin/
cp rpm2html-en.config $PREFIX/share/
cp rpm2html-fr.config $PREFIX/share/
cp msg.fr $PREFIX/share/rpm2html.fr
cp rpm2html.1 $PREFIX/man/man1/
echo $PREFIX updated
cp *.html $WWW
cp *.gif $WWW
chmod og+r $WWW/*
echo $WWW updated
cp help.html $BASE
cp search.html $BASE
echo $BASE updated
cp rpm2html-en.config $FTP
cp rpm2html.config.mirrors $FTP
echo
echo "Rebuiding database(s)"
echo
$PREFIX/bin/rpm2html -force $PREFIX/share/rpm2html-en.config
echo "done"

Webmaster