File: DoUpgrade

package info (click to toggle)
rpm2html 1.7-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,808 kB
  • ctags: 935
  • sloc: ansic: 13,013; sh: 8,491; php: 338; makefile: 204; perl: 122
file content (44 lines) | stat: -rw-r--r-- 940 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/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"