diff options
author | jorton <jorton@fedoraproject.org> | 2004-10-13 10:44:51 +0000 |
---|---|---|
committer | jorton <jorton@fedoraproject.org> | 2004-10-13 10:44:51 +0000 |
commit | 0ba3e33bdc0b14022de5e4b31f6a2c5a2137a115 (patch) | |
tree | 3791ce76cca7f030e144253d2f02a1ce06f3bbe8 /mkstatus.sh | |
parent | 8596424b2d5e56d39065c2bcf6a139ddeeb02170 (diff) | |
download | httpd-0ba3e33bdc0b14022de5e4b31f6a2c5a2137a115.tar.gz httpd-0ba3e33bdc0b14022de5e4b31f6a2c5a2137a115.tar.xz httpd-0ba3e33bdc0b14022de5e4b31f6a2c5a2137a115.zip |
Add patch status tracking.
Diffstat (limited to 'mkstatus.sh')
-rwxr-xr-x | mkstatus.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mkstatus.sh b/mkstatus.sh new file mode 100755 index 0000000..12d77c4 --- /dev/null +++ b/mkstatus.sh @@ -0,0 +1,13 @@ +#!/bin/sh +echo '<?xml version="1.0" encoding="UTF-8"?>' +echo '<patches>' +for f in $*; do + n=${f//httpd-[0-9.]*-/} + n=${n//.patch/} + s_HEAD=`grep ^Upstream-HEAD $f | sed 's/Upstream-HEAD: //'` + s_20=`grep ^Upstream-2.0: $f | sed 's/Upstream-2.0: //'` + s_Com=`grep ^Upstream-Status: $f | sed 's/Upstream-Status: //'` + printf '<patch name="%s" status-head="%s" status-2.0="%s" status-comment="%s"/>\n' \ + $n "$s_HEAD" "$s_20" "$s_Com" +done +echo '</patches>' |