File: release.sh

package info (click to toggle)
isomaster 1.3.7-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,820 kB
  • ctags: 744
  • sloc: ansic: 11,186; makefile: 219; sh: 109; python: 11
file content (54 lines) | stat: -rwxr-xr-x 763 bytes parent folder | download | duplicates (4)
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
#!/bin/bash

VERSION=$1

if [ "$VERSION asd" = " asd" ]
then
    echo Usage: release.sh VERSION
    exit 1
fi

svn export . ../releases/isomaster-$VERSION
if [ $? -ne 0 ]
then
    exit 1
fi

rm ../releases/isomaster-$VERSION/bkisofs-manual
if [ $? -ne 0 ]
then
    exit 1
fi

make bk-doc
if [ $? -ne 0 ]
then
    exit 1
fi

mkdir ../releases/isomaster-$VERSION/bkisofs-manual
if [ $? -ne 0 ]
then
    exit 1
fi

cp ../doc/byme/bkisofs-manual/* ../releases/isomaster-$VERSION/bkisofs-manual/
if [ $? -ne 0 ]
then
    exit 1
fi

rm -r ../releases/isomaster-$VERSION/icons/originals
if [ $? -ne 0 ]
then
    exit 1
fi

cd ../releases
tar cvjf isomaster-$VERSION.tar.bz2 isomaster-$VERSION/
if [ $? -ne 0 ]
then
    exit 1
fi

echo isomaster-$VERSION.tar.bz2 created