summaryrefslogtreecommitdiffstats
path: root/genext.c
diff options
context:
space:
mode:
authorAndreas Eversberg2008-09-21 08:57:51 +0200
committerAndreas Eversberg2008-09-21 08:57:51 +0200
commit26c7e0d22ead805ce333ea4248c7311c1eda5de0 (patch)
treee69331f6a522c3d5a8522a21d07932024d974cce /genext.c
parentfixed some layer 2 link issues (diff)
downloadlcr-26c7e0d22ead805ce333ea4248c7311c1eda5de0.tar.gz
lcr-26c7e0d22ead805ce333ea4248c7311c1eda5de0.tar.xz
lcr-26c7e0d22ead805ce333ea4248c7311c1eda5de0.zip
Finished autoconf.
-> Commments are welcome. deleted: Makefile modified: Makefile.am new file: Makefile.in modified: README new file: aclocal.m4 modified: action_vbox.cpp modified: alawulaw.h modified: autogen.sh new file: config.h.in new file: configure modified: configure.ac modified: default/interface.conf modified: default/options.conf modified: dss1.cpp modified: dss1.h modified: extension.c modified: genext.c modified: interface.c modified: interface.h modified: mISDN.cpp modified: mISDN.h modified: main.h new file: mkinstalldirs modified: options.c modified: options.h modified: port.cpp modified: route.c modified: todo.txt modified: tones.c modified: vbox.cpp deleted: watch.c
Diffstat (limited to 'genext.c')
-rw-r--r--genext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/genext.c b/genext.c
index bd4226b..979a7c1 100644
--- a/genext.c
+++ b/genext.c
@@ -69,7 +69,7 @@ int main(int argc, char *argv[])
return(0);
}
- SPRINT(pathname, "%s/%s/%s", INSTALL_DATA, options.extensions_dir, argv[1]);
+ SPRINT(pathname, "%s/%s", EXTENSION_DATA, argv[1]);
if (mkdir(pathname, 0755) < 0)
{
if (errno == EEXIST)
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
ext.facility = 1;
write_extension(&ext, argv[1]);
- SPRINT(pathname, "%s/%s/%s/phonebook", INSTALL_DATA, options.extensions_dir, argv[1]);
+ SPRINT(pathname, "%s/%s/phonebook", EXTENSION_DATA, argv[1]);
if (!(fp = fopen(pathname, "w")))
{
PERROR("Failed to write phonebook example '%s'.\n", pathname);
@@ -112,7 +112,7 @@ int main(int argc, char *argv[])
fclose(fp);
}
- SPRINT(pathname, "%s/%s/%s/secrets", INSTALL_DATA, options.extensions_dir, argv[1]);
+ SPRINT(pathname, "%s/%s/secrets", EXTENSION_DATA, argv[1]);
if (!(fp = fopen(pathname, "w")))
{
PERROR("Failed to write secrets example '%s'.\n", pathname);
@@ -136,7 +136,7 @@ int main(int argc, char *argv[])
fprintf(fp, "021250993 manual blowfish 0x012345678\n");
fclose(fp);
}
- printf("Extension %s created at %s/%s/%s/.\n", argv[1], INSTALL_DATA, options.extensions_dir, argv[1]);
+ printf("Extension %s created at %s/%s/.\n", argv[1], EXTENSION_DATA, argv[1]);
return(0);
}