comparison doc/format_config.awk @ 8274:c3bf229d3d4b

doc: update tracker_config.txt Every generation of tracker_config.txt also changes the secret_key value. To prevent this from showing up in diffs, modify format_config.awk to use a static value for the secret_key and substitute it into the config file. Also update Makefile so tracker_config.txt depends on format_config.awk.
author John Rouillard <rouilj@ieee.org>
date Sun, 12 Jan 2025 20:13:36 -0500
parents 8b5f8b950f58
children 20943bf4f1b7
comparison
equal deleted inserted replaced
8273:e7062c6efabf 8274:c3bf229d3d4b
1 #! /bin/awk 1 #! /bin/awk
2 BEGIN {SECRET_KEY = "DWmbKgVUy6fF5D2Y5TD5Az+dnHhMYKCCpJzIY3H8nsU="}
2 3
3 # delete first 8 lines 4 # delete first 8 lines
4 NR < 9 {next} 5 NR < 9 {next}
6
7 # To prevent new file generation from causing the secret_key to
8 # change, we replace the secret key with a fixed value.
9 /^# Default: [0-9A-z+=]{44}/ {sub(/[0-9A-z+=]{44}/, SECRET_KEY)}
10 /^secret_key = [0-9A-z+=]{44}/ {sub(/[0-9A-z+=]{44}/, SECRET_KEY)}
5 11
6 # When we see a section [label]: 12 # When we see a section [label]:
7 # emit section index marker, 13 # emit section index marker,
8 # emit section anchor 14 # emit section anchor
9 # set up for code formating 15 # set up for code formating
41 47
42 # accumulate a blank line only if the previous line was not blank. 48 # accumulate a blank line only if the previous line was not blank.
43 /^$/ { if (! prev_line_is_blank) {accumulate = accumulate $0}; 49 /^$/ { if (! prev_line_is_blank) {accumulate = accumulate $0};
44 prev_line_is_blank = 1; 50 prev_line_is_blank = 1;
45 } 51 }
52

Roundup Issue Tracker: http://roundup-tracker.org/