From b696dee826782220760057851dfe02d448bb56a7 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Thu, 9 Aug 2012 12:52:28 -0400 Subject: We no longer need getkeymaps, mapshdr, or readmap. --- scripts/Makefile.am | 2 +- scripts/getkeymaps | 75 ----------------------------------------------------- 2 files changed, 1 insertion(+), 76 deletions(-) delete mode 100755 scripts/getkeymaps (limited to 'scripts') diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 8ad951256..6204fd349 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -18,7 +18,7 @@ # Author: David Cantrell scriptsdir = $(libexecdir)/$(PACKAGE_NAME) -dist_scripts_SCRIPTS = getkeymaps upd-updates +dist_scripts_SCRIPTS = upd-updates dist_scripts_DATA = pyrc.py dist_noinst_SCRIPTS = getlangnames.py upd-kernel makeupdates diff --git a/scripts/getkeymaps b/scripts/getkeymaps deleted file mode 100755 index 137ae5ee4..000000000 --- a/scripts/getkeymaps +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh -# -# getkeymaps -# -# Copyright (C) 2007 Red Hat, Inc. All rights reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# - -ARCH=$1 -if [ -z "$ARCH" ]; then - echo "usage: $0 " - exit 1 -fi - -if [ "$ARCH" = "x86_64" -o "$ARCH" = "s390x" -o "$ARCH" = "ppc64" ]; then - LIBDIR=lib64 -else - LIBDIR=lib -fi - -TOPDIR=`pwd` -OUTPUT=$2 -if [ -z "$OUTPUT" ]; then - echo "No output specified, using ${TMPDIR:-/tmp}/keymaps-$ARCH.$$" - OUTPUT=${TMPDIR:-/tmp}/keymaps-$ARCH.$$ -fi - -UTILDIR=$3 -if [ -z "$UTILDIR" ]; then - READMAP=../utils/readmap - MAPSHDR=$TOPDIR/../utils/mapshdr -else - READMAP=$UTILDIR/usr/libexec/anaconda/readmap - MAPSHDR=$UTILDIR/usr/libexec/anaconda/mapshdr -fi - -TMP=${TMPDIR:-/tmp}/keymaps.$$ - -rm -rf $TMP -mkdir -p $TMP - -if [ $ARCH = "sparc" ]; then - PATTERN={i386,sun} -else - PATTERN=i386 -fi - -MAPS=$(python -c "import system_config_keyboard.keyboard_models ; system_config_keyboard.keyboard_models.get_supported_models()") - -for map in $MAPS ; do - eval find /lib/kbd/keymaps/$PATTERN -name "$map.map*.gz" | while read n; do - /bin/loadkeys `basename $n .gz` >/dev/null - $READMAP $TMP/`basename $n .map.gz`.map - done -done - -loadkeys us - -rm -f $TMP/defkeymap* $TMP/ANSI* $TMP/lt.map - -(cd $TMP; $MAPSHDR *.map) > $TMP/hdr -cat $TMP/hdr $TMP/*.map | gzip -9 > $OUTPUT -rm -rf $TMP -- cgit