Skip to content

Commit

Permalink
Merge branch 'master' into fbopt
Browse files Browse the repository at this point in the history
  • Loading branch information
smilesun authored Oct 10, 2023
2 parents 977a86b + cd8bc54 commit f19aaa0
Show file tree
Hide file tree
Showing 5 changed files with 619 additions and 482 deletions.
10 changes: 6 additions & 4 deletions ci_run_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ set -e # exit upon first error
# >> append content
# > erase original content

echo "#!/bin/bash -x -v" > sh_temp_example.sh
# echo "#!/bin/bash -x -v" > sh_temp_example.sh
sed -n '/```shell/,/```/ p' docs/doc_examples.md | sed '/^```/ d' >> ./sh_temp_example.sh
bash -x -v -e sh_temp_example.sh
split -l 5 sh_temp_example.sh sh_example_split
for file in sh_example_split*;
do (echo "#!/bin/bash -x -v" > "$file"_exe && cat "$file" >> "$file"_exe && bash -x -v "$file"_exe && rm -r zoutput);
done
# bash -x -v -e sh_temp_example.sh
echo "general examples done"

rm -r zoutput

echo "#!/bin/bash -x -v" > sh_temp_mnist.sh
sed -n '/```shell/,/```/ p' docs/doc_MNIST_classification.md | sed '/^```/ d' >> ./sh_temp_mnist.sh
bash -x -v -e sh_temp_mnist.sh
Expand Down
Loading

0 comments on commit f19aaa0

Please sign in to comment.