Updated debian dir (thanks to Jean Pierre Charalambos)

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@359 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2011-01-04 09:05:55 +00:00
parent 9c2e8be470
commit 30fb80d549
3 changed files with 10 additions and 20 deletions

17
debian/rules vendored
View File

@@ -3,23 +3,6 @@
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
# Add here any variable or target overrides you need.
PACKAGE = openmesh
SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/svn//' )
TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
.PHONY: get-orig-source
get-orig-source:
rm -rf get-orig-source $(TARBALL)
mkdir get-orig-source
svn export -r $(SVN_REVISION) --username anonymous --password anonymous http://openmesh.org/svnrepo/OpenMesh/trunk/ \
get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig
# need to delete debian directory here:
rm -rf get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig/debian
GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
rm -rf get-orig-source
echo " "$(TARBALL)" created; move it to the right destination to build the package"
build/libopenmesh-doc::
cd $(DEB_BUILDDIR) && $(MAKE) doc
mkdir -p debian/tmp/usr/share/doc/