File:  [Public] / rpm2html / DoUpgrade
Revision 1.1: download - view: text, annotated - select for diffs
Mon Apr 27 18:23:57 1998 UTC (26 years, 1 month ago) by veillard
Branches: MAIN
CVS tags: HEAD
Fixing buffer allocation overflow, 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
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/
cp index.html $WWW
cp help.html $WWW
cp help.html $BASE
cp search.html $BASE
echo
echo "Rebuiding database(s)"
echo
$PREFIX/bin/rpm2html -force -q $PREFIX/share/rpm2html-en.config
echo "RPM done"
$PREFIX/bin/rpm2html -force -q -lang $PREFIX/share/rpm2html.fr $PREFIX/share/rpm2html-fr.config
echo "RPM-FR done"

Webmaster