diff options
author | trevor <trevor@FreeBSD.org> | 2001-06-04 13:28:35 +0000 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2001-06-04 13:28:35 +0000 |
commit | bfd0b44d656e4e2926e294cecaade3e58eda7369 (patch) | |
tree | 36bd8d488a4d8ecb49cf35c3819cc485c1f4878c /audio/csound/files | |
parent | d4fb7edfbbbca28010feb06473c12cdaa0ab1530 (diff) | |
download | FreeBSD-ports-bfd0b44d656e4e2926e294cecaade3e58eda7369.zip FreeBSD-ports-bfd0b44d656e4e2926e294cecaade3e58eda7369.tar.gz |
Update to 4.13. Use only regexes to patch getstring.c.
Diffstat (limited to 'audio/csound/files')
-rw-r--r-- | audio/csound/files/patch-getstring_c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/audio/csound/files/patch-getstring_c b/audio/csound/files/patch-getstring_c deleted file mode 100644 index ae1e6e6..0000000 --- a/audio/csound/files/patch-getstring_c +++ /dev/null @@ -1,49 +0,0 @@ ---- getstring.c.orig Sat May 13 15:52:27 2000 -+++ getstring.c Wed Oct 11 18:21:07 2000 -@@ -75,37 +75,37 @@ - #endif - if (db==NULL) - { -- strcpy(name, "csound.txt"); -- db = fopen("csound.txt", "rb"); -+ strcpy(name, "csound.dat"); -+ db = fopen("csound.dat", "rb"); - } - if (db == NULL && argv[0] != NULL) { - strcpy(name, argv[0]); - if ((path = strrchr(name, '/')) != NULL - || (path = strrchr(name, '\\')) != NULL) { -- strcpy(path+1, "csound.txt"); -+ strcpy(path+1, "csound.dat"); - db = fopen(name, "rb"); - } - } - if (db == NULL && (path=getenv("SSDIR")) != NULL) { -- sprintf(name, "%s/csound.txt", path); -+ sprintf(name, "%s/csound.dat", path); - db = fopen(name, "rb"); - } - if (db == NULL && (path=getenv("SFDIR")) != NULL) { -- sprintf(name, "%s/csound.txt", path); -+ sprintf(name, "%s/csound.dat", path); - db = fopen(name, "rb"); - } - if (db == NULL && (path=getenv("SADIR")) != NULL) { -- sprintf(name, "%s/csound.txt", path); -+ sprintf(name, "%s/csound.dat", path); - db = fopen(name, "rb"); - } - if (db == NULL) { -- strcpy(name, "/usr/local/lib/csound.txt"); -- db = fopen("/usr/local/lib/csound.txt", "rb"); -+ strcpy(name, "PREFIX/share/csound/csound.dat"); -+ db = fopen("PREFIX/share/csound/csound.dat", "rb"); - } - if (db == NULL) { - fprintf(stderr, "failed to find Strings DataBase file.\n" - "Use the CSSTRNGS environment variable or you must put the \n" -- "file \"csound.txt\" in your local, SFDIR, SADIR, SSDIR or \n" -+ "file \"csound.dat\" in your local, SFDIR, SADIR, SSDIR or \n" - "system directories for csound to work\n"); - exit(1); - } |