- minor changes to fit into the GNO build

This commit is contained in:
gdr-ftp 1998-03-31 03:29:10 +00:00
parent b1128f4c89
commit f6f777413b
6 changed files with 40 additions and 26 deletions

View File

@ -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 PROG = renram5
$(CC) $(LDFLAGS) renram5.o $(LDLIBS) -o $@ STACK = 768
copyfork renram5.r renram5 -r BINDIR = /sbin
CUSTOM_RELEASE = true
clean: .INCLUDE: /src/gno/prog.mk
$(RM) -f renram5.o renram5.root renram5.r
clobber: clean release: $(OBJ_DIR)$(PROG) $(PROG).8 $(DESC)
$(RM) -f renram5 $(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

View File

@ -13,4 +13,4 @@ will always prompt you when it is done ... most annoying.
This program is in the public domain. This program is in the public domain.
Devin Reade <gdr@myrias.com> January 1996. Devin Reade <gdr@trenco.gno.org> January 1996.

View File

@ -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" .TH RENRAM5 8 "3 August 1997" GNO "System Administration"
.SH NAME .SH NAME
@ -43,10 +43,10 @@ program, no command line arguments are possible.
.IP \fB-d\fP .IP \fB-d\fP
Enable debugging information. Enable debugging information.
.SH AUTHOR .SH AUTHOR
Devin Reade, <gdr@myrias.com> Devin Reade, <gdr@trenco.gno.org>
.LP .LP
This program is in the public domain. This program is in the public domain.
.LP .LP
This program contains material from the ORCA/C Run-Time 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. Used with permission.

View File

@ -18,11 +18,13 @@
* Written by Devin Reade <gdr@myrias.com> January 1996. * Written by Devin Reade <gdr@myrias.com> January 1996.
* This program is placed in the public domain. * 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. * This file is formatted with tab tops every 8 columns.
*/ */
#define __USE_DYNAMIC_GSSTRING__ /* dynamic GS/OS strings */
#include <types.h> #include <types.h>
#include <gsos.h> #include <gsos.h>
#include <orca.h> #include <orca.h>
@ -31,6 +33,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#ifdef __GNO__
#include <gno/gno.h>
#endif
#ifndef P_tmpdir #ifndef P_tmpdir
#define P_tmpdir "/tmp" #define P_tmpdir "/tmp"
@ -39,9 +44,6 @@
#define OLD_TMP "/RAM5" #define OLD_TMP "/RAM5"
#define NEW_TMP P_tmpdir #define NEW_TMP P_tmpdir
extern GSString255Ptr __C2GSMALLOC(char *);
extern int _mapErr(int);
void usage(char *progname) { void usage(char *progname) {
printf("Usage: %s [-d] [oldvolume [newvolume]]\n",progname); printf("Usage: %s [-d] [oldvolume [newvolume]]\n",progname);
printf("\toldvolume defaults to %s\n",OLD_TMP); printf("\toldvolume defaults to %s\n",OLD_TMP);
@ -60,7 +62,10 @@ int main (int argc, char **argv) {
ChangePathRecGS pathrec; ChangePathRecGS pathrec;
char *file1, *file2; char *file1, *file2;
int i, filecount, debug; int i, filecount, debug;
#ifdef __GNO__
__REPORT_STACK();
#endif
filecount=0; filecount=0;
debug=0; debug=0;
@ -102,7 +107,7 @@ int main (int argc, char **argv) {
*/ */
devrec.pCount = 2; devrec.pCount = 2;
if ((devrec.devName = (GSString32Ptr) __C2GSMALLOC(file2)) == NULL) { if ((devrec.devName = __C2GSMALLOC(file2)) == NULL) {
perror("couldn't duplicate destination volume name"); perror("couldn't duplicate destination volume name");
exit(1); exit(1);
} }

View File

@ -2,9 +2,8 @@ Name: renram5
Version: 1.0.1 (3 Aug 97) Version: 1.0.1 (3 Aug 97)
Shell: ORCA/Shell, GNO/ME Shell: ORCA/Shell, GNO/ME
Author: Devin Reade Author: Devin Reade
Contact: gdr@myrias.ab.ca Contact: gdr@trenco.gno.org
Where: /usr/sbin Where: /usr/sbin
FTP: ftp.cco.caltech.edu, grind.isca.uiowa.edu FTP: ftp.gno.org, ftp.cco.caltech.edu, grind.isca.uiowa.edu
Renames /RAM5 to /tmp on boot.
Renames /RAM5 to /tmp on boot.

View File

@ -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 "Types.Rez"
#include "/src/gno/build.tools/builddate.rez"
resource rVersion (0x1, purgeable3, nocrossbank) { resource rVersion (0x1, purgeable3, nocrossbank) {
@ -10,9 +11,9 @@ resource rVersion (0x1, purgeable3, nocrossbank) {
release, /* development|alpha|beta|final|release */ release, /* development|alpha|beta|final|release */
0 /* non-final release number */ 0 /* non-final release number */
}, },
verBritain, /* close enough */ verUS,
"renram5", "renram5",
"Rename /RAM5 at boot time.\n" "Rename /RAM5 at boot time.\n"
"Devin Reade <gdr@myrias.com>\n" "Devin Reade <gdr@myrias.com>\n"
"Canada" BUILD_DATE
}; };