]> andersk Git - moira.git/commitdiff
Move .dc files to .pc
authordanw <danw>
Wed, 29 Jan 1997 22:57:31 +0000 (22:57 +0000)
committerdanw <danw>
Wed, 29 Jan 1997 22:57:31 +0000 (22:57 +0000)
update Imakefile and awk scripts for dc->pc switch

backup/Imakefile
backup/db2bkup.awk
backup/db2rest.awk
backup/dump_db.pc [moved from backup/dump_db.dc with 100% similarity]
backup/dumprest.pc [moved from backup/dumprest.dc with 100% similarity]
backup/rest_db.pc [moved from backup/rest_db.dc with 100% similarity]

index 51fcdd52251565861989a559a7c5c9e120807bcc..b86a0e2f2e558d01fc2ec5a659228bc1a9bc04a2 100644 (file)
@@ -10,8 +10,8 @@
 
 SRCS= dump_db.h dump_db.c bkup1.c bkup.c dumprest.c rest_db.c rest1.c rest.c
 SRCDIR=${SRCTOP}/backup
-CODE= db2bkup.awk db2rest.awk dump_db.h dump_db.dc dumprest.dc \
-       nightly.sh report.sh rest_db.dc
+CODE= db2bkup.awk db2rest.awk dump_db.h dump_db.pc dumprest.pc \
+       nightly.sh report.sh rest_db.pc
 BOBJS= dump_db.o bkup1.o bkup.o dumprest.o 
 ROBJS= rest_db.o rest1.o rest.o dumprest.o
 sqlrule()
@@ -19,14 +19,14 @@ sqlrule()
 program(mrbackup, ${BOBJS},${MR_LIBDEP}, ${CLIBS} ${SQL_LIB}, ${PROGDIR})
 program(mrrestore, ${ROBJS},${MR_LIBDEP}, ${CLIBS} ${SQL_LIB}, ${PROGDIR})
 
-bkup.dc: ../db/schema.sql db2bkup.awk
-       awk -f db2bkup.awk < ../db/schema.sql > bkup.dc
-bkup1.dc: bkup.dc
-rest.dc: ../db/schema.sql db2rest.awk
-       awk -f db2rest.awk < ../db/schema.sql > rest.dc
-rest1.dc: rest.dc
+bkup.pc: ../db/schema.sql db2bkup.awk
+       awk -f db2bkup.awk < ../db/schema.sql > bkup.pc
+bkup1.pc: bkup.pc
+rest.pc: ../db/schema.sql db2rest.awk
+       awk -f db2rest.awk < ../db/schema.sql > rest.pc
+rest1.pc: rest.pc
 clean::
-       $(RM) bkup.dc bkup1.dc rest.dc rest1.dc
+       $(RM) bkup.pc bkup1.pc rest.pc rest1.pc
 sqlfile(dump_db)
 sqlfile(rest_db)
 sqlfile(dumprest)
index db05702311d2625c5b29c16f6a526c5fcb09b340..514bf083a935b0370117498df665edc65dd68faf 100644 (file)
@@ -14,18 +14,18 @@ BEGIN {
        print "#include \"dump_db.h\"";
        print "#define dump_date dump_str\n";
 
-       print "/* This file automatically generated */" > "bkup1.dc";
-       print "/* Do not edit */\n" >> "bkup1.dc";
-       print "#include <stdio.h>" >> "bkup1.dc";
-       print "FILE *open_file();" >> "bkup1.dc";
-       print "do_backups(prefix)\n\tchar *prefix;\n{" >> "bkup1.dc";
+       print "/* This file automatically generated */" > "bkup1.pc";
+       print "/* Do not edit */\n" >> "bkup1.pc";
+       print "#include <stdio.h>" >> "bkup1.pc";
+       print "FILE *open_file();" >> "bkup1.pc";
+       print "do_backups(prefix)\n\tchar *prefix;\n{" >> "bkup1.pc";
 }
 
 $1=="#" { next; }
 
 /^create/ { 
        printf "dump_%s(f)\nFILE *f;\n{\n\tEXEC SQL BEGIN DECLARE SECTION;\n", $3;
-       printf "\tdump_%s(open_file(prefix, \"%s\"));\n", $3, $3 >> "bkup1.dc";
+       printf "\tdump_%s(open_file(prefix, \"%s\"));\n", $3, $3 >> "bkup1.pc";
 
        tablename = $3;
        rangename = substr(tablename, 1, 1);
@@ -97,5 +97,5 @@ NF>=2 {
 
 END {
        print "/* All done */";
-       print "}" >> "bkup1.dc";
+       print "}" >> "bkup1.pc";
 }
index 37531a4e3032813639f6adc760bb911135fdcd22..521d417ff67584348417a293ac2f34d90dd372a3 100644 (file)
@@ -13,11 +13,11 @@ BEGIN {
        print "EXEC SQL INCLUDE sqlca;";
        print "void parse_nl(), parse_str(FILE *, char *, int), parse_sep();\n";
 
-       print "/* This file automatically generated */" > "rest1.dc";
-       print "/* Do not edit */\n" >> "rest1.dc";
-       print "#include <stdio.h>" >> "rest1.dc";
-       print "FILE *open_file();" >> "rest1.dc";
-       print "do_restores(prefix)\n\tchar *prefix;\n{" >> "rest1.dc";
+       print "/* This file automatically generated */" > "rest1.pc";
+       print "/* Do not edit */\n" >> "rest1.pc";
+       print "#include <stdio.h>" >> "rest1.pc";
+       print "FILE *open_file();" >> "rest1.pc";
+       print "do_restores(prefix)\n\tchar *prefix;\n{" >> "rest1.pc";
 }
 
 $1=="#" { next; }
@@ -25,7 +25,7 @@ $1=="#" { next; }
 /^create/ {
        printf "restore_%s(f)\nFILE *f;\n", $3;
        print "{\n\tEXEC SQL BEGIN DECLARE SECTION;";
-       printf "\trestore_%s(open_file(prefix, \"%s\"));\n", $3, $3 >> "rest1.dc";
+       printf "\trestore_%s(open_file(prefix, \"%s\"));\n", $3, $3 >> "rest1.pc";
 
        tablename = $3;
        rangename = substr(tablename, 1, 1);
@@ -105,5 +105,5 @@ NF >= 2 {
 
 END {
        print "/* All done */";
-       print "}" >> "rest1.dc";
+       print "}" >> "rest1.pc";
 }
similarity index 100%
rename from backup/dump_db.dc
rename to backup/dump_db.pc
similarity index 100%
rename from backup/dumprest.dc
rename to backup/dumprest.pc
similarity index 100%
rename from backup/rest_db.dc
rename to backup/rest_db.pc
This page took 0.274819 seconds and 5 git commands to generate.