Build fixes for buildrom

 - switch from "git-foo" to "git foo" for git 1.6
 - add a fallback for when tempfile is missing

Signed-off-by: Bernie Innocenti <[email protected]>

Index: bin/fetchgit.sh
===================================================================
--- bin/fetchgit.sh     (revision 261)
+++ bin/fetchgit.sh     (working copy)
@@ -11,7 +11,7 @@
 
 if [ ! -d $DIR/.git ]; then 
        echo "Cloning $URL..."
-       git-clone $URL $DIR
+       git clone $URL $DIR
        if [ $? -ne 0 ]; then
                echo "Couldn't clone $URL."
                exit 1
@@ -22,10 +22,10 @@
 
 export GIT_DIR=$DIR/.git
 
-git-fetch $URL
-git-fetch --tags $URL
-git-prune-packed
-git-pack-redundant --all | xargs -r rm
+git fetch $URL
+git fetch --tags $URL
+git prune-packed
+git pack-redundant --all | xargs -r rm
 
 # Make the tarball 
-git-tar-tree $TAG $NAME-$TAG | bzip2 > $TARBALL
+git tar-tree $TAG $NAME-$TAG | bzip2 > $TARBALL
Index: bin/show-instructions.sh
===================================================================
--- bin/show-instructions.sh    (revision 261)
+++ bin/show-instructions.sh    (working copy)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-tmp=`tempfile`
+tmp=`tempfile 2>/dev/null | echo /tmp/show-instructions.$$`
 cat $1 | sed -e "s:%DESTFILE%:$2:" > $tmp
 
 if [ -x `dirname $0`/../scripts/kconfig/lxdialog/lxdialog ]; then

-- 
   // Bernie Innocenti - http://www.codewiz.org/
 \X/  Sugar Labs       - http://www.sugarlabs.org/

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to