Repo created
This commit is contained in:
parent
f2d952b743
commit
3ecd57d1b2
475 changed files with 37130 additions and 2 deletions
27
srcs/res/gen_doc_key_drawables.sh
Normal file
27
srcs/res/gen_doc_key_drawables.sh
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
cd "$(dirname $0)"
|
||||
|
||||
DRAWABLE_DIR=../../res/drawable
|
||||
ANDROID_LIB=$ANDROID_SDK_ROOT/tools/lib
|
||||
|
||||
first () { echo "$1"; }
|
||||
JAVA_ARGS=(
|
||||
-classpath
|
||||
"$(first $ANDROID_LIB/sdk-common-*.jar):$(first $ANDROID_LIB/common-*.jar)"
|
||||
)
|
||||
svg_to_vector ()
|
||||
{
|
||||
java "${JAVA_ARGS[@]}" SvgToVector.java "$@"
|
||||
}
|
||||
|
||||
TMP=`mktemp -d`
|
||||
trap "rm -r '$TMP'" EXIT
|
||||
set -x
|
||||
|
||||
inkscape doc_key.svg -o "$TMP/doc_key_g.svg" -C --export-page 1 --export-plain-svg --export-text-to-path
|
||||
inkscape doc_key.svg -o "$TMP/doc_key_u.svg" -C --export-page 2 --export-plain-svg --export-text-to-path
|
||||
|
||||
svg_to_vector "$TMP/doc_key_g.svg" "$DRAWABLE_DIR/doc_key_g.xml"
|
||||
svg_to_vector "$TMP/doc_key_u.svg" "$DRAWABLE_DIR/doc_key_u.xml"
|
||||
Loading…
Add table
Add a link
Reference in a new issue