[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:36:09 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=16f3871
The following commit has been merged in the master branch:
commit 16f3871cd8bcc9890084da601834d4fe3cc927cc
Author: Andreas Huggel <ahuggel at gmx.net>
Date: Thu Mar 18 16:06:03 2004 +0000
Generate dependencies from *mn.hpp files
---
src/mn.sh | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/mn.sh b/src/mn.sh
index fab618d..044b346 100755
--- a/src/mn.sh
+++ b/src/mn.sh
@@ -2,9 +2,14 @@
# Create a module that depends on all MakerNote subclasses to
# force initialisation of static data in the corresponding
# components when using the static library.
-cat > mn.cpp <<EOF
-#include "canonmn.hpp"
-namespace {
- Exif::CanonMakerNote canonMakerNote;
-}
-EOF
+rm -f mn.cpp
+echo "// Generated by mn.sh on" `date` "- do not edit" > mn.cpp
+for file in *mn.hpp; do
+ echo "#include \""$file"\"" >> mn.cpp
+done
+echo "namespace {" >> mn.cpp
+for file in *mn.hpp; do
+ class=`grep 'class .*MakerNote.*:' $file | awk '{print $2}'`
+ echo " Exif::"$class `basename $file .hpp`";" >> mn.cpp
+done
+echo "}" >> mn.cpp
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list