summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/lvm_menu/README3
-rw-r--r--[-rwxr-xr-x]examples/lvm_menu/lvm_menu.sh0
-rw-r--r--[-rwxr-xr-x]examples/lvm_menu/menu.sh0
-rw-r--r--examples/simple_menu/README5
-rw-r--r--[-rwxr-xr-x]examples/simple_menu/actions.sh0
-rw-r--r--[-rwxr-xr-x]examples/simple_menu/simple_menu.sh0
-rw-r--r--examples/yesno/README3
-rw-r--r--[-rwxr-xr-x]examples/yesno/yesno.sh0
-rw-r--r--smenu.spec.in11
-rw-r--r--tests/README.rst1
-rw-r--r--[-rwxr-xr-x]tests/test.sh0
-rw-r--r--[-rwxr-xr-x]tests/tests.sh0
12 files changed, 22 insertions, 1 deletions
diff --git a/examples/lvm_menu/README b/examples/lvm_menu/README
index a88aec9..12b5a67 100644
--- a/examples/lvm_menu/README
+++ b/examples/lvm_menu/README
@@ -1,5 +1,8 @@
This is an example of bash tool to build a customized LVM management menu.
+First, make sure to make menu.sh and lvm_menu.sh executable:
+(chmod +x menu.sh lvm_menu.sh).
+
menu.sh is used to create a generic menu with smenu
lvm_menu.sh uses menu.sh to create a specialized menu to manage LVM objects
diff --git a/examples/lvm_menu/lvm_menu.sh b/examples/lvm_menu/lvm_menu.sh
index 3f5c076..3f5c076 100755..100644
--- a/examples/lvm_menu/lvm_menu.sh
+++ b/examples/lvm_menu/lvm_menu.sh
diff --git a/examples/lvm_menu/menu.sh b/examples/lvm_menu/menu.sh
index bfada7e..bfada7e 100755..100644
--- a/examples/lvm_menu/menu.sh
+++ b/examples/lvm_menu/menu.sh
diff --git a/examples/simple_menu/README b/examples/simple_menu/README
index f2f7b4d..7ee280c 100644
--- a/examples/simple_menu/README
+++ b/examples/simple_menu/README
@@ -32,7 +32,10 @@ EXIT : Exits the menu without outputting anything.
As usual, 'ENTER' triggers the selection and 'q' quits the menu without
outputting anything.
-To launch the demo, just enter: ./simple_menu.sh main.mnu ./actions.sh
+To launch the demo, first, make sure to make simple_menu.sh executable
+(chmod +x simple_menu.sh) and enter:
+
+./simple_menu.sh main.mnu ./actions.sh
The first argument is the main menu file and the second one is the path
of the program which will be called each time a selection is made. This
diff --git a/examples/simple_menu/actions.sh b/examples/simple_menu/actions.sh
index fd7071b..fd7071b 100755..100644
--- a/examples/simple_menu/actions.sh
+++ b/examples/simple_menu/actions.sh
diff --git a/examples/simple_menu/simple_menu.sh b/examples/simple_menu/simple_menu.sh
index 827afc8..827afc8 100755..100644
--- a/examples/simple_menu/simple_menu.sh
+++ b/examples/simple_menu/simple_menu.sh
diff --git a/examples/yesno/README b/examples/yesno/README
index bfbbd33..0565ff5 100644
--- a/examples/yesno/README
+++ b/examples/yesno/README
@@ -1,6 +1,9 @@
With this example you will discover how easily you can ask a user to
confirm a previous choice
+First, make sure to make yesno.sh executable (chmod +x yesno.sh) and
+enter: ./yesno.sh
+
The screenshot shows three use cases, one when just hitting 'Enter',
one when moving the cursor to YES before hitting 'Enter' and the last
one when just hitting 'q'
diff --git a/examples/yesno/yesno.sh b/examples/yesno/yesno.sh
index d0d9b47..d0d9b47 100755..100644
--- a/examples/yesno/yesno.sh
+++ b/examples/yesno/yesno.sh
diff --git a/smenu.spec.in b/smenu.spec.in
index c99504d..7a47229 100644
--- a/smenu.spec.in
+++ b/smenu.spec.in
@@ -25,6 +25,7 @@ Group: Productivity/Text/Utilities
URL: https://github.com/p-gen/%{name}
Source: %{name}-%{version}.tar.bz2
BuildRequires: ncurses-devel
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This tool reads words from a file or standard input, presents them in an
@@ -47,14 +48,24 @@ This packages contains some scripts and a number of tests to check the
%{name} tool.
%install
+%if 0%{?suse_version} < 1315
+make install DESTDIR="%{?buildroot}"
+%else
%make_install
+%endif
%files tests
+%defattr(-,root,root,-)
%doc tests
%files
+%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/*
+%if 0%{?sle_version} < 120300
+%doc COPYRIGHT
+%else
%license COPYRIGHT
+%endif
%doc examples README.rst
%{_mandir}/man1/*
diff --git a/tests/README.rst b/tests/README.rst
index 28576a5..040a741 100644
--- a/tests/README.rst
+++ b/tests/README.rst
@@ -44,6 +44,7 @@ Usage
- Decompress the **tests.cpio.gz** archive (``gzip -dv tests.cpio.gz``).
- Extract the tests from the **tests.cpio** archive in this directory
(``cpio -idv < tests.cpio``).
+ - Make tests.sh and test.sh executable (``chmod u+x tests.sh test.sh``)
- Make sure that your terminal has at least a size of 80x84.
- Make sure that you have previously built **smenu** with ``build.sh``.
diff --git a/tests/test.sh b/tests/test.sh
index f562b8b..f562b8b 100755..100644
--- a/tests/test.sh
+++ b/tests/test.sh
diff --git a/tests/tests.sh b/tests/tests.sh
index e80c933..e80c933 100755..100644
--- a/tests/tests.sh
+++ b/tests/tests.sh