Add logo
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 13 Sep 2014 12:43:04 +0000 (14:43 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 13 Sep 2014 12:43:04 +0000 (14:43 +0200)
Install the logo in the system's logo directory conform the auto-logo
standard, as /usr/share/games/plugins/logos/hachu.png .

Makefile
logo.png [new file with mode: 0644]

index 078869c..3917fc3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,8 @@ install: ${ALL} ${srcdir}/svg/*
        cp -u ${srcdir}/svg/*.svg `xboard --show-config Datadir`/themes/chu
        install -d -m0755 `xboard --show-config Datadir`/themes/conf
        cp -u ${srcdir}/svg/sho ${srcdir}/svg/chu `xboard --show-config Datadir`/themes/conf
+       install -d -m0755 $(DESTDIR)/usr/share/games/plugins/logos
+       cp -u ${srcdir}/logo.png $(DESTDIR)/usr/share/games/plugins/logos/hachu.png
        install -d -m0755 $(DESTDIR)/usr/share/games/plugins/xboard
        cp -u ${srcdir}/hachu.eng $(DESTDIR)/usr/share/games/plugins/xboard
 
@@ -38,7 +40,7 @@ dist:
        install -d -m0755 HaChu
        install -d -m0755 HaChu/svg
        rm -f hachu.tar hachu.tar.gz
-       cp hachu.c hachu.pod Makefile hachu.eng HaChu
+       cp hachu.c hachu.pod Makefile hachu.eng logo.png HaChu
        cp chu/* HaChu/svg
        (md5sum HaChu/* HaChu/svg/* > HaChu/md5sums) || true
        tar -cvvf hachu.tar HaChu
@@ -51,5 +53,6 @@ dist:
 uninstall:
        rm -f $(DESTDIR)/usr/share/man/man6/hachu.6.gz
        rm -f $(DESTDIR)/usr/games/hachu
+       rm -f $(DESTDIR)/usr/share/games/plugins/logos/hachu.png
        rm -f $(DESTDIR)/usr/share/games/plugins/xboard/hachu.eng
 
diff --git a/logo.png b/logo.png
new file mode 100644 (file)
index 0000000..ea65480
Binary files /dev/null and b/logo.png differ