All of lore.kernel.org
 help / color / mirror / Atom feed
* [OSSTest] standalone-reset: actually honour '-f' option
@ 2014-01-29 14:32 Dario Faggioli
  2014-02-14 18:11 ` Dario Faggioli
  0 siblings, 1 reply; 5+ messages in thread
From: Dario Faggioli @ 2014-01-29 14:32 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Campbell, Ian Jackson


[-- Attachment #1.1: Type: text/plain, Size: 1138 bytes --]

standalone-reset's usage says:
    
  usage: ./standalone-reset [<options>] [<branch> [<xenbranch> [<buildflight>]]]
   branch and xenbranch default, separately, to xen-unstable
  options:
   -f<flight>     generate flight "flight", default is "standalone"
    
but then there is no place where '-f' is processed, and hence
no real way to pass a specific flight name to make-flight.
    
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>

diff --git a/standalone-reset b/standalone-reset
index 8be7e86..846561d 100755
--- a/standalone-reset
+++ b/standalone-reset
@@ -27,6 +27,15 @@ options:
 END
 }
 
+flight="standalone"
+while getopts "f:" opt; do
+    case "$opt" in
+        f) flight=${OPTARG};;
+        *) usage; exit 1;;
+    esac
+done
+shift $((OPTIND-1))
+
 if [ -f standalone.config ] ; then
     . standalone.config
 fi

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-18 11:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-29 14:32 [OSSTest] standalone-reset: actually honour '-f' option Dario Faggioli
2014-02-14 18:11 ` Dario Faggioli
2014-02-14 18:41   ` Ian Jackson
2014-02-18 10:11     ` Ian Campbell
2014-02-18 11:36     ` Dario Faggioli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.