summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-08 04:40:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-08 15:50:07 +0300
commitefe6e235c05c7ae37e0608f69cada7db38501355 (patch)
tree98768e1d5dc689c70b1deb12f0bfea076e45fe71
parent1916e97724fb96cc1133a7a98861780d59b7ae95 (diff)
downloadManaVerse-efe6e235c05c7ae37e0608f69cada7db38501355.tar.gz
ManaVerse-efe6e235c05c7ae37e0608f69cada7db38501355.tar.bz2
ManaVerse-efe6e235c05c7ae37e0608f69cada7db38501355.tar.xz
ManaVerse-efe6e235c05c7ae37e0608f69cada7db38501355.zip
Fix test script launching.v1.2.1.8
-rw-r--r--manaplus.spec.in3
-rwxr-xr-xmanaplustest3
2 files changed, 5 insertions, 1 deletions
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