diff options
Diffstat (limited to 'common/extract-release-date-from-doap-file')
-rwxr-xr-x | common/extract-release-date-from-doap-file | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/extract-release-date-from-doap-file b/common/extract-release-date-from-doap-file index f2bc418c..f57e3074 100755 --- a/common/extract-release-date-from-doap-file +++ b/common/extract-release-date-from-doap-file @@ -18,12 +18,12 @@ fi awk 'BEGIN {x=0} { -if ($0~"<release>") {x=1; chunk=""} +if ( $0 ~ /<release>/ ) {x=1; chunk=""} if (x==1) { - if ($0~"<revision>") { chunk = chunk $0 } - if ($0~"<created>") { chunk = chunk $0 } + if ($0 ~ /<revision>/) { chunk = chunk $0 } + if ($0 ~ /<created>/) { chunk = chunk $0 } } -if ($0~"</release>") {x=0; print chunk} +if ($0 ~ /<\/release>/) {x=0; print chunk} }' < "$2" | \ \ grep '<revision>'"$1"'</revision>' | \ |