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

Commit

Permalink
Move and rename XML documentation
Browse files Browse the repository at this point in the history
Documentation is now generated into /lib rather than /doc
Documentation is now named as per the assembly
  • Loading branch information
James Nugent committed Aug 12, 2013
1 parent 014c735 commit edd2edb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 30 deletions.
2 changes: 2 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This is a GitHub mirror of the `Novell.Directory.LDAP` library which is primaril

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

Minor modifications have been made to the build script to output XML documentation files with more appropriate names.

`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).

It is necessary to include the `Mono.Security.dll` assembly when running on .NET on Windows.
Expand Down
5 changes: 2 additions & 3 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@echo off

if not exist lib md lib
if not exist doc md doc

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

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

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

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
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

del lib\ResultCodeMessages.resources
del lib\ExceptionMessages.resources
del lib\ExceptionMessages.resources
46 changes: 19 additions & 27 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@
which mcs > /dev/null 2>&1
if [ $? != 0 ]
then
echo "Unable to find C# compiler i.e mcs in the PATH."
exit -1;
echo "Unable to find C# compiler i.e mcs in the PATH."
exit -1;
fi

if [ -d `pwd`/lib ]
then
if [ -d `pwd`/doc ]
then
echo ""
else
mkdir -p `pwd`/doc
fi

echo -n "Checking for Old dll...."
echo -n "Checking for Old dll...."
if [ -f `pwd`/lib/Novell.Directory.Ldap.dll ]
then
echo ""
Expand All @@ -27,32 +20,31 @@ then
else
echo "Creating `pwd`/lib directory "
mkdir -p `pwd`/lib
mkdir -p `pwd`/doc
fi

echo "Building resources..."
echo ""
resgen Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ResultCodeMessages.txt lib/ResultCodeMessages.resources

resgen Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ExceptionMessages.txt lib/ExceptionMessages.resources
resgen Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ResultCodeMessages.txt lib/ResultCodeMessages.resources

echo "Building Novell.Directory.Ldap.dll..."
echo ""
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
resgen Novell.Directory.Ldap/Novell.Directory.Ldap.Utilclass/ExceptionMessages.txt lib/ExceptionMessages.resources

echo "Building Novell.Directory.Ldap.dll..."
echo ""
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

if [ $? -ne 0 ]
then
echo " **************************************************************"
echo " If the error is \"Cannot find assembly mscorlib.dll\""
echo " It may be possible that you have installed an older version of mono"
echo " In older version of mono mscorlib.dll was named as corlib.dll"
echo " To solve this problem:"
echo " Replace /r:mscorlib.dll in script with /r:corlib.dll and execute"
echo " the build script once again"
echo " **************************************************************"
echo " **************************************************************"
echo " If the error is \"Cannot find assembly mscorlib.dll\""
echo " It may be possible that you have installed an older version of mono"
echo " In older version of mono mscorlib.dll was named as corlib.dll"
echo " To solve this problem:"
echo " Replace /r:mscorlib.dll in script with /r:corlib.dll and execute"
echo " the build script once again"
echo " **************************************************************"
else
echo ""
echo "Novell.Directory.Ldap.dll generated in `pwd`/lib"
echo ""
echo "Novell.Directory.Ldap.dll generated in `pwd`/lib"
fi

rm `pwd`/lib/ResultCodeMessages.resources
Expand Down

0 comments on commit edd2edb

Please sign in to comment.