|author||Paul Eggleton <email@example.com>||2017-06-21 21:49:54 +0200|
|committer||Richard Purdie <firstname.lastname@example.org>||2017-06-28 15:51:55 +0100|
oe-init-build-env-memres: swap parameter order
This script expected the port number to be specified first, which is somewhat counter-intuitive especially if you're used to oe-init-build-env; besides, in local usage you are unlikely to need to specify a custom port. Given that few people are using this yet (based on the issues I have recently fixed), switch the arguments around so that the two scripts behave consistently. Signed-off-by: Paul Eggleton <email@example.com> Signed-off-by: Ross Burton <firstname.lastname@example.org>
Diffstat (limited to 'oe-init-build-env-memres')
1 files changed, 6 insertions, 6 deletions
diff --git a/oe-init-build-env-memres b/oe-init-build-env-memres
index 9e1425ea83..3f0d239a10 100755
@@ -19,18 +19,18 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-# Normally this is called as '. ./oe-init-build-env-memres <portnumber> <builddir>'
+# Normally this is called as '. ./oe-init-build-env-memres <builddir> [portnumber]'
# This works in most shells (not dash), but not all of them pass the arguments
-# when being sourced. To workaround the shell limitation use "set <portnumber>
-# <builddir>" prior to sourcing this script.
+# when being sourced. To workaround the shell limitation use "set <builddir>
+# [portnumber]" prior to sourcing this script.
-if [ -z "$1" ]; then
+if [ -z "$2" ]; then
echo "No port specified, using dynamically selected port"
+ set -- "$1" "$3" "$4" "$5" "$6"
if [ -n "$BASH_SOURCE" ]; then