#!/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`" != "rufus.w3.org" ] ; 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 mirroring.gif $WWW chmod og+r $WWW/* echo $WWW updated cp help.html $BASE cp search.html $BASE echo $BASE updated echo echo "Rebuiding database(s)" echo $PREFIX/bin/rpm2html -force -q $PREFIX/share/rpm2html-en.config echo "done"