[ostree] gnomeos-make-image.sh: Support out of tree ostree



commit f8b178b4527bdda83606d9ddcc81fdff55e4e2d4
Author: Colin Walters <walters verbum org>
Date:   Wed Oct 26 14:42:58 2011 -0400

    gnomeos-make-image.sh: Support out of tree ostree

 parallel-debian/gnomeos-make-image.sh |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/parallel-debian/gnomeos-make-image.sh b/parallel-debian/gnomeos-make-image.sh
index 6cc998a..ad25def 100755
--- a/parallel-debian/gnomeos-make-image.sh
+++ b/parallel-debian/gnomeos-make-image.sh
@@ -18,13 +18,14 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-
 set -e
 set -x
 
 SRCDIR=`dirname $0`
 WORKDIR=`pwd`
 
+OSTREE=${OSTREE:-ostree}
+
 case `uname -p` in
     x86_64)
         ARCH=amd64
@@ -100,12 +101,12 @@ if ! test -f ${OBJ}; then
         rm ostree/gnomeos-origin/debian-setup.sh
 
         ostree init --repo=ostree/repo
-        (cd ostree/gnomeos-origin; find . '!' -type p | grep -v '^.$' | ostree commit -s 'Initial import' --repo=../repo --from-stdin)
+        (cd ostree/gnomeos-origin; find . '!' -type p | grep -v '^.$' | $OSTREE commit -s 'Initial import' --repo=../repo --from-stdin)
         rm -rf ostree/gnomeos-origin
         (cd ostree;
             rev=`cat repo/HEAD`
-            ostree checkout --repo=repo HEAD gnomeos-${rev}
-            ostree run-triggers --repo=repo current
+            $OSTREE checkout --repo=repo HEAD gnomeos-${rev}
+            $OSTREE run-triggers --repo=repo current
             ln -s gnomeos-${rev} current)
     )
     umount fs



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