From: Roland Mas <roland.mas@entierement.net>
Date: Tue, 28 Nov 2023 21:24:45 +0100
Subject: Proper path in tutorial scripts

---
 tutorial/0-completion         | 4 ++--
 tutorial/1-basics             | 2 +-
 tutorial/2-values             | 2 +-
 tutorial/3-cumulative-options | 2 +-
 tutorial/4-types              | 2 +-
 tutorial/5-custom-types       | 2 +-
 tutorial/6-properties         | 2 +-
 tutorial/7-value-checking     | 2 +-
 tutorial/8-setting-hook       | 2 +-
 tutorial/9-misc               | 2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/tutorial/0-completion b/tutorial/0-completion
index bd4fb86..e05d04b 100755
--- a/tutorial/0-completion
+++ b/tutorial/0-completion
@@ -9,7 +9,7 @@ read -N 4096 bashrc <<EOF
 . /etc/profile
 shopt -s progcomp sourcepath
 PATH="$PATH:$tutorial_directory"
-. "$tutorial_directory/../argsparse-completion.sh"
+. /usr/share/bash-argsparse/argsparse-completion.sh
 complete -F _argsparse_complete \
 	1-basics 2-values 3-cumulative-options \
 	4-types 5-custom-types 6-properties \
@@ -33,7 +33,7 @@ To enable completion for your own scripts, please ensure
 bash_completion is enabled, and then in your ~/.bashrc, add lines such
 as:
 
-    . argsparse-completion.sh
+    . /usr/share/bash-argsparse/argsparse-completion.sh
     complete -F _argsparse_complete yourscript your_other_script
 
 EOF
diff --git a/tutorial/1-basics b/tutorial/1-basics
index 0e90c63..4bfa39d 100755
--- a/tutorial/1-basics
+++ b/tutorial/1-basics
@@ -3,7 +3,7 @@
 PATH="..:$PATH"
 
 # Load argsparse library.
-. argsparse.sh
+. /usr/share/bash-argsparse/argsparse.sh
 
 # Declaring an option not accepting a value and not having a
 # single-char equivalent.
diff --git a/tutorial/2-values b/tutorial/2-values
index 4ecf632..34f47fb 100755
--- a/tutorial/2-values
+++ b/tutorial/2-values
@@ -4,7 +4,7 @@
 PATH="..:$PATH"
 
 # Load argsparse library.
-. argsparse.sh
+. /usr/share/bash-argsparse/argsparse.sh
 
 # We declare an option accepting a value by giving it the "value"
 # property. By default, if an option with the "value" property is
diff --git a/tutorial/3-cumulative-options b/tutorial/3-cumulative-options
index 0d93a69..786dc0e 100755
--- a/tutorial/3-cumulative-options
+++ b/tutorial/3-cumulative-options
@@ -3,7 +3,7 @@
 PATH="..:$PATH"
 
 # Load argsparse library.
-. argsparse.sh
+. /usr/share/bash-argsparse/argsparse.sh
 
 # It is possible to have cumulative options with argsparse. Cumulative
 # options can be repeated and all values are kept in an array.
diff --git a/tutorial/4-types b/tutorial/4-types
index 588a92c..5529315 100755
--- a/tutorial/4-types
+++ b/tutorial/4-types
@@ -3,7 +3,7 @@
 PATH="..:$PATH"
 
 # Load argsparse library.
-. argsparse.sh
+. /usr/share/bash-argsparse/argsparse.sh
 
 # Here is an option accepting a integer-typed value, by simply using
 # the 'type' property. Note that 'type' doesnt imply 'value'.
diff --git a/tutorial/5-custom-types b/tutorial/5-custom-types
index d8dcc12..d76c759 100755
--- a/tutorial/5-custom-types
+++ b/tutorial/5-custom-types
@@ -3,7 +3,7 @@
 PATH="..:$PATH"
 
 # Load argsparse library.
-. argsparse.sh
+. /usr/share/bash-argsparse/argsparse.sh
 
 # Argsparse also allows user-defined types. To do so, just define a
 # check_option_type_<your_type_name> function.
diff --git a/tutorial/6-properties b/tutorial/6-properties
index bf25392..ccdbd0a 100755
--- a/tutorial/6-properties
+++ b/tutorial/6-properties
@@ -3,7 +3,7 @@
 PATH="..:$PATH"
 
 # Load argsparse library.
-. argsparse.sh
+. /usr/share/bash-argsparse/argsparse.sh
 
 # In previous tutorials, we have already seen some properties: 
 # * short
diff --git a/tutorial/7-value-checking b/tutorial/7-value-checking
index 62f828e..8936f23 100755
--- a/tutorial/7-value-checking
+++ b/tutorial/7-value-checking
@@ -3,7 +3,7 @@
 PATH="..:$PATH"
 
 # Load argsparse library.
-. argsparse.sh
+. /usr/share/bash-argsparse/argsparse.sh
 
 # Beside the 'type', you can control options user-given values by
 # using other methods.
diff --git a/tutorial/8-setting-hook b/tutorial/8-setting-hook
index f294ea4..2505ac9 100755
--- a/tutorial/8-setting-hook
+++ b/tutorial/8-setting-hook
@@ -3,7 +3,7 @@
 PATH="..:$PATH"
 
 # Load argsparse library.
-. argsparse.sh
+. /usr/share/bash-argsparse/argsparse.sh
 
 # You can also change the way options are set by defining a function
 # named set_option_<optionname>.
diff --git a/tutorial/9-misc b/tutorial/9-misc
index b8d1654..1889eeb 100755
--- a/tutorial/9-misc
+++ b/tutorial/9-misc
@@ -3,7 +3,7 @@
 PATH="..:$PATH"
 
 # Load argsparse library.
-. argsparse.sh
+. /usr/share/bash-argsparse/argsparse.sh
 
 # Miscellaneous other functions. See below.
 
