[pitivi] xdg-app: Finish build when creating bundles



commit e2afd74645cbf2131c7889a0916a3413d3cd6622
Author: Thibault Saunier <tsaunier gnome org>
Date:   Fri Dec 11 15:51:08 2015 +0100

    xdg-app: Finish build when creating bundles

 build/xdg-app/pitivi-bundle |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/build/xdg-app/pitivi-bundle b/build/xdg-app/pitivi-bundle
index 2f5f9e5..9c34988 100755
--- a/build/xdg-app/pitivi-bundle
+++ b/build/xdg-app/pitivi-bundle
@@ -300,6 +300,11 @@ fi
 
 if [ -n "$DEVEL" ]
 then
+  XDG_APP_BUILD_OPTIONS="--keep-build-dirs"
+  if [ -z $BUNDLE ]
+  then
+    XDG_APP_BUILD_OPTIONS=" $XDG_APP_BUILD_OPTIONS --build-only"
+  fi
 
   if [ -z "$USE_REMOTE" ]
   then
@@ -336,8 +341,8 @@ then
        JSON=$BUILDDIR/$APP_BUILD_NAME.json
        sed -e "s/\$GITREPO/$(echo $GITREPO_URI | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/&/\\\&/g')/" -e 
"s/\$BRANCHNAME/$DEVELOPMENT_BRANCHNAME/" $APPLICATION_NAME.template.json > $JSON
 
-    echo "-> Building $APPLICATION_NAME $DEVELOPMENT_BRANCHNAME from $JSON"
-    xdg-app-builder --keep-build-dirs --build-only $APPDIR $JSON || exit 1
+    echo "-> Building $APPLICATION_NAME $DEVELOPMENT_BRANCHNAME from $JSON (options: $XDG_APP_BUILD_OPTIONS)"
+    xdg-app-builder --keep-build-dirs $XDG_APP_BUILD_OPTIONS $APPDIR $JSON || exit 1
        if [ -z $BUNDLE ]
        then
          echo "-> Building $APPLICATION_NAME from current repository"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]