[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35034] trunk/blender/build_files/ package_spec/debian/rules: patch [#26146] debian/rules: Avoid unnecessary downloading

Campbell Barton ideasman42 at gmail.com
Mon Feb 21 14:59:42 CET 2011


Revision: 35034
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35034
Author:   campbellbarton
Date:     2011-02-21 13:59:42 +0000 (Mon, 21 Feb 2011)
Log Message:
-----------
patch [#26146] debian/rules: Avoid unnecessary downloading
--- from the tracker
It's annoying that build_debian.sh downloads the source tree to create tarball every time we build a deb package.

fix_debian_rules_avoid_downloading.patch modifies debian/rules so that the tarball will be created from local repository if possible.

Modified Paths:
--------------
    trunk/blender/build_files/package_spec/debian/rules

Modified: trunk/blender/build_files/package_spec/debian/rules
===================================================================
--- trunk/blender/build_files/package_spec/debian/rules	2011-02-21 13:47:49 UTC (rev 35033)
+++ trunk/blender/build_files/package_spec/debian/rules	2011-02-21 13:59:42 UTC (rev 35034)
@@ -30,7 +30,11 @@
 get-orig-source:
 	rm -rf get-orig-source $(TARBALL)
 	mkdir get-orig-source
-	svn -q export -r $(REV) $(SVN_URL) get-orig-source/blender-$(VER)
+	if [ "$(SVN_URL)" = . ] && [ `svnversion` = "$(REV)" ]; then \
+		svn -q export . get-orig-source/blender-$(VER); \
+	else \
+		svn -q export -r $(REV) $(SVN_URL) get-orig-source/blender-$(VER); \
+	fi
 	GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source blender-$(VER)
 	rm -rf get-orig-source
 	@echo "$(TARBALL) created; move it to the right destination to build the package"




More information about the Bf-blender-cvs mailing list