On 08/05/2011 11:17 AM, ZuLuuuuuu wrote:
I haven't packaged it yet (actually I might need a help there I don't know
how gst-blox or gst-browser executers are created) so here is a tarball:

They are wrappers around gst-load. While gst-blox and gst-browser are hard-coded in gst-tool.c, you can do the same with a shell script. Put the content of Main.st in the <start></start> tag of the package.xml file. Then gst-overlord can be something like this:

---------------------------------- 8< ----------------------------------

#! /bin/sh
# Parse arguments into $ARGS
ARGS=$(getopt -l image-file:,kernel-directory:,verbose -o I:vV -- "$@")

# Exit if there was an error
test $? -ne 0 && exit 1

# Move arguments to "$@"
eval set -- "$ARGS"

# Fail if there were any non-option arguments
eval test \$$# = -- || exit 1

# Finally start the package
gst-load -n --start "$@" Overload

---------------------------------- 8< ----------------------------------

I'm not sure whether this use of getopt is portable to non-Linux systems though.

Paolo

_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to