diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-07-15 21:43:39 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-07-15 21:43:39 +0000 |
commit | 966ba4c1b9d10bc29b480277843b4f42b5fa5818 (patch) | |
tree | 9dfe31702881c83e4f132b8160eee780e055f26d /scripts/getkeymaps | |
parent | ed84285fd2d831cb5ac4dc2c88974baadb65f5e0 (diff) | |
download | anaconda-966ba4c1b9d10bc29b480277843b4f42b5fa5818.tar.gz anaconda-966ba4c1b9d10bc29b480277843b4f42b5fa5818.tar.xz anaconda-966ba4c1b9d10bc29b480277843b4f42b5fa5818.zip |
oops, committing the right version of the file helps
Diffstat (limited to 'scripts/getkeymaps')
-rwxr-xr-x | scripts/getkeymaps | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/getkeymaps b/scripts/getkeymaps index b77ada1ca..8f4e4d2fc 100755 --- a/scripts/getkeymaps +++ b/scripts/getkeymaps @@ -6,14 +6,23 @@ if [ -z "$ARCH" ]; then exit 1 fi +TOPDIR=`pwd` OUTPUT=$2 if [ -z "$OUTPUT" ]; then echo "No output specified, using /tmp/keymaps-$ARCH.$$" OUTPUT=/tmp/keymaps-$ARCH.$$ fi +UTILDIR=$3 +if [ -z "$UTILDIR" ]; then + READMAP=../utils/readmap + MAPSHDR=$TOPDIR/../utils/mapshdr +else + READMAP=$UTILDIR/usr/lib/anaconda-runtime/readmap + MAPSHDR=$UTILDIR/usr/lib/anaconda-runtime/mapshdr +fi + TMPDIR=/tmp/keymaps.$$ -TOPDIR=`pwd` rm -rf $TMPDIR mkdir -p $TMPDIR @@ -29,7 +38,7 @@ 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` - ../utils/readmap $TMPDIR/`basename $n .map.gz`.map + $READMAP $TMPDIR/`basename $n .map.gz`.map done done @@ -37,6 +46,6 @@ loadkeys us rm -f $TMPDIR/defkeymap* $TMPDIR/ANSI* $TMPDIR/lt.map -(cd $TMPDIR; $TOPDIR/../utils/mapshdr *.map) > $TMPDIR/hdr +(cd $TMPDIR; $MAPSHDR *.map) > $TMPDIR/hdr cat $TMPDIR/hdr $TMPDIR/*.map | gzip -9 > $OUTPUT rm -rf $TMPDIR |