diff --git a/dist/github-env.sh b/dist/github-env.sh new file mode 100755 index 0000000..59091ed --- /dev/null +++ b/dist/github-env.sh @@ -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 diff --git a/dist/github-release.sh b/dist/github-release.sh new file mode 100755 index 0000000..62dc4c0 --- /dev/null +++ b/dist/github-release.sh @@ -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