X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-dist.sh;h=5ab5bf3a56e90ea0139808556379422ba0936c7d;hb=a1d1b6fcaa983c7f5832436effebeaf0c8068fb8;hp=86c73f14c47f996e4cafdfe57f99b77910671fdc;hpb=b56f82a679b57ace66b466ece88f49f704dbb439;p=ctsim.git diff --git a/make-dist.sh b/make-dist.sh index 86c73f1..5ab5bf3 100755 --- a/make-dist.sh +++ b/make-dist.sh @@ -1,7 +1,7 @@ #!/bin/sh # Creates debian and system-independent archive files -# Programmer: Kevin Rosenberg based on script used by onShore Development +# Programmer: Kevin M. Rosenberg set -e @@ -13,17 +13,25 @@ TOPDIR=`basename $PWD` DISTDIR=${PKG}-${VERSION} DEBDIR=${DEBPKG}-${VERSION} +if [! -f docs/${PKG}.htb -o ! -f docs/html/${PKG}_contents.html -o ! -f docs/${PKG}.pdf ]; then + echo "Making documentation" + pushd doc + make all + popd +fi + TAG=upstream_version_`echo $VERSION | tr . _` #echo "(re)tagging with release tag '$TAG'" #cvs -q rtag -d $TAG $PKG #cvs -q tag -F $TAG -# build the tarball -echo "building tarballs" +echo "Preparing for archives" pushd .. rm -f ${PKG}_${VERSION}.tar.gz ${DEBPKG}_${VERSION}.orig.tar.gz rm -rf ${DISTDIR} ${DEBDIR} ${DISTDIR}.zip + +echo "Making archives" cp -a ${TOPDIR} ${DISTDIR} # Remove junk from distribution dir @@ -33,7 +41,8 @@ rm -f `find . -type f -name .cvsignore` rm -rf `find . -type d -name CVS` rm -f `find . -type f -name '*~' -or -name '.*~' -or \ -name '.#*' -or -name '#*#' -or -name '*.fig' -or -name '*.psd'` -rm -rf images copy make-dist.sh make-doc.sh doc +rm -rf images copy make-dist.sh make-doc.sh doc stamp-h.in build-stamp \ + configure-stamp popd # Create original distribution archives @@ -58,7 +67,7 @@ if [ "${DISTDIR}" != "${DEBDIR}" ]; then fi cp -a ${TOPDIR}/debian ${DEBDIR} -# dpkg-source ${DEBDIR} ${PKG}_${VERSION}.orig.tar.gz +echo "Building Debian packages" pushd ${DEBDIR} dpkg-buildpackage -rfakeroot -kkevin@b9.com #-tc -b