This is an automated email from the git hooks/post-receive script. tille pushed a commit to branch master in repository mgltools-bhtree.
commit 737763e2fab7a9d506b915dc0af8173154a8d2dd Author: Andreas Tille <[email protected]> Date: Sat Dec 30 21:22:22 2017 +0100 Add missing get-orig-source dir --- debian/get-orig-source/README | 10 ++++ debian/get-orig-source/current-branch | 1 + debian/get-orig-source/get-orig-source | 101 +++++++++++++++++++++++++++++++++ debian/get-orig-source/rc-version | 1 + debian/get-orig-source/rc-version.ok | 1 + 5 files changed, 114 insertions(+) diff --git a/debian/get-orig-source/README b/debian/get-orig-source/README new file mode 100644 index 0000000..ee57fca --- /dev/null +++ b/debian/get-orig-source/README @@ -0,0 +1,10 @@ +This directory contains all scripts/data/whatsoever to automatically build +mgltools-packages. +Using svn externals, this directory appears in the debian directory of each +package. So in case you need to change anything (like the branch to be used), +there is only one place to make the modifications. + + +Command in trunk/debian: +svn propset svn:externals \ + '^/trunk/packages/mgltools/mgltools-external-get-orig-source get-orig-source' . diff --git a/debian/get-orig-source/current-branch b/debian/get-orig-source/current-branch new file mode 100644 index 0000000..95b45df --- /dev/null +++ b/debian/get-orig-source/current-branch @@ -0,0 +1 @@ +rc-1-5-7 diff --git a/debian/get-orig-source/get-orig-source b/debian/get-orig-source/get-orig-source new file mode 100755 index 0000000..656fb02 --- /dev/null +++ b/debian/get-orig-source/get-orig-source @@ -0,0 +1,101 @@ +#!/bin/bash +# +# usage: get-orig-source <original package name> <branch> <version of rc> +# e.g.: get-orig-source VolumeDIST rc-1-5-6 ~rc1 +# +package=$1 +branch=$2 +rcversion=$3 + +REMOTECVSROOT=:pserver:[email protected]:2401/opt/cvs +CVS=/usr/bin/cvs +MGLTOOLSCVS=../../mgltools-cvs + +# Expected by svn-buildpackage as 'tarballs' +TARDIR=../tarballs + +PREFIX="mgltools-" +if [ "$package" == "AutoDockToolsDIST" ]; then + PREFIX="" +fi +DEBPACKAGE=$PREFIX`echo $package|sed "s/DIST//g"| tr 'A'-'Z' 'a'-'z'` + +# do some stuff +echo "I: get $package (-> $DEBPACKAGE) from branch $branch" + +loginDone=`grep "$REMOTECVSROOT" ~/.cvspass|wc -l` +if [ "$loginDone" == "0" ]; then + $CVS -d$REMOTECVSROOT login +fi + +if [ -d "$MGLTOOLSCVS" ]; then + echo "I: cvs directory already available" +else + echo "I: create directory '$MGLTOOLSCVS' to store new CVS checkout" + mkdir "$MGLTOOLSCVS" +fi + +if [ -d $MGLTOOLSCVS/$package ]; then + echo "I: ... checkout already done" + if [ -r "$MGLTOOLSCVS/$package/CVS/Tag" ]; then + echo "W: check whether this is the correct tag: `cat $MGLTOOLSCVS/$package/CVS/Tag`" + else + echo "W: no tag file found. You may be working on the trunk, not on the release branch. Is that what you want?" + fi + sleep 3 + (cd $MGLTOOLSCVS/$package && $CVS -z3 update -d) +else + echo "I: ... now performing checkout" + (cd "$MGLTOOLSCVS" && $CVS -z3 -d$REMOTECVSROOT co -r $branch $package) +fi + +version=`echo $branch|sed "s/rc-//g"|tr '-' '.'` + +DATE=`date +"%Y%m%d"` +if [ -f $MGLTOOLSCVS/build-for-date ]; then + DATE=`cat $MGLTOOLSCVS/build-for-date` +fi +if [ -z ${rcversion} ]; then + echo "I: no rc but real release" + origFilename=${DEBPACKAGE}_${version}${rcversion}.orig.tar.gz + origDirname=${DEBPACKAGE}-${version}${rcversion} +else + origFilename=${DEBPACKAGE}_${version}${rcversion}~cvs.${DATE}.orig.tar.gz + origDirname=${DEBPACKAGE}-${version}${rcversion}~cvs.${DATE} +fi + +echo "I: Filename of origFile: $origFilename" + +cd "$MGLTOOLSCVS" +if [ -d "$TARDIR" ]; then + echo "I: directory for orig tarballs already available" +else + echo "I: creating directory for irog tarballs: '$TARDIR'" + mkdir "$TARDIR" +fi + +if [ -f "$TARDIR"/"$origFilename" ]; then + echo "I: delete old file '$origFilename' " + rm "$TARDIR"/"$origFilename" +fi +if [ -n "$origDirname" -a -d "$origDirname" ]; then + echo "W: Amazingly, temporary directory name '$origDirname' is already existing. Stop this script if this shall not be removed -- within 3 seconds." + sleep 3 + rm -r "$origDirname" +fi + +echo "I: remove some files in '$package' " +cd $package +echo "I: ... *.dll " +find . -name *.dll -a -type f| xargs -r rm -rf +cd .. + +echo "I: Temporarily renaming and taring $package " +echo " --> $MGLTOOLSCVS/$TARDIR/$origFilename" +mv "$package" "$origDirname" + +echo -n "I: Number of files in package: " +GZIP=-9n tar --exclude CVS -czvf "$TARDIR/$origFilename" "$origDirname" | wc -l +mv "$origDirname" "$package" +echo "I: done" + diff --git a/debian/get-orig-source/rc-version b/debian/get-orig-source/rc-version new file mode 100644 index 0000000..39505e6 --- /dev/null +++ b/debian/get-orig-source/rc-version @@ -0,0 +1 @@ +~rc1 diff --git a/debian/get-orig-source/rc-version.ok b/debian/get-orig-source/rc-version.ok new file mode 100644 index 0000000..193e717 --- /dev/null +++ b/debian/get-orig-source/rc-version.ok @@ -0,0 +1 @@ +~rc3 -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mgltools-bhtree.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
