diff --git a/sbin/renram5/Makefile b/sbin/renram5/Makefile index cb70d36..7945162 100644 --- a/sbin/renram5/Makefile +++ b/sbin/renram5/Makefile @@ -1,12 +1,21 @@ -CFLAGS = -w -O -LDFLAGS = +# +# $Id: Makefile,v 1.2 1998/03/31 03:29:04 gdr-ftp Exp $ +# -renram5: renram5.o renram5.r - $(CC) $(LDFLAGS) renram5.o $(LDLIBS) -o $@ - copyfork renram5.r renram5 -r +PROG = renram5 +STACK = 768 +BINDIR = /sbin +CUSTOM_RELEASE = true -clean: - $(RM) -f renram5.o renram5.root renram5.r +.INCLUDE: /src/gno/prog.mk -clobber: clean - $(RM) -f renram5 +release: $(OBJ_DIR)$(PROG) $(PROG).8 $(DESC) + $(INSTALL) -d $(RELBIN) $(RELMAN)/man8 $(DESC_DIR) + $(INSTALL) $(OBJ_DIR)$(PROG) $(RELBIN) + $(INSTALL) $(PROG).8 $(RELMAN)/man8 + $(DESCU) -o $(DESC_SRC) $(DESC_SRC) $(DESC) + +install: $(OBJ_DIR)$(PROG) $(PROG).8 + $(INSTALL) -d $(BINDIR) $(MANDIR)/man8 + $(INSTALL) $(OBJ_DIR)$(PROG) $(BINDIR) + $(INSTALL) $(PROG).8 $(MANDIR)/man8 diff --git a/sbin/renram5/README b/sbin/renram5/README index ed6ad28..8846142 100644 --- a/sbin/renram5/README +++ b/sbin/renram5/README @@ -13,4 +13,4 @@ will always prompt you when it is done ... most annoying. This program is in the public domain. -Devin Reade January 1996. +Devin Reade January 1996. diff --git a/sbin/renram5/renram5.8 b/sbin/renram5/renram5.8 index 14817b7..cd97adc 100644 --- a/sbin/renram5/renram5.8 +++ b/sbin/renram5/renram5.8 @@ -1,4 +1,4 @@ -.\" $Id: renram5.8,v 1.2 1997/09/21 22:27:40 gdr Exp $ +.\" $Id: renram5.8,v 1.3 1998/03/31 03:29:06 gdr-ftp Exp $ .\" .TH RENRAM5 8 "3 August 1997" GNO "System Administration" .SH NAME @@ -43,10 +43,10 @@ program, no command line arguments are possible. .IP \fB-d\fP Enable debugging information. .SH AUTHOR -Devin Reade, +Devin Reade, .LP This program is in the public domain. .LP This program contains material from the ORCA/C Run-Time -Libraries, copyright 1987-1996 by Byte Words, Inc. +Libraries, copyright 1987-1997 by Byte Words, Inc. Used with permission. diff --git a/sbin/renram5/renram5.c b/sbin/renram5/renram5.c index 80a2d61..d267b50 100644 --- a/sbin/renram5/renram5.c +++ b/sbin/renram5/renram5.c @@ -18,11 +18,13 @@ * Written by Devin Reade January 1996. * This program is placed in the public domain. * - * $Id: renram5.c,v 1.2 1997/09/21 22:27:40 gdr Exp $ + * $Id: renram5.c,v 1.3 1998/03/31 03:29:07 gdr-ftp Exp $ * * This file is formatted with tab tops every 8 columns. */ +#define __USE_DYNAMIC_GSSTRING__ /* dynamic GS/OS strings */ + #include #include #include @@ -31,6 +33,9 @@ #include #include #include +#ifdef __GNO__ +#include +#endif #ifndef P_tmpdir #define P_tmpdir "/tmp" @@ -39,9 +44,6 @@ #define OLD_TMP "/RAM5" #define NEW_TMP P_tmpdir -extern GSString255Ptr __C2GSMALLOC(char *); -extern int _mapErr(int); - void usage(char *progname) { printf("Usage: %s [-d] [oldvolume [newvolume]]\n",progname); printf("\toldvolume defaults to %s\n",OLD_TMP); @@ -60,7 +62,10 @@ int main (int argc, char **argv) { ChangePathRecGS pathrec; char *file1, *file2; int i, filecount, debug; - + +#ifdef __GNO__ + __REPORT_STACK(); +#endif filecount=0; debug=0; @@ -102,7 +107,7 @@ int main (int argc, char **argv) { */ devrec.pCount = 2; - if ((devrec.devName = (GSString32Ptr) __C2GSMALLOC(file2)) == NULL) { + if ((devrec.devName = __C2GSMALLOC(file2)) == NULL) { perror("couldn't duplicate destination volume name"); exit(1); } diff --git a/sbin/renram5/renram5.desc b/sbin/renram5/renram5.desc index d398b76..04a6ab0 100644 --- a/sbin/renram5/renram5.desc +++ b/sbin/renram5/renram5.desc @@ -2,9 +2,8 @@ Name: renram5 Version: 1.0.1 (3 Aug 97) Shell: ORCA/Shell, GNO/ME Author: Devin Reade -Contact: gdr@myrias.ab.ca +Contact: gdr@trenco.gno.org Where: /usr/sbin -FTP: ftp.cco.caltech.edu, grind.isca.uiowa.edu - - Renames /RAM5 to /tmp on boot. +FTP: ftp.gno.org, ftp.cco.caltech.edu, grind.isca.uiowa.edu +Renames /RAM5 to /tmp on boot. diff --git a/sbin/renram5/renram5.rez b/sbin/renram5/renram5.rez index 072edee..215b7c2 100644 --- a/sbin/renram5/renram5.rez +++ b/sbin/renram5/renram5.rez @@ -1,8 +1,9 @@ /* - * $Id: renram5.rez,v 1.2 1997/09/21 22:27:40 gdr Exp $ + * $Id: renram5.rez,v 1.3 1998/03/31 03:29:10 gdr-ftp Exp $ */ #include "Types.Rez" +#include "/src/gno/build.tools/builddate.rez" resource rVersion (0x1, purgeable3, nocrossbank) { @@ -10,9 +11,9 @@ resource rVersion (0x1, purgeable3, nocrossbank) { release, /* development|alpha|beta|final|release */ 0 /* non-final release number */ }, - verBritain, /* close enough */ + verUS, "renram5", "Rename /RAM5 at boot time.\n" "Devin Reade \n" - "Canada" + BUILD_DATE };