File: go

package info (click to toggle)
openbox 3.7~rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,892 kB
  • sloc: ansic: 38,834; xml: 1,358; sh: 665; makefile: 613; python: 421
file content (169 lines) | stat: -rwxr-xr-x 5,117 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#!/bin/sh

help() {
  echo "Usage: $0 <revision> <version> [lastrelease]"
  echo
  echo "  <revision>    The revision which should be used for release."
  echo "  <version>     The version of the release."
  echo "  [lastrelease] The revision of the most recent release made."
  echo "                By default it uses the most recent release-tag."
  exit 1
}

build_and_test() {
  style=$1
  make >/dev/null 2>/dev/null || error "make failed ($style)"
  ./obt/obt_unittests > /dev/null || error "unittest failed ($style)"
  make distclean >/dev/null || error "make distclean failed"
}

REV="$1"
test -z "$REV" && help
VERSION="$2"
test -z "$VERSION" && help
LAST="$3"

. release/common

#### CONFIRM SHORTLOG #####

echo Shortlog from previous release:
echo "$SHORTLOG"
echo
echo Shortlog from $LAST contains $(echo "$SHORTLOG"|wc -l) lines
echo -n "ok? (y/n) "
read a
test "$a" = "y" || error "aborted"

#### TEST english po VERSIONS ####

BAD_PO="$(grep Project-Id-Version po/en*.po|grep -v "openbox $VERSION\\\\n")"
test -z "$BAD_PO" || error "wrong version in po files" "$BAD_PO"

#### RESET THE REPO TO A CLEAN STATE ####

git clean -f -x -d -q

#### TEST ALL OPTIONAL COMPILATION FLAGS ####

# check that it builds
echo Bootstrapping
./bootstrap >/dev/null 2>/dev/null || "bootstrap failed"

echo Check compile with debug and all options enabled
CFLAGS="-Werror -isystem /usr/lib/glib-2.0" \
./configure -C --enable-debug >/dev/null || \
  error "configure (with debug) failed"
build_and_test "with debug and Werror"

# check that it builds with each optional featureset
echo Check compile with all options enabled
./configure -C >/dev/null || \
  error "configure failed"
grep "XKB 1" config.log >/dev/null || error "missing xkb extension"
grep "XRANDR 1" config.log >/dev/null || error "missing xrandr extension"
grep "XINERAMA 1" config.log >/dev/null || error "missing xinerama extension"
grep "SYNC 1" config.log >/dev/null || error "missing sync extension"
grep "USE_XCURSOR 1" config.log >/dev/null || error "missing xcursor extension"
grep "USE_IMLIB2 1" config.log >/dev/null || error "missing imlib2 library"
grep "USE_LIBRSVG 1" config.log >/dev/null || error "missing librsvg library"
grep "USE_SM 1" config.log >/dev/null || error "missing session management extension"
build_and_test

echo Check compile with startup notification disabled
./configure -C --disable-startup-notification >/dev/null || \
  error "configure failed"
build_and_test "with --disable-startup-notification"

echo Check compile with xcursor disabled
./configure -C --disable-xcursor >/dev/null || \
  error "configure failed"
build_and_test "with --disable-xcursor"

echo Check compile with imlib2 disabled
./configure -C --disable-imlib2 >/dev/null || \
  error "configure failed"
build_and_test "with --disable-imlib2"

echo Check compile with librsvg disabled
./configure -C --disable-librsvg >/dev/null || \
  error "configure failed"
build_and_test "with --disable-librsvg"

echo Check compile with session management disabled
./configure -C --disable-session-management >/dev/null || \
  error "configure failed"
build_and_test "with --disable-session-management"

echo Check compile with xkb disabled
./configure -C --disable-xkb >/dev/null || error "configure failed"
build_and_test "with --disable-xkb"

echo Check compile with xrandr disabled
./configure -C --disable-xrandr >/dev/null || error "configure failed"
build_and_test "with --disable-xrandr"

echo Check compile with xinerama disabled
./configure -C --disable-xinerama >/dev/null || error "configure failed"
build_and_test("with --disable-xinerama")

echo Check compile with xsync disabled
./configure -C --disable-xsync >/dev/null || error "configure failed"
build_and_test("with --disable-xsync")

# check that it installs sanely
echo Check installation correctness
./configure -C >/dev/null || \
  error "configure failed"
make distcheck >/dev/null || \
  error "make distcheck failed"

# VERIFY TARBALL

TAR="openbox-$VERSION.tar.gz"
ASC="openbox-$VERSION.tar.gz.asc"

echo Found Openbox release tarball:
ls -d openbox-*.tar.gz
test -e "$TAR" || \
  error "Specified version does not match configure.ac"

# SIGN THE TARBALL

echo Signing the release tarball:
gpg --sign --detach-sign --armor "$TAR"
test $? = 0 || \
  error "Failed to sign release tarball"

echo Tagging the release:
git tag -s -m "tagging the $VERSION release" "release-$VERSION" $REV || \
  error "Failed to tag the release"

mv "$TAR" "$ASC" "$SRCDIR"

echo "=$VERSION="
echo "$CLNOWRAP"
echo
echo
echo Edit download page:
echo "  http://openbox.org/oldwiki/index.php?title=Openbox:Download&action=edit&section=1"
echo
echo Edit changelog:
echo "  http://openbox.org/oldwiki/index.php?title=Openbox:Changelog&action=edit&section=1"
echo
echo Add the version to the bug tracker:
echo "  https://bugzilla.icculus.org/editversions.cgi?action=add&product=Openbox"
echo
echo Push the tag:
echo "  git push origin tag release-$VERSION"
echo
echo Email:
echo "  ./release/email $*"
echo
echo Update IRC topic and have a beer/juice!
echo
cd "$SRCDIR"
ls -l "$TAR" "$ASC"

clean
exit 0