diff options
author | pgen <p.gen.progs@gmail.com> | 2019-03-20 00:25:48 +0100 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2019-03-20 00:25:48 +0100 |
commit | 31cf4b4f8519186c87ee58b458e21f43f524ea76 (patch) | |
tree | e2afef4d8878785aaa8aa9f3644b14394b284fa1 /examples | |
parent | e82fb24e8a4bda56ed388803b8ba2f05c5d85ff9 (diff) |
Improve the specfile
RPMs can now be created for more platforms, including SLE_11_SP4 and
SLE_12_SP2.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/lvm_menu/README | 3 | ||||
-rw-r--r--[-rwxr-xr-x] | examples/lvm_menu/lvm_menu.sh | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | examples/lvm_menu/menu.sh | 0 | ||||
-rw-r--r-- | examples/simple_menu/README | 5 | ||||
-rw-r--r--[-rwxr-xr-x] | examples/simple_menu/actions.sh | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | examples/simple_menu/simple_menu.sh | 0 | ||||
-rw-r--r-- | examples/yesno/README | 3 | ||||
-rw-r--r--[-rwxr-xr-x] | examples/yesno/yesno.sh | 0 |
8 files changed, 10 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 |