1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/editors/fine/files/patch-ab
Chris Piazza 0c489cb2cb Update to fine 2.3 to unbreak this port.
Fine now works with qt2 so we use that to unbreak for systems without
at least egcs (old gcc built qt, new gcc needed to build fine, new gcc
is used for qt2).
1999-11-26 21:21:34 +00:00

56 lines
2.2 KiB
Plaintext

--- fine.C.orig Fri Oct 29 04:02:09 1999
+++ fine.C Fri Nov 26 13:12:09 1999
@@ -227,7 +227,7 @@
if (sc == NULL)
{ sc = new QBinaryTree<Configuration>(shortcut);
- sprintf(s,"%s/.fine/.editor",getenv("HOME"));
+ sprintf(s,"%s/editor",FINEDIR);
f = fopen(s,"rt");
if (f != NULL)
{ while (!feof(f))
@@ -236,7 +236,7 @@
}
fclose(f);
} else QMessageBox::warning(ed,"Couldn't find main configuration file",
- "Couldn't find .editor file in your .fine directory!\nTry to type: make install in the FINE distribution directory.");
+ "Couldn't find editor file in your .fine directory!\nTry to type: make install in the FINE distribution directory.");
}
sysmenu = new QMenuBar(this,"Editor System Main Menu");
@@ -430,7 +430,7 @@
if (ptrsc != NULL)
{ sh = ptrsc->Element();
s = new char[strlen(getenv("HOME"))+strlen(sh.filename)+200];
- sprintf(s,"%s/.fine/%s",getenv("HOME"),sh.filename);
+ sprintf(s,"%s/%s",FINEDIR,sh.filename);
w->editor()->readConfig(s);
delete [] s;
}
@@ -470,7 +470,7 @@
printf("\nTemplate file:%s, Compiler:%s, Previewer:%s",defsc.filename,
(defsc.compiler != NULL? defsc.compiler:"(null)"),
(defsc.previewer != NULL? defsc.previewer:"(null)"));
- sprintf(s,"%s/.fine/%s",getenv("HOME"),defsc.filename);
+ sprintf(s,"%s/%s",FINEDIR,defsc.filename);
ed->readConfig(s);
ed->repaint();
fflush(stdout);
@@ -517,14 +517,14 @@
{ if (ptrsc != NULL) Delete(sc,ptrsc->Element());
sc->Insert(*scw);
ptrsc = sc->Locate(*scw);
- sprintf(fns,"%s/.fine/.editor",getenv("HOME"));
+ sprintf(fns,"%s/editor",FINEDIR);
f = fopen(fns,"wt");
fprintf(f,"# This is file used by FINE editor\n");
fprintf(f,"# It contains information about all template files used by FINE\n");
saveConfigTree(f,sc->Left());
saveConfigTree(f,sc->Right());
fclose(f);
- sprintf(fns,"%s/.fine/%s",getenv("HOME"),scw->filename);
+ sprintf(fns,"%s/%s",FINEDIR,scw->filename);
f = fopen(fns,"wt");
fprintf(f,"# This is %s template file\n",scw->name);
fprintf(f,"\n# screen settings\n");