Skip to content

Commit 0ff3003

Browse files
committed
Improve sweep_voting_to_wp.sh script
1 parent af5e38f commit 0ff3003

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bin/sweep_voting_to_wp.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Sweep all issues from Voting -> WP
44

5-
if [ -z "$1" ]
5+
if [ $# -ne 2 ]
66
then
77
echo "Usage: $0 '<Meeting Name> YYYY-MM-DD'" >&2
88
exit 1
@@ -12,9 +12,7 @@ today=$(date +%F)
1212
meeting=$1
1313
date=$2
1414

15-
# We could use awk -F'"' '/status="voting"/ { print $2}' xml/issue*.xml here,
16-
# but the wildcard matches thousands of files, so let git grep loop over them.
17-
git grep 'status="Voting"' xml | awk -F'"' '{print $2}' | while read inum
15+
bin/list_issues Voting | while read inum
1816
do
1917
bin/set_status $inum WP
2018
sed -i "s/^<note>$today /<note>$meeting $date; /" xml/issue$inum.xml

0 commit comments

Comments
 (0)