Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1574752
 поиск   регистрация   авторизация 
 
Группа :: Терминалы
Пакет: console-data

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: console-data-1999.08.29-alt-convkeys-cpp.patch


diff -ur console-data-1999.08.29~/console-data-cyrillic-0.0.4/local-scripts/convkeys console-data-1999.08.29/console-data-cyrillic-0.0.4/local-scripts/convkeys
--- console-data-1999.08.29~/console-data-cyrillic-0.0.5/local-scripts/convkeys	Mon Dec 11 19:59:04 2000
+++ console-data-1999.08.29/console-data-cyrillic-0.0.5/local-scripts/convkeys	Tue Apr 16 11:55:09 2002
@@ -49,6 +49,12 @@
 	exit 1
 fi
 
+CPP=/usr/bin/cpp
+if [ ! -x "$CPP" ]; then
+	echo "${0##*/}: $CPP not found"
+	exit 1
+fi
+
 {
 	echo "# This keymap is a result of a convertion done by a script."
 	echo "# Cyril Slobin's <slobin@iname.com> encoding tables from "
@@ -68,10 +74,10 @@
 			EOF
 			echo -n "COMM "
 			cat "$2" | sed -e 's/^#define //'
-		} | cpp | sed -e '1,2d' \
+		} | "$CPP" | sed -e '1,2d' \
 		| sed -e '/^COMM /!s/^/#define /' | sed -e 's/0x/ox/;t p;b;: p p;s/ox/ox00/'
 		cat "${3:--}" | sed -e 's/^#/COMM /' | sed -e ': b s/0x/ox/;t b'
-	} | cpp -traditional | sed -e ': b s/ox/0x/;t b' | sed -e 's/^#.*$//;s/^COMM /# /'
+	} | "$CPP" -traditional | sed -e ': b s/ox/0x/;t b' | sed -e 's/^#.*$//;s/^COMM /# /'
 } | cat --squeeze-blank \
 | if [[ -z "$4" ]]; then
 	cat
 
design & coding: Vladimir Lettiev aka crux © 2004-2005