[Pkg-scicomp-devel] xmds/trunk/debian

Rafael Laboissiere rafael at debian.org
Fri Jan 18 00:13:23 UTC 2008


SVN commit 2023 by rafael:

Restored the $(preserverd_files) hack

 M  +2 -2      xmds/trunk/debian/changelog  
 M  +21 -0     xmds/trunk/debian/rules  


--- xmds/trunk/debian/changelog #2022:2023
@@ -8,8 +8,8 @@
     + Call octave3.0-depends instead of octave2.9-depends
     + Since version 1.6-1 of the package, there is no need for calling
       autoconf, because configure.in was fixed upstream.  Dropped the
-      setting of the variables DEB_AUTO_UPDATE_AUTOCONF as well as the hacks
-      around the autotools files that should be preserved.
+      setting of the variables DEB_AUTO_UPDATE_AUTOCONF as well as some
+      files from the list of files to be preserved from the autotools.
   * debian/patches/loadxsil-varnames-cell.patch: Dropped patch (applied
     upstream)
 
--- xmds/trunk/debian/rules #2022:2023
@@ -18,6 +18,22 @@
 
 DEB_COMPRESS_EXCLUDE = .xmds
 
+preserved_files = source/xmds_config.h
+
+makebuilddir/xmds::
+	# Save files that will be changed by the autotools
+	for i in $(preserved_files) ; do        \
+		if ! test -e $$i-orig ; then    \
+			cp $$i $$i-orig ;       \
+		fi ;                            \
+	done
+
+makebuilddir/xmds::
+	if ! test -e source/xmds_config.h-orig ; then    		\
+		cp source/xmds_config.h source/xmds_config.h-orig ;	\
+	fi
+
+
 build/xmds:: make-examples-stamp
 make-examples-stamp:
 	# Run test
@@ -44,3 +60,8 @@
 
 clean::
 	rm -rf config.log source/lorenz.* make-examples-stamp config.status
+	# Restored files changed by the autotools
+	for i in $(preserved_files) ; do        \
+		if test -e $$i-orig ; then      \
+			mv $$i-orig $$i ;       \
+	fi ;                            \



More information about the Pkg-scicomp-devel mailing list