chiark
/
gitweb
/
~webstump
/
modbot-uram.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f0a425
)
Substitute the message number for [REFERENCE] in added-headers, if present
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 20 Apr 2010 16:49:33 +0000
(17:49 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 20 Apr 2010 16:49:33 +0000
(17:49 +0100)
stump/bin/processApproved
patch
|
blob
|
history
diff --git
a/stump/bin/processApproved
b/stump/bin/processApproved
index 1b2f17642ae80b0eeee4629dfb2e2bdc1222ce18..a62333ecd60c78160bccb07f5c239c2ebe745ee3 100755
(executable)
--- a/
stump/bin/processApproved
+++ b/
stump/bin/processApproved
@@
-31,7
+31,12
@@
post() {
(
echo Path: "$PATH_SUFFIX"
- cat $MNG_ROOT/etc/added-headers | grep ': '
+ perl <$MNG_ROOT/etc/added-headers -ne '
+ next unless m/\:/;
+ s/\[REFERENCE\]/[$ENV{"WEBSTUMP_MESSAGENUM"}]/g
+ if defined $ENV{"WEBSTUMP_MESSAGENUM"};
+ print or die $!;
+ '
# I do grep above because a lot of users inserts empty
# lines in the added headers.