diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-01-30 21:55:56 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-01-30 21:55:56 +0000 |
commit | 2c196037584ab0207bf96eeff15b50d8bc6b1af1 (patch) | |
tree | bea0a6eec90d78455a425abdc241e7c90acfeff4 /scripts/getkeymaps | |
parent | c23816d5ea246957983736cc05747431009b7cd8 (diff) | |
download | anaconda-2c196037584ab0207bf96eeff15b50d8bc6b1af1.tar.gz anaconda-2c196037584ab0207bf96eeff15b50d8bc6b1af1.tar.xz anaconda-2c196037584ab0207bf96eeff15b50d8bc6b1af1.zip |
2007-01-30 Jeremy Katz <katzj@redhat.com>
* scripts/buildinstall: Use $TMPDIR instead of hard-coded /tmp
(Steve Pritchard <steve@silug.org>, #224438)
* scripts/getkeymaps: Likewise.
* scripts/mk-images: Likewise.
* scripts/mk-images.ia64: Likewise.
* scripts/pkgorder: Likewise.
* scripts/upd-instroot: Likewise.
* scripts/yumcache: Likewise.
Diffstat (limited to 'scripts/getkeymaps')
-rwxr-xr-x | scripts/getkeymaps | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/getkeymaps b/scripts/getkeymaps index 7b1478d84..dce3221a2 100755 --- a/scripts/getkeymaps +++ b/scripts/getkeymaps @@ -9,8 +9,8 @@ fi TOPDIR=`pwd` OUTPUT=$2 if [ -z "$OUTPUT" ]; then - echo "No output specified, using /tmp/keymaps-$ARCH.$$" - OUTPUT=/tmp/keymaps-$ARCH.$$ + echo "No output specified, using ${TMPDIR:-/tmp}/keymaps-$ARCH.$$" + OUTPUT=${TMPDIR:-/tmp}/keymaps-$ARCH.$$ fi UTILDIR=$3 @@ -22,10 +22,10 @@ else MAPSHDR=$UTILDIR/usr/lib/anaconda-runtime/mapshdr fi -TMPDIR=/tmp/keymaps.$$ +TMP=${TMPDIR:-/tmp}/keymaps.$$ -rm -rf $TMPDIR -mkdir -p $TMPDIR +rm -rf $TMP +mkdir -p $TMP if [ $ARCH = "sparc" ]; then PATTERN={i386,sun} @@ -38,14 +38,14 @@ MAPS=$(python -c "import rhpl.keyboard_models ; rhpl.keyboard_models.get_support for map in $MAPS ; do eval find /lib/kbd/keymaps/$PATTERN -name "$map.map*" | while read n; do /bin/loadkeys `basename $n .gz` >/dev/null - $READMAP $TMPDIR/`basename $n .map.gz`.map + $READMAP $TMP/`basename $n .map.gz`.map done done loadkeys us -rm -f $TMPDIR/defkeymap* $TMPDIR/ANSI* $TMPDIR/lt.map +rm -f $TMP/defkeymap* $TMP/ANSI* $TMP/lt.map -(cd $TMPDIR; $MAPSHDR *.map) > $TMPDIR/hdr -cat $TMPDIR/hdr $TMPDIR/*.map | gzip -9 > $OUTPUT -rm -rf $TMPDIR +(cd $TMP; $MAPSHDR *.map) > $TMP/hdr +cat $TMP/hdr $TMP/*.map | gzip -9 > $OUTPUT +rm -rf $TMP |