[Pkg-scicomp-devel] xmds/branches/svn-snapshot/debian

Rafael Laboissiere rafael at debian.org
Sat Sep 22 07:53:37 UTC 2007


SVN commit 1840 by rafael:

* debian/rules: Check whether the release will be uploaded to
  experimental, avoiding accidental uploads to unstable


 M  +7 -0      xmds/branches/svn-snapshot/debian/changelog  
 M  +14 -1     xmds/branches/svn-snapshot/debian/rules  


--- xmds/branches/svn-snapshot/debian/changelog #1839:1840
@@ -1,3 +1,10 @@
+xmds (1.6.3~svn.1569-2) UNRELEASED; urgency=low
+
+  * debian/rules: Check whether the release will be uploaded to
+    experimental, avoiding accidental uploads to unstable
+
+ -- Rafael Laboissiere <rafael at debian.org>  Sat, 22 Sep 2007 09:53:17 +0200
+
 xmds (1.6.3~svn.1569-1) experimental; urgency=low
 
   * Upload to experimental from  SVN snapshot:
--- xmds/branches/svn-snapshot/debian/rules #1839:1840
@@ -62,4 +62,17 @@
 	SVNREV=$$(svn info $(upstream_svn) | grep Rev: | cut -f4 -d\ );	   \
 	svn export -r$$SVNREV $(upstream_svn) ;				   \
 	tar czf xmds_$(last_release)~svn.$$SVNREV.orig.tar.gz xmds-devel ; \
-	rm -rf xmds-devel
\ No newline at end of file
+	rm -rf xmds-devel
+
+DEB_VER = ${shell perl -ne '/\((.*);/; print $$1; last' < debian/changelog}
+DIST = ${shell echo "$(DEB_VER)" | sed 's/.*) *//'}
+TARGET = experimental
+SEP = ***********************************************************************
+
+binary/xmds::
+	@if [ "$(DIST)" != $(TARGET) ] ; then			\
+	  echo "$(SEP)" ;					\
+	  echo This version should be uploaded to $(TARGET), ;	\
+	  echo not to $(DIST)! ;				\
+	  echo "$(SEP)" ;					\
+	fi



More information about the Pkg-scicomp-devel mailing list