From 9fdc54d137d8dd94c70405010ed3c412e68235c0 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 5 Feb 2022 22:17:11 +0100 Subject: Include compiled files --- scripts/build.sh | 20 -------------------- scripts/build_showcase.sh | 4 ++-- 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100755 scripts/build.sh (limited to 'scripts') diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100755 index a05dd63..0000000 --- a/scripts/build.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -handle () { - scour -i "$1" \ - --enable-viewboxing \ - --enable-id-stripping \ - --enable-comment-stripping \ - --remove-descriptive-elements \ - --strip-xml-prolog \ - --shorten-ids | sed -z 's/\(fill\|stroke\)="#.\{3,6\}"/\1="currentColor"/g;s/stroke-width="[0-9.]*"//g;s/stroke-linecap="[a-z]*"//g;s/stroke-linejoin="[a-z]*"//g;s/style="[ a-z0-9:-]*"//g' > "output${1#"src/icons"}" -} - -export -f handle - -mkdir -p output - -find "src/icons" \ - -type f \ - -name "*.svg" \ - -print0 | parallel -0 handle {} diff --git a/scripts/build_showcase.sh b/scripts/build_showcase.sh index d4dabec..3ebcfea 100755 --- a/scripts/build_showcase.sh +++ b/scripts/build_showcase.sh @@ -2,7 +2,7 @@ mkdir -p showcase -mapfile -d $'\0' icon_files < <(find "output" \ +mapfile -d $'\0' icon_files < <(find "dist" \ -type f \ -name "*.svg" \ -print0) @@ -11,7 +11,7 @@ icons="[]" for icon in "${icon_files[@]}"; do title=$icon - title=${title#output/} + title=${title#dist/} title=${title%.svg} content=$(cat "$icon" | sed -z 's/\\/\\\\/g;s/\n/\\n/g;s/"/\\"/g') -- cgit v1.2.3-70-g09d2