Skip to content

Commit c8a9cfd

Browse files
committed
refactor: Rename scripts and format the stdout output better
1 parent 8cbb1d0 commit c8a9cfd

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed
File renamed without changes.

build.raster.sh renamed to _build.raster.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/bash
22

3-
echo "[*] Export: render icons"
3+
echo "Render raster icons:"
44

55
function renderIcon {
66
file=$1
@@ -18,7 +18,6 @@ function renderIconCollection {
1818
for file in $DIR/symbolic/${color}/*.svg; do
1919
renderIcon $file $color $size
2020
done
21-
echo " Rendered ${color}:${size}x${size}"
2221
}
2322

2423
for color in black white; do
@@ -29,6 +28,8 @@ for color in black white; do
2928
while (( $(jobs -rp | wc -l) >= THREADS )); do
3029
wait -n
3130
done
31+
32+
echo " Finished ${color} ${size}x${size}"
3233
done
3334
done
3435

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/bash
22

3-
echo "[*] Export: symbolic icons"
3+
echo "Export symbolic icons:"
44

55
mkdir_and_cp() {
66
mkdir -p $(dirname "$2") && cp "$1" "$2"
@@ -14,6 +14,7 @@ function copyIcon {
1414
mkdir_and_cp $file "$DIR/symbolic/black/$dest"
1515
}
1616

17+
echo -e " Copying files"
1718
shopt -s globstar dotglob
1819
for file in ./icons/**/*.svg; do
1920
parent_dir=$(basename $(dirname "$file../"))
@@ -32,7 +33,7 @@ done
3233

3334
wait
3435

35-
echo " 1/1) Apply colors"
36+
echo -e " Applying colors"
3637
sed -i 's/#ffffff/#ffffff/g' $DIR/symbolic/white/*
3738
sed -i 's/#ffffff/#000000/g' $DIR/symbolic/black/*
3839
sed -i 's/#ffffff/currentColor/g' $DIR/symbolic/web/*

build.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,27 @@ rm -rf $DIR/*
1717

1818
cp ./LICENSE $DIR/.
1919

20-
source ./build.symbolic.sh
21-
source ./build.raster.sh
20+
source ./_build.symbolic.sh
21+
source ./_build.raster.sh
2222

23+
echo "Compress:"
2324
cd $DIR
24-
echo "==> Compress into .tar.gz"
25+
echo " Compress into .tar.gz"
2526
tar -czf /tmp/eyecons.tar.gz ./LICENSE ./raster ./symbolic
26-
echo "==> Compress into .zip"
27+
echo " Compress into .zip"
2728
zip -rq /tmp/eyecons.zip .
2829
cd ..
2930
mv /tmp/eyecons.tar.gz "$NAME.tar.gz"
3031
mv /tmp/eyecons.zip "$NAME.zip"
3132

32-
echo "==> Symlinking ./build/latest/"
33+
echo " Symlinking ./build/latest/"
3334
rm latest
3435
ln -s $NAME latest
3536

3637
cd ..
37-
echo "==> Generating CHANGELOG"
38+
echo "Generating CHANGELOG.md..."
3839
old_dir="/tmp/eyecons-previous/symbolic/white/"
3940
new_dir="${DIR}/symbolic/white/"
40-
source ./build.changelog.sh
41+
source ./_build.changelog.sh
42+
43+
echo "Done."

0 commit comments

Comments
 (0)