[PATCH wayland-build-tools] Add helper script to setup and use an uninstalled environment
emil.l.velikov at gmail.com
Wed Aug 31 09:22:34 UTC 2016
On 30 August 2016 at 19:56, Derek Foreman <derekf at osg.samsung.com> wrote:
> From: "Reynaldo H. Verdejo Pinochet" <reynaldo at osg.samsung.com>
> The wl_uninstalled script provides a shell environment to
> build and use an uninstalled Wayland/Weston setup.
> For example, this script and a fresh checkout of Wayland,
> libinput, wayland-protocols and Weston is all you need to
> run Weston from the uninstalled environment created by
> building every module. No installation required.
> Quick instructions:
> Lets use Weston as an example altough other Wayland-based
> software should work as well.
> Edit a local copy of the script to make $WLD point to the
> base directory where your repositories are (make sure to
> use the absolute paths), then, after executing the script,
> issue the following commands to have everything built and
> Weston runing from the uninstalled environment.
> cd <basedir>
> for i in wayland wayland-protocols libinput weston; do
> cd $i && ./autogen.sh && make && cd ..; done
Above all please do _not_ recommend building in-tree. Pretty please.
As mentioned before using --prefix=$WLD/foo + make install will make
> +* Edit a local copy of the script to make $WLD point to the base directory
How about one honours the WLD that's already set since ...
> + where your repositories are (make sure to use the absolute paths), then,
> + after executing the script, issue the following commands to have everything
> + built and weston running from the uninstalled environment.
> + cd $WLD
... they will likely use it here ?
> + for i in wayland wayland-protocols libinput weston; do
> + cd $i && ./autogen.sh && make && cd ..; done
Use OOT builds, please.
> +if [ "$1"yes != "yes" ]; then
> + cat << EOF
> +This script uses no arguments. Aborting execution.
The number of arguments is $#, why not use that one ?
With the above said, one can just check it and bail out if WLD invalid/unset ?
> +# Export new environment
> +export WLD
Then you can drop this (maybe) ?
> +The following environment has been exported:
And this ?
More information about the wayland-devel