Skip to content

Commit

Permalink
Make script more succint
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll committed Nov 23, 2023
1 parent e922c6b commit 7850a54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dev/update-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ for d in $(printf '%s\n' */ | sort -V); do
# For each example, copy all images of the _static folder into the examples
# docs static folder
[[ $example != doc ]] && [ -d "$example/_static" ] && {
cp $example/_static/**.jpg $ROOT/examples/doc/source/_static/ 2>/dev/null || true
cp $example/_static/**.png $ROOT/examples/doc/source/_static/ 2>/dev/null || true
cp $example/_static/**.jpeg $ROOT/examples/doc/source/_static/ 2>/dev/null || true
cp $example/_static/**.{jpg,png,jpeg} $ROOT/examples/doc/source/_static/ 2>/dev/null || true
}
# For each example, insert the name of the example into the index file
[[ $example != doc ]] && (echo $INSERT_LINE; echo a; echo $example; echo .; echo wq) | ed $INDEX 2>&1 >/dev/null
Expand Down

0 comments on commit 7850a54

Please sign in to comment.