From cbc1b271ea57cb68a2663a52dd096749218eda3e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 20 Jun 2014 23:19:50 +0300 Subject: Add shell scripts for running branded tmw and evol versions. Not present in install make action. --- .gitignore | 2 ++ configure.ac | 3 +++ data/evol/Makefile.am | 5 +++-- data/evol/evol.in | 2 ++ data/tmw/Makefile.am | 5 +++-- data/tmw/tmw.in | 2 ++ 6 files changed, 15 insertions(+), 4 deletions(-) create mode 100755 data/evol/evol.in create mode 100755 data/tmw/tmw.in diff --git a/.gitignore b/.gitignore index a2a7b8b5b..97cd4b1dc 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,8 @@ stamp-h1 PKGBUILD data/evol/evol.desktop data/tmw/tmw.desktop +data/evol/evol +data/tmw/tmw # files created by CMake CMakeFiles/ diff --git a/configure.ac b/configure.ac index 3756fd320..126a88d41 100755 --- a/configure.ac +++ b/configure.ac @@ -398,6 +398,9 @@ docs/Makefile po/Makefile.in ]) +AC_CONFIG_FILES([data/evol/evol], [chmod +x data/evol/evol]) +AC_CONFIG_FILES([data/tmw/tmw], [chmod +x data/tmw/tmw]) + AC_OUTPUT echo diff --git a/data/evol/Makefile.am b/data/evol/Makefile.am index 7851bbd75..5ad7b74cf 100644 --- a/data/evol/Makefile.am +++ b/data/evol/Makefile.am @@ -1,7 +1,7 @@ desktopdir = $(datarootdir)/applications -evol-client: +branding: mkdir -p "$(DESTDIR)$(pkgdatadir)/data/evol/icons" mkdir -p "$(DESTDIR)$(datarootdir)/icons" mkdir -p "$(DESTDIR)$(desktopdir)" @@ -11,7 +11,8 @@ evol-client: cp icons/evol-client.png "$(DESTDIR)$(datarootdir)/icons" cp -r images "$(DESTDIR)$(pkgdatadir)/data/evol" -EXTRA_DIST = evol.desktop \ +EXTRA_DIST = evol.desktop.in \ + evol.in \ evol.manaplus \ icons/evol-client.ico \ icons/evol-client.png \ diff --git a/data/evol/evol.in b/data/evol/evol.in new file mode 100755 index 000000000..2b010dc80 --- /dev/null +++ b/data/evol/evol.in @@ -0,0 +1,2 @@ +#!/bin/sh +exec manaplus @datadir@/manaplus/data/evol/evol.manaplus "$@" diff --git a/data/tmw/Makefile.am b/data/tmw/Makefile.am index 264353083..f8135b488 100644 --- a/data/tmw/Makefile.am +++ b/data/tmw/Makefile.am @@ -1,7 +1,7 @@ desktopdir = $(datarootdir)/applications -tmw: +branding: mkdir -p "$(DESTDIR)$(pkgdatadir)/data/tmw/icons" mkdir -p "$(DESTDIR)$(datarootdir)/icons" mkdir -p "$(DESTDIR)$(desktopdir)" @@ -11,7 +11,8 @@ tmw: cp icons/tmw-client.png "$(DESTDIR)$(datarootdir)/icons/tmw.png" cp -r images "$(DESTDIR)$(pkgdatadir)/data/tmw" -EXTRA_DIST = tmw.desktop \ +EXTRA_DIST = tmw.desktop.in \ + tmw.in \ tmw.manaplus \ icons/tmw-client.ico \ icons/tmw-client.png \ diff --git a/data/tmw/tmw.in b/data/tmw/tmw.in new file mode 100755 index 000000000..d726db2c3 --- /dev/null +++ b/data/tmw/tmw.in @@ -0,0 +1,2 @@ +#!/bin/sh +exec manaplus @datadir@/manaplus/data/tmw/tmw.manaplus "$@" -- cgit v1.2.3-70-g09d2