[debian-edu-commits] debian-edu/pkg-team/ 02/04: debian/fix-constructors.sh: Exclude xml:xml* commands from being touched by this script.

Mike Gabriel sunweaver at debian.org
Thu Jun 2 21:56:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository gosa.

commit c13ad94690333de9f2d4ec9ac5d3574a94f448fe
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Thu Jun 2 23:48:55 2016 +0200

    debian/fix-constructors.sh: Exclude xml:xml* commands from being touched by this script.
---
 debian/fix-constructors.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/fix-constructors.sh b/debian/fix-constructors.sh
index 942bd13..38c8276 100755
--- a/debian/fix-constructors.sh
+++ b/debian/fix-constructors.sh
@@ -15,7 +15,9 @@ for line in $classes; do
   sed -i "s/function ${class} *(/function __construct(/" ${split[1]}
 
   find * -type f | egrep "\.php|\.inc" | while read file; do
-    sed -r -e "s/${class}::${class}/${class}::__construct/" -i "$file"
+    if [ "${class}" != "xml" ]; then
+	sed -r -e "s/${class}::${class}/${class}::__construct/" -i "$file"
+    fi
   done
 
 done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/gosa.git



More information about the debian-edu-commits mailing list