|
2 | 2 | which mcs > /dev/null 2>&1
|
3 | 3 | if [ $? != 0 ]
|
4 | 4 | then
|
5 |
| - echo "Unable to find C# compiler i.e mcs in the PATH." |
6 |
| - exit -1; |
| 5 | + echo "Unable to find C# compiler i.e mcs in the PATH." |
| 6 | + exit -1; |
7 | 7 | fi
|
8 | 8 |
|
9 | 9 | if [ -d `pwd`/lib ]
|
10 | 10 | then
|
11 |
| - if [ -d `pwd`/doc ] |
12 |
| - then |
13 |
| - echo "" |
14 |
| - else |
15 |
| - mkdir -p `pwd`/doc |
16 |
| - fi |
17 |
| - |
18 |
| - echo -n "Checking for Old dll...." |
| 11 | + echo -n "Checking for Old dll...." |
19 | 12 | if [ -f `pwd`/lib/Novell.Directory.Ldap.dll ]
|
20 | 13 | then
|
21 | 14 | echo ""
|
|
27 | 20 | else
|
28 | 21 | echo "Creating `pwd`/lib directory "
|
29 | 22 | mkdir -p `pwd`/lib
|
30 |
| - mkdir -p `pwd`/doc |
31 | 23 | fi
|
32 | 24 |
|
33 | 25 | echo "Building resources..."
|
34 | 26 | echo ""
|
35 |
| - resgen Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ResultCodeMessages.txt lib/ResultCodeMessages.resources |
36 |
| - |
37 |
| - resgen Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ExceptionMessages.txt lib/ExceptionMessages.resources |
| 27 | +resgen Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ResultCodeMessages.txt lib/ResultCodeMessages.resources |
38 | 28 |
|
39 |
| - echo "Building Novell.Directory.Ldap.dll..." |
40 |
| - echo "" |
41 |
| -mcs -g /noconfig /target:library /r:mscorlib.dll /r:System.dll -resource:`pwd`/lib/ResultCodeMessages.resources -resource:`pwd`/lib/ExceptionMessages.resources -nowarn:0219,1570,1572,1574,1587 /doc:`pwd`/doc/comments.xml /out:`pwd`/lib/Novell.Directory.Ldap.dll @Novell.Directory.Ldap.dll.sources |
| 29 | +resgen Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ExceptionMessages.txt lib/ExceptionMessages.resources |
| 30 | + |
| 31 | +echo "Building Novell.Directory.Ldap.dll..." |
| 32 | +echo "" |
| 33 | +mcs -g /noconfig /target:library /r:mscorlib.dll /r:System.dll -resource:`pwd`/lib/ResultCodeMessages.resources -resource:`pwd`/lib/ExceptionMessages.resources -nowarn:0219,1570,1572,1574,1587 /doc:`pwd`/lib/Novell.Directory.Ldap.xml /out:`pwd`/lib/Novell.Directory.Ldap.dll @Novell.Directory.Ldap.dll.sources |
42 | 34 |
|
43 | 35 | if [ $? -ne 0 ]
|
44 | 36 | then
|
45 |
| -echo " **************************************************************" |
46 |
| -echo " If the error is \"Cannot find assembly mscorlib.dll\"" |
47 |
| -echo " It may be possible that you have installed an older version of mono" |
48 |
| -echo " In older version of mono mscorlib.dll was named as corlib.dll" |
49 |
| -echo " To solve this problem:" |
50 |
| -echo " Replace /r:mscorlib.dll in script with /r:corlib.dll and execute" |
51 |
| -echo " the build script once again" |
52 |
| -echo " **************************************************************" |
| 37 | + echo " **************************************************************" |
| 38 | + echo " If the error is \"Cannot find assembly mscorlib.dll\"" |
| 39 | + echo " It may be possible that you have installed an older version of mono" |
| 40 | + echo " In older version of mono mscorlib.dll was named as corlib.dll" |
| 41 | + echo " To solve this problem:" |
| 42 | + echo " Replace /r:mscorlib.dll in script with /r:corlib.dll and execute" |
| 43 | + echo " the build script once again" |
| 44 | + echo " **************************************************************" |
53 | 45 | else
|
54 |
| -echo "" |
55 |
| -echo "Novell.Directory.Ldap.dll generated in `pwd`/lib" |
| 46 | + echo "" |
| 47 | + echo "Novell.Directory.Ldap.dll generated in `pwd`/lib" |
56 | 48 | fi
|
57 | 49 |
|
58 | 50 | rm `pwd`/lib/ResultCodeMessages.resources
|
|
0 commit comments