android_terminal/tools/install_service_icons.sh
Jack Palevich ee721c5a17 Create Android 1.5 version of notification icon.
Use MDPI version, as Android 1.5 devices are defined to be MDPI.
2011-10-24 09:50:26 -07:00

37 lines
779 B
Bash
Executable File

#!/bin/bash
# Copy the service icons from the download location into the resource tree
if [ $# -ne 2 ] ; then
echo "Expected 2 arguments (source directory, destination directory)"
exit 1
fi
SRC=$1
DST=$2
if [ ! -d "$1" ] ; then
echo "Expected first argument to be a source directory. Got '$1'"
exit 2
fi
if [ ! -d "$2" ] ; then
echo "Expected second argument to be a destination directory. Got '$2'"
exit 2
fi
echo "Copying assets from $1 to $2"
ASSET="ic_stat_service_notification_icon.png"
for i in $(ls $SRC); do
DSTDIR="$DST/$i"
if [ ! -d "$DSTDIR" ] ; then
mkdir "$DSTDIR"
fi
cp "$SRC/$i/$ASSET" "$DSTDIR/$ASSET"
done
# Create the Android 1.5 version of the icon
cp "$SRC/drawable-mdpi/$ASSET" "$DST/drawable/ASSET"