diff options
author | Peter A. Bigot <pabigot@users.sourceforge.net> | 2010-05-30 12:39:23 -0500 |
---|---|---|
committer | Peter A. Bigot <pabigot@users.sourceforge.net> | 2010-05-30 12:39:23 -0500 |
commit | bd2551ad07eaf55b0833c40e6b0ed71a345287ee (patch) | |
tree | 86bbfbb15ccb926b582ca9557dc688fe80b81dd3 | |
parent | 46a01fa0658daf2c5dad4c081847fb4ef3df4599 (diff) |
Update to git
-rwxr-xr-x | maintainer/makedist | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/maintainer/makedist b/maintainer/makedist index 8deb774..035cfc3 100755 --- a/maintainer/makedist +++ b/maintainer/makedist @@ -1,23 +1,28 @@ #!/bin/sh -exec 2>&1 | tee makedist.log +BRANCH=${1:-next} + +exec | tee makedist.log 2>&1 + +DIST_SUBDIR=pyxbdist +cd /tmp +rm -rf ${DIST_SUBDIR} +git clone -b ${BRANCH} ~/pyxb/dev ${DIST_SUBDIR} +cd ${DIST_SUBDIR} +export PYXB_ROOT=`pwd` # Update the version numbers in the source -./setup.py update_version +version=$(grep ^version setup.py | cut -d= -f2 | sed -e "s@'@@g") -hg_status=`hg status -q | grep -v makedist` -if [ -n "${hg_status}" ] ; then +echo $version + +./setup.py update_version +if ( git status >/dev/null ) ; then echo 1>&2 ERROR: Unsaved deltas - echo ${hg_status} + git status -uno exit 1 fi -DISTDIR=/tmp/pyxbdist -rm -rf ${DISTDIR} -hg archive ${DISTDIR} -cd ${DISTDIR} -export PYXB_ROOT=`pwd` - # First, the core: ./setup.py sdist ver=`ls -rt dist | tail -1 | sed -e 's@^PyXB-\(.*\).tar.gz$@\1@'` @@ -72,7 +77,7 @@ build_overlay () { sdir=$1 shift ( - find ${DISTROOT}/${sdir} -type f -newer ${BASE_TGZ} ; + find ${DISTROOT}/${sdir} -type f -cnewer ${BASE_TGZ} ; for f in "${@}" ; do find ${DISTROOT}/${f} -type f done |