let that shit become real manpages.

This commit is contained in:
espie 2005-09-05 13:48:52 +00:00
parent 1b289443b8
commit 5fb1cb99b5
15 changed files with 161 additions and 129 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.15 2004/11/21 22:53:59 espie Exp $
# $OpenBSD: Makefile,v 1.16 2005/09/05 13:48:52 espie Exp $
COMMENT= "character encoding converter generator package"
DISTNAME= trans120
PKGNAME= trans-1.20
PKGNAME= trans-1.20p0
CATEGORIES= converters russian
PERMIT_PACKAGE_CDROM= "no fee"

View File

@ -1,34 +0,0 @@
*** src/Makefile.orig Thu May 1 03:12:00 1997
--- src/Makefile Mon May 5 20:16:45 1997
***************
*** 33,46 ****
#
# CC = bcc
# CC = cl
! CC = gcc
#
# COPTS are the options (if any) for compilation
#
# COPTS = -c -ml
# COPTS = -c -AL
# COPTS = -c -DNO_STRUPR -O2
! COPTS = -c -ansi -Wall -DNO_STRDUP -DNO_STRUPR -O2
#
# LOPTS are linker options (if any)
#
--- 33,47 ----
#
# CC = bcc
# CC = cl
! # CC = gcc
#
# COPTS are the options (if any) for compilation
#
# COPTS = -c -ml
# COPTS = -c -AL
# COPTS = -c -DNO_STRUPR -O2
! # COPTS = -c -ansi -Wall -DNO_STRDUP -DNO_STRUPR -O2
! COPTS = ${CFLAGS} -c -Wall -DNO_STRUPR
#
# LOPTS are linker options (if any)
#

View File

