1 --- examples/empbuild/empbuild.e
2 +++ examples/empbuild/empbuild.e
4 * Functional description
6 **************************************/
11 strcpy (Db_name, argv[1]);
15 printf ("Turning forced writes off\n");
16 +char const * lp = getenv("DYLD_LIBRARY_PATH");
18 -sprintf (cmd, "gfix -write async %s", Db_name);
19 +sprintf (cmd, "DYLD_LIBRARY_PATH=%s gfix -write async %s", lp, Db_name);
22 printf ("Couldn't turn forced writes off\n");
26 printf ("Creating tables\n");
27 -sprintf (cmd, "isql %s -q -i empddl.sql", Db_name);
28 +sprintf (cmd, "DYLD_LIBRARY_PATH=%s isql %s -q -i empddl.sql", lp, Db_name);
31 printf ("Couldn't create tables \n");
35 printf ("Turning off indices and triggers \n");
36 -sprintf (cmd, "isql %s -i indexoff.sql", Db_name);
37 +sprintf (cmd, "DYLD_LIBRARY_PATH=%s isql %s -i indexoff.sql", lp, Db_name);
40 printf ("Couldn't turn off indices and triggers \n");
44 printf ("Loading column data\n");
45 -sprintf (cmd, "isql %s -i empdml.sql", Db_name);
46 +sprintf (cmd, "DYLD_LIBRARY_PATH=%s isql %s -i empdml.sql", lp, Db_name);
49 printf ("Couldn't load column data \n");
53 printf ("Turning on indices and triggers \n");
54 -sprintf (cmd, "isql %s -i indexon.sql", Db_name);
55 +sprintf (cmd, "DYLD_LIBRARY_PATH=%s isql %s -i indexon.sql", lp, Db_name);
58 printf ("Couldn't turn on indices and triggers \n");