[asterisk-scf-commits] asterisk-scf/integration/gitall.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Jan 7 14:41:12 UTC 2011


branch "master" has been updated
       via  5af5eec4061e636a01fd714f48f9ad601bd76922 (commit)
      from  f98e9b454b55a131bd4dd5f7d95750f8ed80fd7d (commit)

Summary of changes:
 .gitignore             |    2 +-
 gitall-asterisk-scf.sh |   11 +++--------
 2 files changed, 4 insertions(+), 9 deletions(-)


- Log -----------------------------------------------------------------
commit 5af5eec4061e636a01fd714f48f9ad601bd76922
Author: David M. Lee <dlee at digium.com>
Date:   Fri Jan 7 08:40:13 2011 -0600

    Complain, complain.
    
    Windows worked, but still complains about the absence of mktemp.  Gave
    up and just statically named the temp file for everyone.

diff --git a/.gitignore b/.gitignore
index b84cdff..1180c0f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,4 +10,4 @@ sip
 slice
 test_channel
 ice-util-cpp
-.gitall.*
+.gitall.TMP
diff --git a/gitall-asterisk-scf.sh b/gitall-asterisk-scf.sh
index de52a79..2afb916 100755
--- a/gitall-asterisk-scf.sh
+++ b/gitall-asterisk-scf.sh
@@ -26,14 +26,9 @@ EOF
 }
 
 # a temp file for holding the output of git commands for later comparison
-last_text_file=$(mktemp .gitall.XXXXXX)
-if test $? -ne 0; then
-    # if it fails to create the temporary (I'm looking at you, Windows), then
-    # use the name .gitall.TMP.  That _should_ be safe.
-    last_text_file=.gitall.TMP
-    rm -f .gitall.TMP
-    touch .gitall.TMP
-fi
+last_text_file=.gitall.TMP
+rm -f ${last_text_file}
+touch ${last_text_file}
 
 # on exit, cat the last output and delete the temp file
 trap "cat ${last_text_file}; rm -f ${last_text_file}" EXIT

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/gitall.git



More information about the asterisk-scf-commits mailing list