Adding scripts that automate tarball release.

This commit is contained in:
Martin Dvorak 2014-05-14 18:30:12 +02:00
parent 2b205e1be9
commit f4e012e48d
2 changed files with 30 additions and 0 deletions

10
dist/github-env.sh vendored Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
export NOW=`date +%Y-%m-%d--%H-%M-%S`
export GH_RELEASE_DIR=~/p/hstr/release
export GH_DISTRO_DIR=${GH_RELEASE_DIR}/release-${NOW}
export HHVERSION="1.0.8"
export GH_MSG="GitHub release automation."
# eof

20
dist/github-release.sh vendored Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
. ./github-env.sh
export SCRIPT_HOME=`pwd`
function make_github_release() {
cp -vrf ${SCRIPT_HOME}/../../hstr .
cd hstr && rm -vrf debian doc tests && cd dist && ./1-dist.sh
cd ../..
tar zcfv hh-${HHVERSION}-src.tgz hstr
cd hstr && ./configure && make && cp src/hh ..
cd ..
tar zcfv hh-${HHVERSION}-bin-64b.tgz hh
}
mkdir -v ${GH_DISTRO_DIR}
cd ${GH_DISTRO_DIR} && make_github_release
# eof