diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-09 16:52:25 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-01-10 09:49:28 +0000 |
commit | 62fa5ebdf3b8a2d31291051a547701a4d2756c79 (patch) | |
tree | 5304babb19e696d48576df5a837e75f64e2cd219 /solenv | |
parent | Resolves: fdo#32897 strip out template language tags (diff) | |
download | core-62fa5ebdf3b8a2d31291051a547701a4d2756c79.tar.gz core-62fa5ebdf3b8a2d31291051a547701a4d2756c79.zip |
set a template for mktemp, apparently required in macosx
Diffstat (limited to 'solenv')
-rwxr-xr-x | solenv/bin/striplanguagetags.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/solenv/bin/striplanguagetags.sh b/solenv/bin/striplanguagetags.sh index 95aa3a7bcfc8..46d88e0a2a1e 100755 --- a/solenv/bin/striplanguagetags.sh +++ b/solenv/bin/striplanguagetags.sh @@ -6,7 +6,17 @@ #All a bit hacky, but it should work -XSL=`mktemp` +tempfoo=`basename $0` +XSL=`mktemp /tmp/${tempfoo}.XXXXXX` +if [ $? -ne 0 ]; then + echo "$0: Can't create temp file, exiting..." + exit 1 +fi +WRKDIR=`mktemp -d /tmp/${tempfoo}.XXXXXX` +if [ $? -ne 0 ]; then + echo "$0: Can't create temp dir, exiting..." + exit 1 +fi cat > $XSL << EOF <?xml version="1.0" encoding="UTF-8"?> @@ -24,7 +34,6 @@ cat > $XSL << EOF </xsl:stylesheet> EOF -WRKDIR=`mktemp -d` unzip -q $1 -d $WRKDIR pushd $WRKDIR for a in *; do |