diff options
author | skrll <skrll@pkgsrc.org> | 2000-06-07 19:05:20 +0000 |
---|---|---|
committer | skrll <skrll@pkgsrc.org> | 2000-06-07 19:05:20 +0000 |
commit | e6238c81bb4ba293ad0004a6b387ce2465cdd0eb (patch) | |
tree | 644570e657674fe7ae3062eb87debf35d7af5f77 /converters/bbcim/patches | |
parent | 41d88fc25425de66e42b7020998865728362a304 (diff) | |
download | pkgsrc-e6238c81bb4ba293ad0004a6b387ce2465cdd0eb.tar.gz |
Add bbcim.
bbcim is a BBC DFS file conversion utility that can convert between
standard archive format and xbeeb format and a lot more besides...
Diffstat (limited to 'converters/bbcim/patches')
-rw-r--r-- | converters/bbcim/patches/patch-aa | 16 | ||||
-rw-r--r-- | converters/bbcim/patches/patch-ab | 69 | ||||
-rw-r--r-- | converters/bbcim/patches/patch-ac | 25 | ||||
-rw-r--r-- | converters/bbcim/patches/patch-ad | 21 | ||||
-rw-r--r-- | converters/bbcim/patches/patch-ae | 25 | ||||
-rw-r--r-- | converters/bbcim/patches/patch-af | 132 | ||||
-rw-r--r-- | converters/bbcim/patches/patch-ag | 16 |
7 files changed, 304 insertions, 0 deletions
diff --git a/converters/bbcim/patches/patch-aa b/converters/bbcim/patches/patch-aa new file mode 100644 index 00000000000..b4ba8f296d1 --- /dev/null +++ b/converters/bbcim/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/06/07 19:05:21 skrll Exp $ + +--- bbc_crc.c.orig Fri Jul 4 08:33:20 1997 ++++ bbc_crc.c Sun Jun 4 16:57:24 2000 +@@ -68,9 +68,9 @@ + #ifdef NL + printf("Naam van het te controleren archief bestand?"); + #else +- printf("Name of the archive file to be checked?"); ++ printf("Name of the archive file to be checked?\n"); + #endif +- scanf("%50s", archivefile); ++ exit(1); + } else strcpy(archivefile, argv[2+options]); + */ + diff --git a/converters/bbcim/patches/patch-ab b/converters/bbcim/patches/patch-ab new file mode 100644 index 00000000000..abab8982aca --- /dev/null +++ b/converters/bbcim/patches/patch-ab @@ -0,0 +1,69 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/06/07 19:05:21 skrll Exp $ + +--- bbcim.c.orig Fri Jul 4 09:07:28 1997 ++++ bbcim.c Sun Jun 4 16:57:24 2000 +@@ -87,7 +87,6 @@ + + /*************** CONFIGURATION *********************/ + /* Comment out for english messages: */ +-#define NL + + #define UNIX_MKDIR + +@@ -280,9 +279,9 @@ + #ifdef NL + printf("Welke optie?"); + #else +- printf("Which option?"); ++ printf("Which option?\n"); + #endif +- scanf("%20s", optstring); options=0; ++ exit(1); + } + else strcpy(optstring, argv[1]); + +@@ -426,7 +425,7 @@ + #else + printf("Name of the bbc disk image?"); + #endif +- scanf("%50s", disk); ++ exit(1); + } else strcpy(disk, argv[1+options]); + + +@@ -475,7 +474,7 @@ + #ifdef NL + printf("Bestand %s is niet te openen\n\n",disk); + #else +- printf("File %s cannot be opened\n\n",disk); ++ printf("File %s cannot be opened\n",disk); + #endif + exit(1); + } +@@ -526,7 +525,7 @@ + #ifdef NL + printf("niets op het diskbeeld\n\n"); + #else +- printf("nothing on the diskimage\n\n"); ++ printf("nothing on the diskimage\n"); + #endif + + exit(1); +@@ -794,7 +793,7 @@ + " bij bestand %s\n\n", bbcfile_naam); + #else + printf("unexpected end of the diskimage" \ +- " at file %s\n\n", bbcfile_naam); ++ " at file %s\n", bbcfile_naam); + #endif + exit(1); + } +@@ -832,7 +831,7 @@ + " bij bestand %s\n\n", bbcfile_naam); + #else + printf("unexpected end of the diskimage" \ +- " at file %s\n\n", bbcfile_naam); ++ " at file %s\n", bbcfile_naam); + #endif + exit(1); + } diff --git a/converters/bbcim/patches/patch-ac b/converters/bbcim/patches/patch-ac new file mode 100644 index 00000000000..9ff20c425c3 --- /dev/null +++ b/converters/bbcim/patches/patch-ac @@ -0,0 +1,25 @@ +$NetBSD: patch-ac,v 1.1.1.1 2000/06/07 19:05:21 skrll Exp $ + +--- ddos2dfs.c.orig Mon Jun 30 11:32:25 1997 ++++ ddos2dfs.c Sun Jun 4 16:57:25 2000 +@@ -24,9 +24,9 @@ + #ifdef NL + printf("Naam van het DD bbc diskbeeld?"); + #else +- printf("Name of the DD bbc diskimage?"); ++ printf("Name of the DD bbc diskimage?\n"); + #endif +- scanf("%50s", disk); ++ exit(1); + } + else strcpy(disk, argv[2]); + +@@ -43,7 +43,7 @@ + #ifdef NL + printf("Bestand %s is niet te openen\n\n", disk); + #else +- printf("File %s cannot be opened\n\n", disk); ++ printf("File %s cannot be opened\n", disk); + #endif + exit(1); + } diff --git a/converters/bbcim/patches/patch-ad b/converters/bbcim/patches/patch-ad new file mode 100644 index 00000000000..490fda2f6d1 --- /dev/null +++ b/converters/bbcim/patches/patch-ad @@ -0,0 +1,21 @@ +$NetBSD: patch-ad,v 1.1.1.1 2000/06/07 19:05:21 skrll Exp $ + +--- diskb_add.c.orig Fri Jul 4 08:28:28 1997 ++++ diskb_add.c Sun Jun 4 16:57:25 2000 +@@ -27,7 +27,6 @@ + // #else + // printf("Name of the archive file to be added?"); + // #endif +-// scanf("%50s", addfile); + // } else {strcpy(addfile, argv[2+options]); options +=1;} + */ + +@@ -52,7 +51,7 @@ + #ifdef NL + printf("Er zijn al 31 bestanden op het diskbeeld\n\n"); + #else +- printf("There are already 31 files on the diskimage\n\n"); ++ printf("There are already 31 files on the diskimage\n"); + #endif + exit(1); + } diff --git a/converters/bbcim/patches/patch-ae b/converters/bbcim/patches/patch-ae new file mode 100644 index 00000000000..8dc9605baa3 --- /dev/null +++ b/converters/bbcim/patches/patch-ae @@ -0,0 +1,25 @@ +$NetBSD: patch-ae,v 1.1.1.1 2000/06/07 19:05:21 skrll Exp $ + +--- diskb_del.c.orig Mon Jun 30 11:34:34 1997 ++++ diskb_del.c Sun Jun 4 16:57:25 2000 +@@ -29,9 +29,9 @@ + /* #ifdef NL + printf("Naam van het bbc diskbeeld?"); + #else +- printf("Name of the bbc disk image?"); ++ printf("Name of the bbc disk image?\n"); + #endif +- scanf("%50s", disk); ++ exit(1); + } else {strcpy(disk, argv[1+options]); options++;} + */ + +@@ -55,7 +55,7 @@ + #ifdef NL + printf("niets op het diskbeeld\n\n"); + #else +- printf("Nothing on the diskimage\n\n"); ++ printf("Nothing on the diskimage\n"); + #endif + exit(1); + } diff --git a/converters/bbcim/patches/patch-af b/converters/bbcim/patches/patch-af new file mode 100644 index 00000000000..681d7c00da3 --- /dev/null +++ b/converters/bbcim/patches/patch-af @@ -0,0 +1,132 @@ +$NetBSD: patch-af,v 1.1.1.1 2000/06/07 19:05:21 skrll Exp $ + +--- intersplits.c.orig Mon Jun 30 11:36:21 1997 ++++ intersplits.c Sun Jun 4 16:57:25 2000 +@@ -9,7 +9,6 @@ + + void interss(int argc, char *argv[], int options) { + char side0[50], side1[50], interleaved[50]; +- char option2[5]; + unsigned char byte; + FILE *fp0, *fp1, *fp_inter; + int sec_per_track, track, i; +@@ -20,21 +19,26 @@ + #ifdef NL + printf("Single density (sd) of double density (dd)?"); + #else +- printf("Single density (sd) or double density (dd)?"); ++ printf("Single density (sd) or double density (dd)?\n"); + #endif +- scanf("%2s", option2); +- } else {strcpy(option2, argv[1+options]); options++;} +- +- if (!strcmp(option2, "dd")) dd=1; +- ++ exit(1); ++ } else { ++ if (!strcmp(argv[1+options], "dd")) { ++ dd=1; ++ options++; ++ } else if (!strcmp(argv[1+options], "sd")) { ++ dd=0; ++ options++; ++ } ++ } + + if ((argc-options)==1) { + #ifdef NL + printf("Naam van het diskbeeld voor zijde 0?"); + #else +- printf("Name of the disk image for side 0?"); ++ printf("Name of the disk image for side 0?\n"); + #endif +- scanf("%50s", side0); ++ exit(1); + } else strcpy(side0, argv[1+options]); + + +@@ -42,9 +46,9 @@ + #ifdef NL + printf("Naam van het diskbeeld voor zijde 1?"); + #else +- printf("Name of the disk image for side 1?"); ++ printf("Name of the disk image for side 1?\n"); + #endif +- scanf("%50s", side1); ++ exit(1); + } else strcpy(side1, argv[2+options]); + + +@@ -52,9 +56,9 @@ + #ifdef NL + printf("Naam van om-en-om beeld?"); + #else +- printf("Name of the interleaved diskimage?"); ++ printf("Name of the interleaved diskimage?\n"); + #endif +- scanf("%50s", interleaved); ++ exit(1); + } else strcpy(interleaved, argv[3+options]); + + +@@ -64,7 +68,7 @@ + #ifdef NL + printf("Bestand %s is niet te openen\n\n", side0); + #else +- printf("File %s cannot be opened\n\n", side0); ++ printf("File %s cannot be opened\n", side0); + #endif + exit(1); + } +@@ -76,7 +80,7 @@ + #ifdef NL + printf("Bestand %s is niet te openen\n\n", side1); + #else +- printf("File %s cannot be opened\n\n", side1); ++ printf("File %s cannot be opened\n", side1); + #endif + exit(1); + } +@@ -130,7 +134,6 @@ + + void splitds(int argc, char *argv[], int options) { + char side0[50], side1[50], interleaved[50]; +- char option2[5]; + unsigned char byte; + FILE *fp0, *fp1, *fp_inter; + int sec_per_track, track; +@@ -141,21 +144,26 @@ + #ifdef NL + printf("Single density (sd) of double density (dd)?"); + #else +- printf("Single density (sd) or double density (dd)?"); ++ printf("Single density (sd) or double density (dd)?\n"); + #endif +- scanf("%2s", option2); +- } else {strncpy(option2, argv[1+options],2); options++;} +- +- if (!strcmp(option2, "dd")) dd=1; +- ++ exit(1); ++ } else { ++ if (!strcmp(argv[1+options], "dd")) { ++ dd=1; ++ options++; ++ } else if (!strcmp(argv[1+options], "sd")) { ++ dd=0; ++ options++; ++ } ++ } + + if ((argc-options)==1) { + #ifdef NL + printf("Naam van de om-en-om diskdump?"); + #else +- printf("Name of the interleaved diskdump?"); ++ printf("Name of the interleaved diskdump?\n"); + #endif +- scanf("%50s", interleaved); ++ exit(1); + } else strcpy(interleaved, argv[1+options]); + + strcpy(side0, interleaved); diff --git a/converters/bbcim/patches/patch-ag b/converters/bbcim/patches/patch-ag new file mode 100644 index 00000000000..794012e47f5 --- /dev/null +++ b/converters/bbcim/patches/patch-ag @@ -0,0 +1,16 @@ +$NetBSD: patch-ag,v 1.1.1.1 2000/06/07 19:05:21 skrll Exp $ + +--- splits_cat.c.orig Fri Jul 4 08:05:18 1997 ++++ splits_cat.c Sun Jun 4 16:57:25 2000 +@@ -20,9 +20,9 @@ + #ifdef NL + printf("Naam van de te splitsen catalogus?"); + #else +- printf("Name of the catalogue to be split?"); ++ printf("Name of the catalogue to be split?\n"); + #endif +- scanf("%50s", cat_naam); ++ exit(1); + } else strcpy(cat_naam, argv[1+options]); + + |