~hww3/caudium

ref: 93d5a75fba08db71b832716377276978cdd7888d caudium/tools/make_caudium_tar -rwxr-xr-x 1.9 KiB
93d5a75fWilliam Welliver storage: method "None" was missing stop function. should fix error on shutdown 1 year, 1 month ago
                                                                                
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/sh
#
# $Id$
#
# Env Variables
#

LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/X11/lib:/opt/mysql/lib/mysql:/opt/freeware/lib:/usr/dt/lib:/usr/openwin/lib:/opt/wapgw/lib:
PATH=/opt/proftpd/bin:/usr/local/bin:/bin:/usr/ccs/bin:/etc:/usr/etc:/usr/local/X11/bin:/opt/mysql/bin:/opt/freeware/bin:/usr/ucb:/usr/openwin/bin:/usr/local/etc:/usr/sbin:/usr/dt/bin:/sbin:/opt/ipf/bin:/opt/wapgw/bin:
MANPATH=/usr/local/man:/opt/freeware/man:/usr/man:/usr/local/X11/man:/opt/ipf/man
export LD_LIBRARY_PATH PATH MANPATH
PAGER=less
EDITOR=vi
CC=gcc
CXX=gcc
#
# We don't want to force ia32 to compile for sparc :-)
#CFLAGS="-msupersparc -O6"
#CXXFLAGS="-msupersparc -O6"
export PAGER EDITOR CC CFLAGS CXX CXXFLAGS
PS1='\u@\h:\w\$ '
export PS1
TEMPDIR=/tmp

# Make the Daily Package of Caudium webserver
#
DATE=`date '+%Y%m%d'`
CVSDIR=/opt/BUILD/cvs
CHROOTDIR=/tmp/caudium-1.0
BUILDIR=${CHROOTDIR}/tmp
SETUPCHROOT=/usr/local/sbin/setup_chroot
DIRTMP=/tmp/$0.$$
#
# Creating Directories..
#
mkdirhier ${BUILDIR}

#
# Update the CVS directory
#
cd ${CVSDIR}/caudium
cvs -Q -z3 update -Pd > /dev/null

#
# Copy the files to a temporary repository
#
cd ${CVSDIR}

#
mkdir $DIRTMP
tar -c -l -p -f - caudium | (cd $DIRTMP && tar -x -v -l -p -f -)
cd $DIRTMP
cd caudium
./autogen.sh
cd ..
tar -c -l -p -f $TEMPDIR/caudium-1.0.0.$DATE.tar caudium

#
# Try to find the packer we have
#
PACKERS="bzip2 gzip compress"
DIRS="/usr/bin /usr/local/bin"

#
# Try to find the packer we have
#
PACKERS="bzip2 gzip compress"
DIRS="/usr/bin /usr/local/bin"

for d in ${DIRS}; do
    for f in ${PACKERS}; do
	if test -x ${d}/${f}; then
	    PACKER=${f}
	    PACKER_DIR=${d}
	    break
	fi
    done
done

if test -z "$PACKER"; then
    echo Cannot find any compression utility. Aborting.
    exit 1
fi

case ${PACKER} in
    bzip2) PFLAGS=-9f ;;
    gzip) PFLAGS=-9nf ;;
    compress) PFLAGS= ;;
esac

${PACKER_DIR}/${PACKER} ${PFLAGS} ${TEMPDIR}/caudium-1.0.0.${DATE}.tar

cd /tmp
rm -rf $DIRTMP