From efe6e235c05c7ae37e0608f69cada7db38501355 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Jan 2012 04:40:00 +0300 Subject: Fix test script launching. --- manaplus.spec.in | 3 +++ manaplustest | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manaplus.spec.in b/manaplus.spec.in index e7c323824..6e563af68 100644 --- a/manaplus.spec.in +++ b/manaplus.spec.in @@ -45,6 +45,8 @@ diverse interactive world. %install rm -rf %{buildroot} %makeinstall +mkdir -p %{buildroot}%{_bindir}/ +cp -p %{_builddir}/%{name}-%{version}/manaplustest %{buildroot}%{_bindir}/ %find_lang %{name} @@ -54,6 +56,7 @@ rm -rf %{buildroot} %files -f %{name}.lang %attr(-, root, root) %doc AUTHORS ChangeLog COPYING docs/*.txt NEWS README %attr(0755, root, root) %{_bindir}/%{name} +%attr(0755, root, root) %{_bindir}/manaplustest %attr(-, root, root) %{_datadir}/%{name} %attr(-, root, root) %{_datadir}/pixmaps/%{name}.png %attr(-, root, root) %{_datadir}/applications/%{name}.desktop diff --git a/manaplustest b/manaplustest index 2c7d3bc08..12bdc2b8a 100755 --- a/manaplustest +++ b/manaplustest @@ -1,4 +1,5 @@ #!/bin/sh -cd /usr/games +cd $(dirname $(whereis -b manaplus|cut -d " " -f 2)) + manaplus --tests -- cgit v1.2.3-70-g09d2