[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:23 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=ec30a12
The following commit has been merged in the master branch:
commit ec30a1236873173d0a616da398c88d3f66870725
Author: Andreas Huggel <ahuggel at gmx.net>
Date: Wed May 26 03:15:26 2004 +0000
Fixed script for multiple MakerNote classes in one file
---
src/mn.sh | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/src/mn.sh b/src/mn.sh
index 3fad94f..030e7d2 100755
--- a/src/mn.sh
+++ b/src/mn.sh
@@ -1,7 +1,16 @@
-#!/bin/sh
-# Create a module that depends on all MakerNote subclasses to
-# force initialisation of static data in the corresponding
-# components when using the static library.
+#! /bin/sh
+################################################################################
+# File : mn.sh
+# Version : $Name: $ $Revision: 1.4 $
+# Author(s): Andreas Huggel (ahu) <ahuggel at gmx.net>
+# History : 08-Mar-04, ahu: created
+#
+# Description:
+# Create a module mn.cpp that depends on all MakerNote subclasses
+# to force initialisation of static data in the corresponding
+# components when using the static library.
+################################################################################
+
rm -f mn.cpp
echo "// Generated by mn.sh on" `date` "- do not edit" > mn.cpp
for file in *mn.hpp; do
@@ -9,7 +18,11 @@ for file in *mn.hpp; do
done
echo "namespace {" >> mn.cpp
for file in *mn.hpp; do
- class=`grep 'class .*MakerNote.*:' $file | awk '{print $2}'`
- echo " Exiv2::"$class `basename $file .hpp`";" >> mn.cpp
+ awk '
+ /class .*MakerNote.*:/ {
+ name = $2;
+ sub(/MakerNote.*/, "mn", name);
+ printf " Exiv2::%s %s;
", $2, tolower(name);
+ }' $file >> mn.cpp
done
echo "}" >> mn.cpp
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list