2014-05-15 00:30:12 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-02-27 16:03:17 +08:00
|
|
|
# Release checklist:
|
|
|
|
# - update version in the source code (hstr.c)
|
|
|
|
# - update version in configure.ac
|
|
|
|
# - update version github-env.sh
|
|
|
|
# - run this script from this directory
|
|
|
|
|
2014-05-15 00:30:12 +08:00
|
|
|
. ./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
|
2015-01-08 19:07:06 +08:00
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
exit 1;
|
|
|
|
fi
|
2014-05-15 00:30:12 +08:00
|
|
|
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
|