Update of /cvsroot/linux-vax/toolchain/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16951
Modified Files:
compare_buildlog.sh
Added Files:
_Patch _Tempfile
Log Message:
- _Patch: Portability helper.
- _Tempfile: Portability helper.
- compare_buildlog.sh: Use helpers.
--- NEW FILE: _Tempfile ---
#!/usr/bin/env bash
case "`uname -s`" in
Linux) exec tempfile;;
*) NEW_TEMPFILE="/tmp/TemPFIle-$$-`date -u '+%Y%m%d-%H%M%S'`"
touch "${NEW_TEMPFILE}"
echo "${NEW_TEMPFILE}"
;;
esac
--- NEW FILE: _Patch ---
#!/usr/bin/env bash
case "`uname -s`" in
Linux) exec patch "$@";;
*) exec gdiff "$@";;
esac
Index: compare_buildlog.sh
===================================================================
RCS file: /cvsroot/linux-vax/toolchain/scripts/compare_buildlog.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- compare_buildlog.sh 28 Dec 2005 17:09:50 -0000 1.4
+++ compare_buildlog.sh 28 Dec 2005 17:21:05 -0000 1.5
@@ -1,7 +1,7 @@
#!/bin/sh
-TEMP1FILE="`tempfile`"
-TEMP2FILE="`tempfile`"
+TEMP1FILE="`_Tempfile`"
+TEMP2FILE="`_Tempfile`"
if [ $# -ne 2 ]; then
echo "$0 buildlog1 buildlog2" >&2
|