Commit f4e012e48d4206f574fce4848faed708186b5d68
Adding scripts that automate tarball release.
Author: Martin Dvorak
Author date (UTC): 2014-05-14 16:30
Committer name: Martin Dvorak
Committer date (UTC): 2014-05-14 16:30
Parent(s): 2b205e1be909718dc26fd48f99aaa16d179101d5
Signing key:
Tree: c2596444780ba9f773a1bc7478c74b72c331f8f0
File dist/github-env.sh added (mode: 100755) (index 0000000..59091ed) |
|
1 |
|
#!/bin/bash |
|
2 |
|
|
|
3 |
|
export NOW=`date +%Y-%m-%d--%H-%M-%S` |
|
4 |
|
export GH_RELEASE_DIR=~/p/hstr/release |
|
5 |
|
export GH_DISTRO_DIR=${GH_RELEASE_DIR}/release-${NOW} |
|
6 |
|
|
|
7 |
|
export HHVERSION="1.0.8" |
|
8 |
|
export GH_MSG="GitHub release automation." |
|
9 |
|
|
|
10 |
|
# eof |
File dist/github-release.sh added (mode: 100755) (index 0000000..62dc4c0) |
|
1 |
|
#!/bin/bash |
|
2 |
|
|
|
3 |
|
. ./github-env.sh |
|
4 |
|
export SCRIPT_HOME=`pwd` |
|
5 |
|
|
|
6 |
|
function make_github_release() { |
|
7 |
|
cp -vrf ${SCRIPT_HOME}/../../hstr . |
|
8 |
|
cd hstr && rm -vrf debian doc tests && cd dist && ./1-dist.sh |
|
9 |
|
cd ../.. |
|
10 |
|
tar zcfv hh-${HHVERSION}-src.tgz hstr |
|
11 |
|
cd hstr && ./configure && make && cp src/hh .. |
|
12 |
|
cd .. |
|
13 |
|
tar zcfv hh-${HHVERSION}-bin-64b.tgz hh |
|
14 |
|
} |
|
15 |
|
|
|
16 |
|
|
|
17 |
|
mkdir -v ${GH_DISTRO_DIR} |
|
18 |
|
cd ${GH_DISTRO_DIR} && make_github_release |
|
19 |
|
|
|
20 |
|
# eof |