File: mkrelease

package info (click to toggle)
webcpp 0.8.4-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,596 kB
  • ctags: 590
  • sloc: sh: 10,819; cpp: 2,557; perl: 1,882; makefile: 300; xml: 13
file content (74 lines) | stat: -rwxr-xr-x 1,694 bytes parent folder | download | duplicates (2)
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
#!/bin/bash

# author: Jeffrey Bakker
# I've made this shell script for myself so I could quickly and
# easily make distributions of webcpp releases.

if [ "$1" = "" ]; then
	echo "You must provide the version number of the distribution."
	echo "Example: $ ./mkrelease 0.1.1"
	exit 0
fi

NAME="webcpp-$1"

# make source distribution ------------------------------------
function mksrcdist {

cd ..
mkdir -p $1-src
cp -R -d webcpp/* $1-src
tar -czvf $1-src.tar.gz $1-src
rm -rf $1-src
cd ./webcpp

echo "Source distribution $1-src.tar.gz has been made."
}
#--------------------------------------------------------------
# make executable distribution --------------------------------
function mkexedist {

cd ..
./makeself.sh --nox11 webcpp $1-setup.run $1 ./setup
cd ./webcpp

echo "$USER, the executable distribution has been made"
}
#--------------------------------------------------------------
# make binary distribution ------------------------------------
function mkbindist {

./configure --target=i386 && make

mkdir -p $1-i386
mkdir -p $1-i386/themes
mkdir -p $1-i386/backgrounds

cp ChangeLog ./$1-i386
cp COPYING ./$1-i386
cp AUTHORS ./$1-i386
cp TODO ./$1-i386

cp ./webcpp/webcpp ./$1-i386
cp ./docs.html ./$1-i386
cp ./webcpp/webc++ ./$1-i386/webc++
cp ./webcpp/themes/*.scs ./$1-i386/themes
cp ./webcpp/themes/*.Scs2 ./$1-i386/themes
cp ./webcpp/backgrounds/*.bmp ./$1-i386/backgrounds

tar -czvf ../$1-linux.i386.tar.gz $1-i386
rm -rf $1-i386

echo "Binary Distribution $1 has been made"
}
#--------------------------------------------------------------


webcpp ChangeLog changes.html:f -m

make  distclean
mksrcdist $NAME
mkexedist $NAME
mkbindist $NAME
make  distclean
exit