aboutsummaryrefslogtreecommitdiffstats
path: root/main/project/attributes/nounwork.sh
diff options
context:
space:
mode:
authorkoem <koem@petoria.de>2013-02-09 18:14:29 +1300
committerkoem <koem@petoria.de>2013-02-11 08:16:24 +1300
commit8bc22701fbef17c24de6f2f8af282da08eba5766 (patch)
tree7f81de606dab7eb5dab6d20cac2af1c00b99ceba /main/project/attributes/nounwork.sh
parent509cefa3af847129bf40cff15437183d950752a7 (diff)
downloadcgeo-8bc22701fbef17c24de6f2f8af282da08eba5766.zip
cgeo-8bc22701fbef17c24de6f2f8af282da08eba5766.tar.gz
cgeo-8bc22701fbef17c24de6f2f8af282da08eba5766.tar.bz2
Icons for OC
- new icons for opencaching - changed some icons because of copyright - english strings for opencaching attributes - german strings for opencaching attributes - new script to show (missing) strings for attributes - new script to edit svg files from thenounproject.com - new script to generate enums - ocicons.html: list of all OC icons
Diffstat (limited to 'main/project/attributes/nounwork.sh')
-rwxr-xr-xmain/project/attributes/nounwork.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/project/attributes/nounwork.sh b/main/project/attributes/nounwork.sh
new file mode 100755
index 0000000..91ac2b2
--- /dev/null
+++ b/main/project/attributes/nounwork.sh
@@ -0,0 +1,20 @@
+#/!bin/bash
+
+if [ $# -ne 2 ]; then
+ echo "Usage: $0 <iconname> <zip-link>"
+ exit
+fi
+
+TMPDIR=`date +"%N"`
+mkdir $TMPDIR
+mkdir new
+wget -O $TMPDIR/x.zip $2
+unzip $TMPDIR/x.zip -d $TMPDIR
+rm $TMPDIR/x.zip
+mv $TMPDIR/*.svg new/$1.svg
+rm -rf $TMPDIR
+inkscape new/$1.svg
+chmod 664 new/$1.svg
+sed -i 's/pagecolor="#......"/pagecolor="#009674"/g;s/pageopacity="[^"]*"/pageopacity="1"/g' new/$1.svg
+
+ls new