chiark / gitweb /
recurse_deps(): _-prefix $depsfile
authorPetr Baudis <pasky@suse.cz>
Sun, 10 Aug 2008 18:37:18 +0000 (20:37 +0200)
committerPetr Baudis <pasky@suse.cz>
Sun, 10 Aug 2008 18:37:18 +0000 (20:37 +0200)
tg.sh

diff --git a/tg.sh b/tg.sh
index 905fccf..d838bf6 100644 (file)
--- a/tg.sh
+++ b/tg.sh
@@ -95,8 +95,8 @@ recurse_deps()
        _cmd="$1"; shift
        _name="$1"; # no shift
        _depchain="$*"
-       depsfile="$(mktemp)"
-       git cat-file blob "$_name:.topdeps" >"$depsfile"
+       _depsfile="$(mktemp)"
+       git cat-file blob "$_name:.topdeps" >"$_depsfile"
        _ret=0
        while read _dep; do
                if ! git rev-parse --verify "$_dep" >/dev/null 2>&1; then
@@ -115,9 +115,9 @@ recurse_deps()
                        _ret=$?
 
                eval "$_cmd"
-       done <"$depsfile"
+       done <"$_depsfile"
        missing_deps="${missing_deps# }"
-       rm "$depsfile"
+       rm "$_depsfile"
        return $_ret
 }