[Pkg-mozext-commits] [firetray] 57/84: Use awk-compatible statements only (not gawk).

David Prévot taffit at moszumanska.debian.org
Sun Jul 20 01:42:46 UTC 2014


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

taffit pushed a commit to branch master
in repository firetray.

commit 6973e7f4493eece967c34268655e8ffd4dd45888
Author: foudfou <foudil.newbie+git at gmail.com>
Date:   Wed May 7 10:58:30 2014 +0200

    Use awk-compatible statements only (not gawk).
---
 src/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 588dcf0..85c8a92 100755
--- a/src/Makefile
+++ b/src/Makefile
@@ -69,9 +69,7 @@ license := LICENSE
 install_rdf := install.rdf
 
 # Version fetched from install.rdf
-VERSION := $(shell awk '/<em:version>/ {  version=$$1; \
-  version=gensub(/^.*<em:version>(.+)<\/em:version>.*$$/, "\\1", "g", version); \
-  print version }' $(install_rdf))
+VERSION := $(shell awk -F '[<>]' '/em:version/{print $$3}' $(install_rdf))
 
 # The target XPI files.
 xpi_file := $(extension_name)-$(VERSION).xpi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firetray.git



More information about the Pkg-mozext-commits mailing list