[coreboot] [PATCH] Build fixes for buildrom
Bernie Innocenti
bernie at codewiz.org
Mon Apr 6 14:17:23 CEST 2009
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 <bernie at codewiz.org>
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/
More information about the coreboot
mailing list