rev 16824 - kde-extras/digikam-doc/trunk/debian

José Manuel Santamaría Lema santa-guest at alioth.debian.org
Mon Feb 8 03:50:15 UTC 2010


Author: santa-guest
Date: 2010-02-08 03:50:14 +0000 (Mon, 08 Feb 2010)
New Revision: 16824

Modified:
   kde-extras/digikam-doc/trunk/debian/changelog
   kde-extras/digikam-doc/trunk/debian/rules
Log:
Add stuff to debian/rules to fetch document translations from svn


Modified: kde-extras/digikam-doc/trunk/debian/changelog
===================================================================
--- kde-extras/digikam-doc/trunk/debian/changelog	2010-02-07 19:09:22 UTC (rev 16823)
+++ kde-extras/digikam-doc/trunk/debian/changelog	2010-02-08 03:50:14 UTC (rev 16824)
@@ -1,3 +1,12 @@
+digikam-doc (0.10.0~svn1086874-1) UNRELEASED; urgency=low
+
+  * New upstream release
+
+  [José Manuel Santamaría Lema]
+  * Add stuff to debian/rules to fetch document translations from svn
+
+ -- José Manuel Santamaría Lema <panfaust at gmail.com>  Mon, 08 Feb 2010 03:52:02 +0100
+
 digikam-doc (0.10.0~svn1056455-1) unstable; urgency=low
 
   * New Upstream Release (Closes: #527825, #514513, #547230, #529077) 

Modified: kde-extras/digikam-doc/trunk/debian/rules
===================================================================
--- kde-extras/digikam-doc/trunk/debian/rules	2010-02-07 19:09:22 UTC (rev 16823)
+++ kde-extras/digikam-doc/trunk/debian/rules	2010-02-08 03:50:14 UTC (rev 16824)
@@ -5,12 +5,27 @@
 include /usr/share/cdbs/1/rules/utils.mk
 
 REV = $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e 's/^.*svn//')
+SVNROOT = svn://anonsvn.kde.org/home/kde/trunk
+I18NLANGS = $(shell svn cat $(SVNROOT)/l10n-kde4/subdirs@$(REV) | sed 's/x-test//')
 
-get-orig-source:
+$(I18NLANGS):
+	@@echo -n "Checking if $@ translation exists ... "
+	@@[ -d ../tarballs/digikam-doc-$(REV).tmp/doc-translations/$@ ]||mkdir -p ../tarballs/digikam-doc-$(REV).tmp/doc-translations/$@
+	-@@svn export -q --force $(SVNROOT)/l10n-kde4/$@/docs/extragear-graphics/digikam@$(REV) \
+		../tarballs/digikam-doc-$(REV).tmp/doc-translations/$@ 2>/dev/null && \
+		cd ../tarballs/digikam-doc-$(REV).tmp/doc-translations/$@ && \
+		echo "kde4_create_handbook( index.docbook INSTALL_DESTINATION \$${HTML_INSTALL_DIR}/$@/ )" > CMakeLists.txt && \
+		echo yes || echo no
+	-@@[ -f ../tarballs/digikam-doc-$(REV).tmp/doc-translations/$@/index.docbook ] && \
+		cd ../tarballs/digikam-doc-$(REV).tmp/doc-translations/ && \
+		echo "add_subdirectory( $@ )" > CMakeLists.txt
+
+get-orig-source: $(I18NLANGS)
 	@@dh_testdir
 	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
 	@@echo 'Checking out for repacking (might take 15 min) ... REV: ' $(REV) $(DEB_UPSTREAM_VERSION)
-	@@svn export svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics/doc/digikam/@$(REV) ../tarballs/digikam-doc-$(REV).tmp
+	@@svn export --force svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics/doc/digikam/@$(REV) ../tarballs/digikam-doc-$(REV).tmp
+	@@cd ../tarballs/digikam-doc-$(REV).tmp && echo "add_subdirectory(doc-translations)" >> CMakeLists.txt
 	@@echo 'Getting the changelog (might take 15 min) ...'
 	@@cd ../tarballs/digikam-doc-$(REV).tmp; svn2cl -o changelog svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics/doc/digikam/@$(REV)
 	@@echo Creating the tarball ...




More information about the pkg-kde-commits mailing list