Skip to content

Commit 09a850a

Browse files
committed
Fix sweeping script to add plenary date to note
1 parent 533cc8e commit 09a850a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/sweep_voting_to_wp.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ then
88
exit 1
99
fi
1010

11-
date=$(date +%F)
11+
today=$(date +%F)
1212
meeting=$1
13+
date=$2
1314

1415
# We could use awk -F'"' '/status="voting"/ { print $2}' xml/issue*.xml here,
1516
# but the wildcard matches thousands of files, so let git grep loop over them.
1617
git grep 'status="Voting"' xml | awk -F'"' '{print $2}' | while read inum
1718
do
1819
bin/set_status $inum WP
19-
sed -i "s/^<note>$date /<note>$meeting; /" xml/issue$inum.xml
20+
sed -i "s/^<note>$today /<note>$meeting $date; /" xml/issue$inum.xml
2021
done

0 commit comments

Comments
 (0)