@ -1,21 +0,0 @@
*** bin/trans.h.bak Thu May 1 03:12:00 1997
--- bin/trans.h Mon May 5 19:35:52 1997
***************
*** 81,87 ****
/*
if you want to use non-ANSI utime (), uncomment the following line
*/
! /* #define USE_UTIMBUF */
/*
if your compiler doesn't define utimbuf, ...
--- 81,89 ----
/*
if you want to use non-ANSI utime (), uncomment the following line
*/
! #ifdef __OpenBSD__
! #define USE_UTIMBUF
! #endif
/*
if your compiler doesn't define utimbuf, ...

View File

@ -1,30 +0,0 @@
*** src/datatype.h.orig Sat Jul 26 19:20:00 1997
--- src/datatype.h Wed Apr 29 00:53:42 1998
***************
*** 37,48 ****
typedef unsigned char uchar ;
! #ifdef __FreeBSD__
#include <sys/types.h>
#else
typedef unsigned short int ushort ;
#endif
typedef unsigned long int ulong ;
!
#endif
--- 37,49 ----
typedef unsigned char uchar ;
! #ifdef __OpenBSD__
#include <sys/types.h>
#else
typedef unsigned short int ushort ;
#endif
+ #ifndef __OpenBSD__
typedef unsigned long int ulong ;
! #endif
#endif

View File

@ -1,42 +0,0 @@
*** src/transce8.c.orig Sat Jul 26 19:20:00 1997
--- src/transce8.c Wed Apr 29 00:56:09 1998
***************
*** 296,302 ****
{
FILE *SRCfile = stdin ; /* Source default is stdin */
FILE *DSTfile = stdout ; /* Dest. default is stdout */
! char *TmpName = (char *) NULL ;
char *Help ;
int codes ; /* bad code flag */
int syntax ; /* return code for ScanFlags () */
--- 296,302 ----
{
FILE *SRCfile = stdin ; /* Source default is stdin */
FILE *DSTfile = stdout ; /* Dest. default is stdout */
! char TmpName[40];
char *Help ;
int codes ; /* bad code flag */
int syntax ; /* return code for ScanFlags () */
***************
*** 408,418 ****
f_date.modtime = f_stat.st_mtime ;
#endif
! TmpName = tmpnam ((char *) NULL) ;
! Help = strrchr (TmpName, '/') ;
! if (Help != (char *) NULL)
! TmpName = ++Help ;
! DSTfile = fopen (TmpName, "wb") ;
if (DSTfile == (FILE *) NULL)
{
fclose (SRCfile) ;
--- 408,416 ----
f_date.modtime = f_stat.st_mtime ;
#endif
! strcpy(TmpName, "trs.XXXXXXXXXX");
! Help = TmpName;
! DSTfile = fdopen ((int) mkstemp(TmpName), "wb") ;
if (DSTfile == (FILE *) NULL)
{
fclose (SRCfile) ;

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-bin_trans_h,v 1.1 2005/09/05 13:48:52 espie Exp $
--- bin/trans.h.orig Sun Jul 27 01:20:00 1997
+++ bin/trans.h Mon Sep 5 15:40:06 2005
@@ -81,7 +81,9 @@
/*
if you want to use non-ANSI utime (), uncomment the following line
*/
-/* #define USE_UTIMBUF */
+#ifdef __OpenBSD__
+#define USE_UTIMBUF
+#endif
/*
if your compiler doesn't define utimbuf, ...

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_Makefile,v 1.1 2005/09/05 13:48:52 espie Exp $
--- src/Makefile.orig Sun Jul 27 01:20:00 1997
+++ src/Makefile Mon Sep 5 15:40:06 2005
@@ -32,14 +32,15 @@ ALL = $(PROG1)$(EXE) $(PROG2)$(EXE)
#
# CC = bcc
# CC = cl
-CC = gcc
+# CC = gcc
#
# COPTS are the options (if any) for compilation
#
# COPTS = -c -ml
# COPTS = -c -AL
# COPTS = -c -DNO_STRUPR -O2
-COPTS = -c -ansi -Wall -DNO_STRDUP -DNO_STRUPR -O2
+# COPTS = -c -ansi -Wall -DNO_STRDUP -DNO_STRUPR -O2
+COPTS = ${CFLAGS} -c -Wall -DNO_STRUPR
#
# LOPTS are linker options (if any)
#

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_checkiso_man,v 1.1 2005/09/05 13:48:52 espie Exp $
--- src/checkiso.man.orig Mon Sep 5 15:41:06 2005
+++ src/checkiso.man Mon Sep 5 15:43:02 2005
@@ -1,6 +1,7 @@
-checkiso -- 8-bit Character Encoding Proofreader V1.20 1997-07-27
+CHECKISO(1) V1.20 1997-07-27
- checkiso
+Name
+ checkiso -- 8-bit Character Encoding Proofreader
Function
checkiso is a program that reads a Character Encoding Description

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_checkuni_man,v 1.1 2005/09/05 13:48:52 espie Exp $
--- src/checkuni.man.orig Mon Sep 5 15:41:06 2005
+++ src/checkuni.man Mon Sep 5 15:43:47 2005
@@ -1,6 +1,7 @@
-checkuni -- 8-bit Character Encoding Proofreader V1.20 1997-07-27
+CHECKUNI(1) V1.20 1997-07-27
- checkuni
+Name
+ checkuni -- 8-bit Character Encoding Proofreader
Function
checkuni is a program that reads a Character Encoding Description

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-src_datatype_h,v 1.1 2005/09/05 13:48:52 espie Exp $
--- src/datatype.h.orig Sun Jul 27 01:20:00 1997
+++ src/datatype.h Mon Sep 5 15:40:06 2005
@@ -37,12 +37,13 @@
typedef unsigned char uchar ;
- #ifdef __FreeBSD__
+ #ifdef __OpenBSD__
#include <sys/types.h>
#else
typedef unsigned short int ushort ;
#endif
+#ifndef __OpenBSD__
typedef unsigned long int ulong ;
-
+#endif
#endif

View File

@ -0,0 +1,27 @@
$OpenBSD: patch-src_transce8_c,v 1.1 2005/09/05 13:48:52 espie Exp $
--- src/transce8.c.orig Sun Jul 27 01:20:00 1997
+++ src/transce8.c Mon Sep 5 15:40:06 2005
@@ -296,7 +296,7 @@ int main
{
FILE *SRCfile = stdin ; /* Source default is stdin */
FILE *DSTfile = stdout ; /* Dest. default is stdout */
- char *TmpName = (char *) NULL ;
+ char TmpName[40];
char *Help ;
int codes ; /* bad code flag */
int syntax ; /* return code for ScanFlags () */
@@ -408,11 +408,9 @@ int main
f_date.modtime = f_stat.st_mtime ;
#endif
- TmpName = tmpnam ((char *) NULL) ;
- Help = strrchr (TmpName, '/') ;
- if (Help != (char *) NULL)
- TmpName = ++Help ;
- DSTfile = fopen (TmpName, "wb") ;
+ strcpy(TmpName, "trs.XXXXXXXXXX");
+ Help = TmpName;
+ DSTfile = fdopen ((int) mkstemp(TmpName), "wb") ;
if (DSTfile == (FILE *) NULL)
{
fclose (SRCfile) ;

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_transce8_man,v 1.1 2005/09/05 13:48:52 espie Exp $
--- src/transce8.man.orig Mon Sep 5 15:41:06 2005
+++ src/transce8.man Mon Sep 5 15:44:23 2005
@@ -1,6 +1,7 @@
-transce8 -- 8-bit Character Encoding Converter V1.13 1997-06-14
+TRANSCE8(1) V1.13 1997-06-14
- transce8
+Name
+ transce8 -- 8-bit Character Encoding Converter
Function
transce8 is a filter (reads stdin, writes stdout) which converts

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_transhtm_man,v 1.1 2005/09/05 13:48:52 espie Exp $
--- src/transhtm.man.orig Mon Sep 5 15:41:06 2005
+++ src/transhtm.man Mon Sep 5 15:44:57 2005
@@ -1,6 +1,6 @@
-transhtm -- 8-bit Character Encoding HTML Table V1.20 1997-07-27
-
- transhtm
+TRANSHTM(1) V1.20 1997-07-27
+Name
+ transhtm -- 8-bit Character Encoding HTML Table
Function
transhtm is a program that reads one Character Encoding Description

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_transiso_man,v 1.1 2005/09/05 13:48:52 espie Exp $
--- src/transiso.man.orig Mon Sep 5 15:41:06 2005
+++ src/transiso.man Mon Sep 5 15:45:26 2005
@@ -1,6 +1,7 @@
-transiso -- 8-bit Character Encoding Converter Generator V1.13 1997-06-14
+TRANSISO(1) V1.13 1997-06-14
- transiso
+Name
+ transiso -- 8-bit Character Encoding Converter Generator
Function
transiso is a program that reads two Character Encoding Descriptions

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_transtab_man,v 1.1 2005/09/05 13:48:52 espie Exp $
--- src/transtab.man.orig Mon Sep 5 15:41:06 2005
+++ src/transtab.man Mon Sep 5 15:45:51 2005
@@ -1,6 +1,7 @@
-transtab -- 8-bit Character Encoding Converter Generator V1.13 1997-06-14
+TRANSTAB(1) V1.13 1997-06-14
- transtab
+Name
+ transtab -- 8-bit Character Encoding Converter Generator
Function
transtab is a program that reads two Character Encoding Descriptions