-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,15 @@ | |
set -e | ||
|
||
# prepare the source of icons by cloning the repo | ||
TEMP_DIR=tmp | ||
# mkdir -p $TEMP_DIR | ||
TEMP_DIR=blade-icon-temp-dir | ||
DIRECTORY=$(cd `dirname $0` && pwd) | ||
|
||
mkdir -p $TEMP_DIR | ||
SOURCE=$TEMP_DIR/unicons | ||
# git clone [email protected]:Iconscout/unicons.git $TEMP_DIR/unicons | ||
|
||
DIRECTORY=$(cd `dirname $0` && pwd) | ||
cd $SOURCE | ||
git pull | ||
cd $DIRECTORY/../ | ||
RESOURCES=$DIRECTORY/../resources/svg | ||
|
||
echo $SOURCE | ||
|
@@ -28,15 +31,15 @@ for CATEGORY_DIR in $SOURCE/svg/*; do | |
then | ||
CONVERTED_ICON_DESTINATION_NAME="${ICON_NAME//\.svg/-o.svg}" | ||
CP_COMMAND='cp '$ICON_DIR' '$RESOURCES/$CONVERTED_ICON_DESTINATION_NAME | ||
$CP_COMMAND | ||
# $CP_COMMAND | ||
elif [[ $CATEGORY_NAME = 'monochrome' ]] | ||
then | ||
CONVERTED_ICON_DESTINATION_NAME="${ICON_NAME//\.svg/-m.svg}" | ||
CP_COMMAND='cp '$ICON_DIR' '$RESOURCES/$CONVERTED_ICON_DESTINATION_NAME | ||
$CP_COMMAND | ||
# $CP_COMMAND | ||
elif [[ $CATEGORY_NAME = 'solid' ]] | ||
then | ||
CONVERTED_ICON_DESTINATION_NAME="${ICON_NAME//\.svg/-s.svg}" | ||
CONVERTED_ICON_DESTINATION_NAME=$ICON_NAME | ||
CP_COMMAND='cp '$ICON_DIR' '$RESOURCES/$CONVERTED_ICON_DESTINATION_NAME | ||
$CP_COMMAND | ||
fi | ||
|
@@ -46,8 +49,6 @@ for CATEGORY_DIR in $SOURCE/svg/*; do | |
done | ||
|
||
echo "copied all svgs!" | ||
echo "Removing "$TEMP_DIR | ||
# rm -rf $TEMP_DIR | ||
|
||
echo "All Done!" | ||
# echo "Run `php bin/compile.php` to update the svgs" |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.