~ubuntu-branches/ubuntu/vivid/pkgbinarymangler/vivid

« back to all changes in this revision

Viewing changes to dh_translations

  • Committer: Martin Pitt
  • Date: 2013-05-17 12:37:41 UTC
  • Revision ID: martin.pitt@canonical.com-20130517123741-1l6s9wdvhuwxh8vh
dh_translations: Accept more variations (whitespace, quotes or not) of
setting GETTEXT_PACKAGE in cmake files. (second half of LP: #1181187)

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
                if ( -e 'po/POTFILES.in' ) {
85
85
                     $use_intltool = 1;
86
86
                }
87
 
                $domain = $1 if /^set \(GETTEXT_PACKAGE\s*"(\S*)"\)/;
 
87
                $domain = $1 if /^set\s*\(GETTEXT_PACKAGE\s*"?([^\s"]*)"?\s*\)/;
88
88
            }
89
89
            close (CMAKELISTSFILE)
90
90
        }