Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit edd2edb

Browse files
author
James Nugent
committed
Move and rename XML documentation
Documentation is now generated into /lib rather than /doc Documentation is now named as per the assembly
1 parent 014c735 commit edd2edb

File tree

3 files changed

+23
-30
lines changed

3 files changed

+23
-30
lines changed

README.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This is a GitHub mirror of the `Novell.Directory.LDAP` library which is primaril
44

55
This mirror hosts the sources for v2.1.11 for convenience, since it is otherwise necessary to use FTP to obtain the source code.
66

7+
Minor modifications have been made to the build script to output XML documentation files with more appropriate names.
8+
79
`Mono.Security.dll` is also included, taken unmodified from the v2.10 Windows binary release of Mono. The sources for this binary are available [here](https://github.com/mono/mono/tree/mono-2-10).
810

911
It is necessary to include the `Mono.Security.dll` assembly when running on .NET on Windows.

build.bat

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@echo off
22

33
if not exist lib md lib
4-
if not exist doc md doc
54

65
if exist lib\Novell.Directory.Ldap.dll del lib\Novell.Directory.Ldap.dll
76

@@ -12,7 +11,7 @@ resgen Novell.Directory.Ldap\Novell.Directory.Ldap.UtilClass\ExceptionMessages.t
1211

1312
echo "Generating lib\Novell.Directory.Ldap.dll.."
1413

15-
csc /noconfig /w:1 /r:System.dll /target:library /resource:lib\ResultCodeMessages.resources /resource:lib\ExceptionMessages.resources /doc:doc\comments.xml /out:lib\Novell.Directory.Ldap.dll /recurse:Novell.Directory.Ldap\*.cs
14+
csc /noconfig /w:1 /r:System.dll /target:library /resource:lib\ResultCodeMessages.resources /resource:lib\ExceptionMessages.resources /doc:lib\Novell.Directory.Ldap.xml /out:lib\Novell.Directory.Ldap.dll /recurse:Novell.Directory.Ldap\*.cs
1615

1716
del lib\ResultCodeMessages.resources
18-
del lib\ExceptionMessages.resources
17+
del lib\ExceptionMessages.resources

build.sh

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@
22
which mcs > /dev/null 2>&1
33
if [ $? != 0 ]
44
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;
77
fi
88

99
if [ -d `pwd`/lib ]
1010
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...."
1912
if [ -f `pwd`/lib/Novell.Directory.Ldap.dll ]
2013
then
2114
echo ""
@@ -27,32 +20,31 @@ then
2720
else
2821
echo "Creating `pwd`/lib directory "
2922
mkdir -p `pwd`/lib
30-
mkdir -p `pwd`/doc
3123
fi
3224

3325
echo "Building resources..."
3426
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
3828

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
4234

4335
if [ $? -ne 0 ]
4436
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 " **************************************************************"
5345
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"
5648
fi
5749

5850
rm `pwd`/lib/ResultCodeMessages.resources

0 commit comments

Comments
 (0)