Last change
on this file since 1075 was 414, checked in by Herwig Bauernfeind, 15 years ago |
Samba 3.5.0: Initial import
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ "$1" = "" ]; then
|
---|
4 | echo "Please provide version string, eg: 1.2.0"
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 |
|
---|
8 | if [ ! -d "lib/tevent" ]; then
|
---|
9 | echo "Run this script from the samba base directory."
|
---|
10 | exit 1
|
---|
11 | fi
|
---|
12 |
|
---|
13 | git clean -f -x -d lib/tevent
|
---|
14 | git clean -f -x -d lib/replace
|
---|
15 |
|
---|
16 | curbranch=`git-branch |grep "^*" | tr -d "* "`
|
---|
17 |
|
---|
18 | version=$1
|
---|
19 | strver=`echo ${version} | tr "." "-"`
|
---|
20 |
|
---|
21 | # Checkout the release tag
|
---|
22 | git branch -f tevent-release-script-${strver} tevent-${strver}
|
---|
23 | if [ ! "$?" = "0" ]; then
|
---|
24 | echo "Unable to checkout tevent-${strver} release"
|
---|
25 | exit 1
|
---|
26 | fi
|
---|
27 |
|
---|
28 | git checkout tevent-release-script-${strver}
|
---|
29 |
|
---|
30 | # Test configure agrees with us
|
---|
31 | confver=`grep "^AC_INIT" lib/tevent/configure.ac | tr -d "AC_INIT(tevent, " | tr -d ")"`
|
---|
32 | if [ ! "$confver" = "$version" ]; then
|
---|
33 | echo "Wrong version, requested release for ${version}, found ${confver}"
|
---|
34 | exit 1
|
---|
35 | fi
|
---|
36 |
|
---|
37 | # Now build tarball
|
---|
38 | cp -a lib/tevent tevent-${version}
|
---|
39 | cp -a lib/replace tevent-${version}/libreplace
|
---|
40 | pushd tevent-${version}
|
---|
41 | ./autogen.sh
|
---|
42 | popd
|
---|
43 | tar cvzf tevent-${version}.tar.gz tevent-${version}
|
---|
44 | rm -fr tevent-${version}
|
---|
45 |
|
---|
46 | #Clean up
|
---|
47 | git checkout $curbranch
|
---|
48 | git branch -d tevent-release-script-${strver}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.