Skip to content

Commit 5764262

Browse files
committed
update script
1 parent 1e59c9e commit 5764262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/scripts/compile_commented_snippets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ git submodule update
3131

3232
{
3333
cat entire_library_without_main
34-
sed --quiet '/\/\/! @code$/,/\/\/! @endcode$/{//!p;}' entire_library_without_main | sed 's/\/\/!//'
34+
sed --quiet '/\/\/! @code$/,/\/\/! @endcode$/p' entire_library_without_main | sed 's/\/\/! @code/{/' | sed 's/\/\/! @endcode/}/' | sed 's/\/\/!//'
3535
echo "return 0;"
3636
echo "}"
3737
} >entire_library.cpp

0 commit comments

Comments
 (0)