aboutsummaryrefslogtreecommitdiff
path: root/common/extract-release-date-from-doap-file
diff options
context:
space:
mode:
Diffstat (limited to 'common/extract-release-date-from-doap-file')
-rwxr-xr-xcommon/extract-release-date-from-doap-file8
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 f2bc418..f57e307 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>' | \