File: DoInstall

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 (69 lines) | stat: -rw-r--r-- 1,799 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/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 "Preparing packages"
echo
make distrib
cp rpm2html-$VERSION.tar.gz /usr/src/redhat/SOURCES/
cp rpm2html.spec /usr/src/redhat/SPECS/
(cd /usr/src/redhat/SPECS/ ; rpm -ba rpm2html.spec)
ls -l /usr/src/redhat/SOURCES/rpm2html-$VERSION.tar.gz
ls -l /usr/src/redhat/SRPMS/rpm2html-$VERSION-*.src.rpm
ls -l /usr/src/redhat/RPMS/i386/rpm2html-$VERSION-*.i386.rpm
echo
echo "Building static version"
echo
./configure
make LDFLAGS=-static
mv rpm2html rpm2html.static
echo
echo "Rebuilding"
echo
make clean
make
if [ "`hostname`" != "rpmfind.net" ] ; then exit 0 ; fi
echo
echo "Installing"
echo
#cp /usr/src/redhat/SOURCES/rpm2html-$VERSION.tar.gz $FTP
#cp /usr/src/redhat/SRPMS/rpm2html-$VERSION-*.src.rpm $FTP
#cp /usr/src/redhat/RPMS/i386/rpm2html-$VERSION-*.i386.rpm $FTP
#echo "Signing packages"
#rpm --addsign $FTP/*.rpm
cp rpm2html-en.config $FTP/rpm2html.config.rufus
cp rpm2html.config.mirrors $FTP/rpm2html.config.rufus
mv rpm2html.static $FTP/
chmod og+r $FTP/*
echo $FTP updated
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
chmod og+r $BASE/help.html $BASE/search.html
echo $BASE updated
#echo
#echo "Rebuiding database(s)"
#echo
#$PREFIX/bin/rpm2html -force -q $PREFIX/share/rpm2html-en.config
#echo "done"