#!/bin/sh # Copyright (C) 2012,2013 Colin Walters # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. jsdir=@pkgdatadir@-autobuilder/js export GI_TYPELIB_PATH="@pkglibdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}" export LD_LIBRARY_PATH="@pkglibdir@/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" # Don't auto-spawn a session bus export GIO_USE_VFS=local export OSTBUILD_DATADIR=@pkgdatadir@-autobuilder export OSTBUILD_LIBDIR=@pkglibdir@-autobuilder argv1="$1" externalpath="$OSTBUILD_LIBDIR/rpm-ostree-autobuilder-builtin-$1" if test -x "$externalpath"; then shift exec "$externalpath" "$@" fi exec $OSTBUILD_GDB gjs -I "${jsdir}" "${jsdir}/main.js" "$@"