25 lines
521 B
Bash
Executable File
25 lines
521 B
Bash
Executable File
#!/bin/bash
|
|
. setenv.sh
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "please give a directory in the templates folder with .svg glyphs as input"
|
|
exit 1
|
|
fi
|
|
if [ -d "$PICCREATE_IN/$1" ]; then
|
|
export SOURCE="$PICCREATE_IN/$1"
|
|
elif [ ! -d "$1" ]; then
|
|
export SOURCE="$1"
|
|
else
|
|
echo "directory does not exist"
|
|
echo "please give a directory with .svg files as input"
|
|
exit 1
|
|
fi
|
|
export TARGET=$PICCREATE_OUT
|
|
|
|
for i in `ls $SOURCE/*.svg`
|
|
do
|
|
echo `basename $i .svg`
|
|
$PICCREATE_BIN/extract-glyph.sh -i $i -e
|
|
done
|
|
|