rev 16837 - kde-extras/digikam-doc/trunk/debian
José Manuel Santamaría Lema
santa-guest at alioth.debian.org
Tue Feb 9 19:16:03 UTC 2010
Author: santa-guest
Date: 2010-02-09 19:15:52 +0000 (Tue, 09 Feb 2010)
New Revision: 16837
Modified:
kde-extras/digikam-doc/trunk/debian/changelog
kde-extras/digikam-doc/trunk/debian/rules
Log:
Include showfoto documentation
Modified: kde-extras/digikam-doc/trunk/debian/changelog
===================================================================
--- kde-extras/digikam-doc/trunk/debian/changelog 2010-02-09 18:32:32 UTC (rev 16836)
+++ kde-extras/digikam-doc/trunk/debian/changelog 2010-02-09 19:15:52 UTC (rev 16837)
@@ -4,6 +4,7 @@
[José Manuel Santamaría Lema]
* Add stuff to debian/rules to fetch document translations from svn
+ * Include showfoto documentation
-- José Manuel Santamaría Lema <panfaust at gmail.com> Mon, 08 Feb 2010 03:52:02 +0100
Modified: kde-extras/digikam-doc/trunk/debian/rules
===================================================================
--- kde-extras/digikam-doc/trunk/debian/rules 2010-02-09 18:32:32 UTC (rev 16836)
+++ kde-extras/digikam-doc/trunk/debian/rules 2010-02-09 19:15:52 UTC (rev 16837)
@@ -12,25 +12,38 @@
@@rm -fR ../tarballs/digikam-doc-$(REV).tmp
$(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 && \
+ $(call fetch-program-doc-l10n,digikam,$@)
+ $(call fetch-program-doc-l10n,showfoto,$@)
+
+define fetch-program-doc-l10n
+ @@echo -n 'Checking if $2 translation for $1 exists ... '
+ @@[ -d ../tarballs/digikam-doc-$(REV).tmp/$1/doc-translations/$2/$1 ]||\
+ mkdir -p ../tarballs/digikam-doc-$(REV).tmp/$1/doc-translations/$2/$1
+ -@@svn export -q --force $(SVNROOT)/l10n-kde4/$(2)/docs/extragear-graphics/digikam@$(REV) \
+ ../tarballs/digikam-doc-$(REV).tmp/$1/doc-translations/$2/$1 2>/dev/null && \
+ cd ../tarballs/digikam-doc-$(REV).tmp/$1/doc-translations/$2/$1 && \
+ echo 'kde4_create_handbook( index.docbook INSTALL_DESTINATION $${HTML_INSTALL_DIR}/$2/ SUBDIR $1)' > 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
+ -@@[ -f ../tarballs/digikam-doc-$(REV).tmp/$1/doc-translations/$2/$1/index.docbook ] && \
+ cd ../tarballs/digikam-doc-$(REV).tmp/$1/doc-translations/ && \
+ echo 'add_subdirectory( $2/$1 )' >> CMakeLists.txt
+endef
+define fetch-program-doc
+ @@echo 'Checking out for repacking (might take 15 min) ... REV: ' $(REV) $(DEB_UPSTREAM_VERSION)
+ @@svn export --force $(SVNROOT)/extragear/graphics/doc/$(1)/@$(REV) ../tarballs/digikam-doc-$(REV).tmp/$(1)
+ @@echo 'Getting the changelog (might take 15 min) ...'
+ @@cd ../tarballs/digikam-doc-$(REV).tmp/; echo 'add_subdirectory($(1))' >> CMakeLists.txt;\
+ cd $(1); svn2cl -o changelog $(SVNROOT)/extragear/graphics/doc/$(1)@$(REV);\
+ echo 'add_subdirectory(doc-translations)' >> CMakeLists.txt
+endef
+
+
get-orig-source: clean-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 --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)
+ $(call fetch-program-doc,digikam)
+ $(call fetch-program-doc,showfoto)
@@echo Creating the tarball ...
@@cd ../tarballs/digikam-doc-$(REV).tmp; tar zcf ../digikam-doc_$(DEB_UPSTREAM_VERSION).orig.tar.gz *
@@rm -fR ../tarballs/digikam-doc-$(REV).tmp
More information about the pkg-kde-commits
mailing list