Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Foysal50x committed Jul 25, 2020
1 parent 8780e3c commit b5b5281
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions bin/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

set -e

DIRECTORY=$(cd `dirname $0` && pwd)
ICONS=$DIRECTORY/../dist
RESOURCES=$DIRECTORY/../resources/svg

echo "Compiling Iondicons..."

for FILE in $ICONS/*; do
FILENAME=${FILE##*/}

if [ "$FILENAME" == ".gitignore" ]
then
break
fi

# Compile icons...
cp $FILE $RESOURCES/${FILENAME}

CLASS='<svg fill="currentColor"'
sed -i '' "s/<svg/$CLASS/" $RESOURCES/${FILENAME}
done

echo "All done!"

0 comments on commit b5b5281

Please sign in to comment.