forked from dbus-cxx/dbus-cxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake-dist.sh
executable file
·58 lines (49 loc) · 1.15 KB
/
make-dist.sh
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
#!/bin/bash
#
# This script creates the dist packages and uploads them
#
# Unless you're a maintainer of dbus-cxx, you probably don't care about this.
#
# Release Process:
#
# 1. Mark the debian version as released
# 2. Ensure that the debian version and the version in CMakeLists.txt agree with each other
# 3. Commit changes(if needed).
# 4. Create a tag of the release version
# 5. Run this script
# 6. Go to sourceforge and set the default download to be the newly uploaded file
TAG_NAME=
checkout_tag() {
git clone [email protected]:dbus-cxx/dbus-cxx.git dbus-cxx-release
cd dbus-cxx-release
git checkout tags/"$TAG_NAME"
if [ $? -ne 0 ]
then
echo "ERROR: Unable to checkout tag $TAG_NAME"
exit $?
fi
}
build_docs() {
mkdir build
cd build
cmake .. -DBUILD_SITE=ON
make
cd ..
}
build_source_package() {
cd build
make package_source
cd ..
}
upload_files_to_sourceforge() {
cd build
mkdir "$TAG_NAME"
cp *.tar.gz "$TAG_NAME"
scp -Crp "$TAG_NAME" rm5248,[email protected]:/home/frs/project/d/db/dbus-cxx/dbus-cxx/
cd ..
}
read -p "Please enter tag name: " TAG_NAME
checkout_tag
build_docs
build_source_package
upload_files_to_sourceforge