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@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
Ühel kenal päeval, E, 2009-04-06 kell 14:17, kirjutas Bernie Innocenti:
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@codewiz.org
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.$$`
This change makes it always use /tmp/show-instructions.PID I believe you wanted || instead of a pipe there.
Regards, Mart Raudsepp
On 04/06/09 16:38, Mart Raudsepp wrote:
-tmp=`tempfile` +tmp=`tempfile 2>/dev/null | echo /tmp/show-instructions.$$`
This change makes it always use /tmp/show-instructions.PID I believe you wanted || instead of a pipe there.
Oops, yes. Thanks for spotting it.