Skip to content

Commit 99f3c8e

Browse files
committed
finished script
1 parent 46e5236 commit 99f3c8e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/scripts/ptc.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,9 @@ for header in ../library/**/*.hpp; do
3535
hash=$(head --lines "$i" "$header" | sed '/^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
3636
line_length=$(sed --quiet "${i}p" "$header" | wc --chars)
3737
padding_length=$((60 - 8 - $line_length))
38-
echo $line_length
39-
echo $padding_length
4038
padding_length=$(( $padding_length > 0 ? $padding_length : 0 ))
41-
echo $padding_length
42-
padding=$(printf '%*s' "$num_spaces")
43-
sed --in-place "${i}s/$/\/\/${hash}/" "$header"
39+
padding=$(printf '%*s' "$padding_length")
40+
sed --in-place "${i}s/$/$padding\/\/${hash}/" "$header"
4441
done
4542
done
4643

0 commit comments

Comments
 (0)