From 3b008d6fa6f8d29262b846276cd68a1c4621d94b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 14 Jun 2013 10:34:07 +0200 Subject: [PATCH] Expand usage synopsis 'source' is actually a "bashism" and the POSIX-way of sourcing a file uses the single dot (which is arguably less readable). Both yield the same result, and since the script may now also be sourced from within the hacking directory, this commit expands the usage synopsis accordingly. Signed-off-by: martin f. krafft Conflicts: hacking/env-setup --- hacking/env-setup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hacking/env-setup b/hacking/env-setup index 8eb45370ab1..83f57e9cee5 100755 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -1,5 +1,8 @@ #!/bin/bash -# usage: source ./hacking/env-setup [-q] +# usage: source env-setup [-q] +# source hacking/env-setup [-q] +# . ./env-setup [-q] +# . ./hacking/env-setup [q] # modifies environment for running Ansible from checkout # When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE