blob: 497877c81390199391d11b5204dcf8ba8f67b2c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
--- modules/dynamic_link/macros/ilib_gen_Make_unix.sci.orig 2010-11-24 00:50:36.000000000 -0800
+++ modules/dynamic_link/macros/ilib_gen_Make_unix.sci 2010-12-15 05:04:30.000000000 -0800
@@ -64,22 +64,7 @@
originPath = pwd();
linkBuildDir = TMPDIR;
commandpath = SCI+"/modules/dynamic_link/src/scripts";
- [fd,ierr] = mopen(commandpath+"/write.test","w+");
-
- if (ierr<>0) then
- writePerm=%F
- else
- writePerm=%T
- mclose(fd)
- mdelete(commandpath+"/write.test");
- end
-
- if (writePerm == %T & ( fileinfo(commandpath+"/Makefile.orig") == [] | fileinfo(commandpath+"/libtool") == [] )) then
- // We have write permission on the scilab tree, then generate the stuff into the directory in order to avoid the configure each time.
- generateConfigure(commandpath);
- end
-
-
+
// Copy files => linkBuildDir
chdir(linkBuildDir);
@@ -178,7 +163,7 @@
end
end
- if ldflags <> '' | cflags <> '' | fflags <> '' | cc <> '' | fileinfo(commandpath+"/Makefile.orig") == [] | fileinfo(commandpath+"/libtool") == [] then
+ if %T then
// Makefile.orig doesn't exists or may be invalid regarding the flags
// run the ./configure with the flags
@@ -274,4 +259,4 @@
end
endfunction
-//=============================================================================
\ No newline at end of file
+//=============================================================================
|