diff options
author | 2011-12-12 21:32:19 +0000 | |
---|---|---|
committer | 2011-12-12 21:32:19 +0000 | |
commit | 199a434011e3d7511791aac55854a8da3b67ffb9 (patch) | |
tree | 3fad4330b7632bdd4269579175cc08f4c3e41cce /make-tarball.sh | |
parent | revert stdout bypass as it doesnt work on linux/glibc systems (diff) | |
download | portage-utils-199a434011e3d7511791aac55854a8da3b67ffb9.tar.gz portage-utils-199a434011e3d7511791aac55854a8da3b67ffb9.tar.bz2 portage-utils-199a434011e3d7511791aac55854a8da3b67ffb9.zip |
add checking support
Diffstat (limited to 'make-tarball.sh')
-rwxr-xr-x | make-tarball.sh | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/make-tarball.sh b/make-tarball.sh index 397d3bc..f6495bd 100755 --- a/make-tarball.sh +++ b/make-tarball.sh @@ -2,6 +2,10 @@ set -e +v() { printf '\t%s\n' "$*"; "$@"; } + +: ${MAKE:=make} + if [[ $# -ne 1 ]] ; then echo "Usage: $0 <ver>" 1>&2 exit 1 @@ -17,10 +21,12 @@ mkdir "${p}" echo "Checking out clean cvs sources ..." cp -a CVS "${p}"/ cd "${p}" -cvs -Q up +v cvs -Q up + +echo "Building autotools ..." sed -i "/^AC_INIT/s:cvs:${ver}:" configure.ac sed -i "1iPV := ${ver}" Makefile -LC_ALL=C ${MAKE:-make} autotools +LC_ALL=C ${MAKE} -s autotools >/dev/null rm -rf autom4te.cache cd .. @@ -30,4 +36,21 @@ tar cf - "${p}" | xz > "${p}".tar.xz rm -r "${p}" du -b "${p}".tar.* +echo "Checking tarball (simple) ..." +tar xf "${p}".tar.* +pushd "${p}" >/dev/null +v ${MAKE} -s +v ${MAKE} -s check +popd >/dev/null +rm -rf "${p}" + +echo "Checking tarball (autotools) ..." +tar xf "${p}".tar.* +pushd "${p}" >/dev/null +v ./configure -q +v ${MAKE} -s +v ${MAKE} -s check +popd >/dev/null +rm -rf "${p}" + exit 0 |