summaryrefslogtreecommitdiff
path: root/vendor/github.com/getlantern/systray/example/icon/make_icon.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/getlantern/systray/example/icon/make_icon.sh')
-rw-r--r--vendor/github.com/getlantern/systray/example/icon/make_icon.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/github.com/getlantern/systray/example/icon/make_icon.sh b/vendor/github.com/getlantern/systray/example/icon/make_icon.sh
deleted file mode 100644
index e707373..0000000
--- a/vendor/github.com/getlantern/systray/example/icon/make_icon.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#/bin/sh
-
-if [ -z "$GOPATH" ]; then
- echo GOPATH environment variable not set
- exit
-fi
-
-if [ ! -e "$GOPATH/bin/2goarray" ]; then
- echo "Installing 2goarray..."
- go get github.com/cratonica/2goarray
- if [ $? -ne 0 ]; then
- echo Failure executing go get github.com/cratonica/2goarray
- exit
- fi
-fi
-
-if [ -z "$1" ]; then
- echo Please specify a PNG file
- exit
-fi
-
-if [ ! -f "$1" ]; then
- echo $1 is not a valid file
- exit
-fi
-
-OUTPUT=iconunix.go
-echo Generating $OUTPUT
-echo "//+build linux darwin" > $OUTPUT
-echo >> $OUTPUT
-cat "$1" | $GOPATH/bin/2goarray Data icon >> $OUTPUT
-if [ $? -ne 0 ]; then
- echo Failure generating $OUTPUT
- exit
-fi
-echo Finished