summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2015-12-08 00:23:48 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-12-27 01:57:29 +0900
commitefc82b08cb6c25ae9e565cfc8019d89cdb310493 (patch)
tree622930e8f2be89ebf78349f45acd3a7217bd2f92
parent1873e2cb5acb373ba47fb36a75225785593586a2 (diff)
release.sh: Split more functions.
-rwxr-xr-xrelease.sh34
1 files changed, 23 insertions, 11 deletions
diff --git a/release.sh b/release.sh
index 47e52e4..df4aacf 100755
--- a/release.sh
+++ b/release.sh
@@ -22,19 +22,10 @@ PREPARE=0
22 22
23# fail on errors 23# fail on errors
24set -e 24set -e
25#set -x
25 26
26do_package_and_upload() 27get_news()
27{ 28{
28 local lib flags
29
30 lib="$1"
31 echo
32 echo "Package $lib"
33 echo
34
35 cd "$lib"
36 #git co po/ || exit 1
37 make clean distclean || exit 1
38 $EDITOR configure.ac || exit 1 29 $EDITOR configure.ac || exit 1
39 echo "Changes since $OLD_VERSION:" >> NEWS 30 echo "Changes since $OLD_VERSION:" >> NEWS
40 echo -e "---------------------\n" >> NEWS 31 echo -e "---------------------\n" >> NEWS
@@ -44,6 +35,10 @@ do_package_and_upload()
44 git diff || exit 1 35 git diff || exit 1
45 git commit -v configure.ac NEWS -m "release: Update NEWS and bump version for $VERSION release" || exit 1 36 git commit -v configure.ac NEWS -m "release: Update NEWS and bump version for $VERSION release" || exit 1
46 git show || exit 1 37 git show || exit 1
38}
39
40do_compile()
41{
47 ./autogen.sh || exit 1 42 ./autogen.sh || exit 1
48 if [ $lib = "elementary" ] 43 if [ $lib = "elementary" ]
49 then 44 then
@@ -62,6 +57,23 @@ do_package_and_upload()
62 then 57 then
63 make doc 58 make doc
64 fi 59 fi
60}
61
62do_package_and_upload()
63{
64 local lib flags
65
66 lib="$1"
67 echo
68 echo "Package $lib"
69 echo
70
71 cd "$lib"
72 #git co po/ || exit 1
73 make clean distclean || exit 1
74
75 get_news
76 do_compile
65 77
66 #git co po/ 78 #git co po/
67 sha256sum $lib-$VERSION.tar.gz > $lib-$VERSION.tar.gz.sha256 79 sha256sum $lib-$VERSION.tar.gz > $lib-$VERSION.tar.gz.sha256