Annotation of rpm2html/DoUpgrade, revision 1.10
1.1 veillard 1: #!/bin/sh
2: PREFIX=/usr/local
3: WWW=/serveur/WWW/public/linux/rpm2html/
4: FTP=/serveur/ftp/pub/rpm2html/
5: BASE=/serveur/WWW/public/linux/RPM/
6:
7: VERSION=`grep ^VERSION Makefile.in | awk '{printf("%s\n",$3) }'`
8: echo "Installing version $VERSION of rpm2html"
9: echo
10: echo "configuring"
11: echo
12: autoconf
13: ./configure
14: make clean
15: make depends
16: echo
17: echo "Rebuilding"
18: echo
19: make
1.7 veillard 20: if [ "`hostname`" != "rufus.w3.org" ] ; then exit 0 ; fi
1.1 veillard 21: echo
22: echo "Installing"
23: echo
24: chmod og+r $FTP/*
25: cp rpm2html $PREFIX/bin/
26: cp rpm2html-en.config $PREFIX/share/
27: cp rpm2html-fr.config $PREFIX/share/
28: cp msg.fr $PREFIX/share/rpm2html.fr
29: cp rpm2html.1 $PREFIX/man/man1/
1.3 veillard 30: echo $PREFIX updated
1.6 veillard 31: cp *.html $WWW
1.9 veillard 32: cp *.gif $WWW
1.6 veillard 33: chmod og+r $WWW/*
1.3 veillard 34: echo $WWW updated
1.1 veillard 35: cp help.html $BASE
36: cp search.html $BASE
1.3 veillard 37: echo $BASE updated
1.9 veillard 38: cp rpm2html-en.config $FTP
39: cp rpm2html.config.mirrors $FTP
1.1 veillard 40: echo
41: echo "Rebuiding database(s)"
42: echo
1.10 ! veillard 43: $PREFIX/bin/rpm2html -force $PREFIX/share/rpm2html-en.config
1.8 veillard 44: echo "done"
Webmaster