We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0760ad7 commit f35c651Copy full SHA for f35c651
tests/scripts/ptc.sh
@@ -30,10 +30,9 @@ sed --in-place '/^\/\/ NOLINTNEXTLINE(readability-identifier-naming)$/d' ../libr
30
chmod +x ../library/contest/hash.sh
31
for header in ../library/**/*.hpp; do
32
echo "$header"
33
- cp "$header" input
34
- lines="$(wc -l <input)"
+ lines="$(wc -l <$header)"
35
for i in $(seq "$lines" -5 1); do
36
- hash=$(head -n "$i" input | sed '/^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
+ hash=$(head -n "$i" "$header" | sed '/^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
37
sed -i "${i}s/$/\/\/${hash}/" "$header"
38
done
39
0 commit comments