From: Eric S. Raymond Date: Mon, 29 Dec 2003 22:26:10 +0000 (+0000) Subject: RPM packaging improvements. X-Git-Tag: 1-4 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=79d25012aa6446bfa296310335658ece14acfdd1;p=showkey.git RPM packaging improvements. --- diff --git a/Makefile b/Makefile index 6eaf17b..d2c522e 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,6 @@ # showkey -- keystroke echoer -# Note: When the version changes, you also have to change the RPM spec file. -VERS=1.3 - -CFLAGS = -O +VERS=$(shell sed MANIFEST @@ -32,12 +29,3 @@ showkey-$(VERS).tar.gz: $(SOURCES) showkey.1 dist: showkey-$(VERS).tar.gz -RPMROOT=/usr/src/redhat -RPM = rpm -RPMFLAGS = -ba -rpm: dist - cp showkey-$(VERS).tar.gz $(RPMROOT)/SOURCES; - cp showkey.spec $(RPMROOT)/SPECS - cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) showkey.spec - cp $(RPMROOT)/RPMS/`arch|sed 's/i[4-9]86/i386/'`/showkey-$(VERS)*.rpm . - cp $(RPMROOT)/SRPMS/showkey-$(VERS)*.src.rpm . diff --git a/showkey.c b/showkey.c index 3aa937a..a169bb2 100644 --- a/showkey.c +++ b/showkey.c @@ -28,6 +28,7 @@ THE SOFTWARE.

* - fix for little-endian machines (version 1.1), 21 Oct 1996. * - cleanup and modern packaging (version 1.2), 1 Aug 2002. * - changed to use termios (version 1.3), 26 Aug 2002. + * See the RPM spec file changelog for more recent stuff. */ #include #include @@ -58,7 +59,7 @@ main() unsigned char c; unsigned int i, timeouts; - for (i = SIGHUP; i <= SIGPOLL; i++) + for (i = SIGHUP; i <= SIGIO; i++) (void) signal(c, catcher); // Get the state of the tty