Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-11 13:29:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-11 13:29:47 +0300
commit875f554cff9be6bbf581d67c64344c4af91e81d4 (patch)
tree54da84eed34a526135b354a372dc3d58580e3dc9 /build_files/package_spec/build_debian.sh
parent69e72ea42790e5db142365cba46adbd23ecf3b4c (diff)
patch [#26030] Debian spec fix (Patch for #26028)
from Shinsuke Irie (irie)
Diffstat (limited to 'build_files/package_spec/build_debian.sh')
-rw-r--r--build_files/package_spec/build_debian.sh18
1 files changed, 10 insertions, 8 deletions
diff --git a/build_files/package_spec/build_debian.sh b/build_files/package_spec/build_debian.sh
index 79d917b430e..17c0abb888b 100644
--- a/build_files/package_spec/build_debian.sh
+++ b/build_files/package_spec/build_debian.sh
@@ -1,10 +1,13 @@
#!/bin/sh
# Builds a debian package from SVN source.
-
+#
+# For paralelle builds use:
+# DEB_BUILD_OPTIONS="parallel=5" sh build_files/package_spec/build_debian.sh
# this needs to run in the root dir.
cd $(dirname $0)/../../
-ln -s $PWD/build_files/package_spec/debian $PWD/debian
+rm -rf debian
+cp -a build_files/package_spec/debian .
# Get values from blender to use in debian/changelog.
@@ -13,11 +16,10 @@ BLENDER_REVISION=$(svnversion)
blender_srcdir=$PWD
blender_version=$(grep BLENDER_VERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9)
BLENDER_VERSION=$(expr $blender_version / 100).$(expr $blender_version % 100)
+DEB_VERSION=${BLENDER_VERSION}+svn${BLENDER_REVISION}-bf
-# replace changelog value
-svn revert debian/changelog
-sed -i 's/<VER>/'$BLENDER_VERSION'/g' debian/changelog
-sed -i 's/<REV>/'$BLENDER_REVISION'/g' debian/changelog
+# update debian/changelog
+dch -b -v $DEB_VERSION "New upstream SVN snapshot."
# run the rules makefile
@@ -28,5 +30,5 @@ mv *.gz ../
debuild -i -us -uc -b
-# remove symlink
-rm debian
+# remove temp dir
+rm -rf debian