2022-03-12 23:42:15 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
rm ./new/Artboard.svg
|
|
|
|
|
|
|
|
for file in ./new/*.svg
|
|
|
|
do
|
|
|
|
echo "${file}"
|
|
|
|
sed -i "" 's/---//g' ${file}
|
|
|
|
sed -i "" 's/fill="none"//g' ${file}
|
|
|
|
sed -i "" 's/fill-rule="evenodd"//g' ${file}
|
|
|
|
sed -i "" 's/stroke-linecap="round"//g' ${file}
|
|
|
|
sed -i "" 's/stroke-linejoin="round"//g' ${file}
|
|
|
|
sed -i "" 's/viewBox="0 0 24 24"//g' ${file}
|
|
|
|
sed -i "" 's/stroke="#000000"//g' ${file}
|
|
|
|
sed -i "" 's/stroke="#000"//g' ${file}
|
|
|
|
sed -i "" 's/stroke-width="2"//g' ${file}
|
|
|
|
sed -i "" 's/width="24"//g' ${file}
|
|
|
|
sed -i "" 's/width="24px"//g' ${file}
|
|
|
|
sed -i "" 's/height="24"//g' ${file}
|
|
|
|
sed -i "" 's/height="24px"//g' ${file}
|
|
|
|
sed -i "" 's/xmlns="http:\/\/www.w3.org\/2000\/svg"//g' ${file}
|
|
|
|
sed -i "" 's/<path d="M0 0h24v24H0z"\/>"//g' ${file}
|
37 new icons: `anchor-off`, `api-off`, `atom-off`, `award-off`, `badge-off`, `badges-off`, `ballon-off`, `barrel-off`, `bath-off`, `bed-off`, `beer-off`, `box-off`, `bucket-off`, `cake-off`, `cash-off`, `coffee-off`, `container-off`, `cpu-off`, `crane-off`, `creative-commons-off`, `cross-off`, `crutches-off`, `cup-off`, `current-location-off`, `cursor-off`, `dental-off`, `device-nintendo-off`, `device-speaker-off`, `devices-pc-off`, `dialpad-off`, `diamond-off`, `directions-off`, `disabled-off`, `disc-off`, `dna-2-off`, `dna-off`, `swords`
2022-04-17 20:53:58 +02:00
|
|
|
sed -i "" 's/<path stroke="red" stroke-width=".1" d="M5 1l18 18"\/>//g' ${file}
|
2022-04-17 21:53:39 +02:00
|
|
|
sed -i "" 's/<path stroke="red" stroke-width=".1" d="M5 1l18 18" \/>//g' ${file}
|
37 new icons: `anchor-off`, `api-off`, `atom-off`, `award-off`, `badge-off`, `badges-off`, `ballon-off`, `barrel-off`, `bath-off`, `bed-off`, `beer-off`, `box-off`, `bucket-off`, `cake-off`, `cash-off`, `coffee-off`, `container-off`, `cpu-off`, `crane-off`, `creative-commons-off`, `cross-off`, `crutches-off`, `cup-off`, `current-location-off`, `cursor-off`, `dental-off`, `device-nintendo-off`, `device-speaker-off`, `devices-pc-off`, `dialpad-off`, `diamond-off`, `directions-off`, `disabled-off`, `disc-off`, `dna-2-off`, `dna-off`, `swords`
2022-04-17 20:53:58 +02:00
|
|
|
sed -i "" 's/<path stroke="red" stroke-width=".1" d="M3 3l18 18"\/>//g' ${file}
|
2022-04-17 21:53:39 +02:00
|
|
|
sed -i "" 's/<path stroke="red" stroke-width=".1" d="M3 3l18 18" \/>//g' ${file}
|
2022-03-12 23:42:15 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
svgo -f ./new/ --pretty --disable mergePaths
|
|
|
|
|
|
|
|
for file in ./new/*.svg
|
|
|
|
do
|
|
|
|
echo "${file}"
|
|
|
|
sed -i "" -e $'s/<svg>/---\\\n---\\\n<svg>/g' ${file}
|
|
|
|
done
|
|
|
|
|
|
|
|
cp ./new/* ./src/_icons/
|
37 new icons: `anchor-off`, `api-off`, `atom-off`, `award-off`, `badge-off`, `badges-off`, `ballon-off`, `barrel-off`, `bath-off`, `bed-off`, `beer-off`, `box-off`, `bucket-off`, `cake-off`, `cash-off`, `coffee-off`, `container-off`, `cpu-off`, `crane-off`, `creative-commons-off`, `cross-off`, `crutches-off`, `cup-off`, `current-location-off`, `cursor-off`, `dental-off`, `device-nintendo-off`, `device-speaker-off`, `devices-pc-off`, `dialpad-off`, `diamond-off`, `directions-off`, `disabled-off`, `disc-off`, `dna-2-off`, `dna-off`, `swords`
2022-04-17 20:53:58 +02:00
|
|
|
gulp optimize
|
|
|
|
|