diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..2f5fd79 --- /dev/null +++ b/scripts/build.sh | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | handle () { | ||
4 | scour -i "$1" -o "output${1#src}" \ | ||
5 | --enable-viewboxing \ | ||
6 | --enable-id-stripping \ | ||
7 | --enable-comment-stripping \ | ||
8 | --remove-descriptive-elements \ | ||
9 | --shorten-ids | ||
10 | } | ||
11 | |||
12 | mkdir -p output | ||
13 | |||
14 | find "src" \ | ||
15 | -type f \ | ||
16 | -name "*.svg" \ | ||
17 | | while read file_in | ||
18 | do | ||
19 | handle "$file_in" | ||
20 | done | ||