svn commit: samba r9460 - in branches/SAMBA_4_0/source: pidl pidl/lib script

jelmer at samba.org jelmer at samba.org
Sun Aug 21 23:30:17 GMT 2005


Author: jelmer
Date: 2005-08-21 23:30:17 +0000 (Sun, 21 Aug 2005)
New Revision: 9460

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9460

Log:
- Move pidl to lib/. This fixes standalone installation of pidl. 
- Update the README
- Allow building the docs stand-alone

Added:
   branches/SAMBA_4_0/source/pidl/lib/Parse/
Removed:
   branches/SAMBA_4_0/source/pidl/Parse/
Modified:
   branches/SAMBA_4_0/source/pidl/
   branches/SAMBA_4_0/source/pidl/Makefile.PL
   branches/SAMBA_4_0/source/pidl/README
   branches/SAMBA_4_0/source/pidl/pidl
   branches/SAMBA_4_0/source/script/build_idl.sh


Changeset:

Property changes on: branches/SAMBA_4_0/source/pidl
___________________________________________________________________
Name: svn:ignore
   - *.pidl
blib
pm_to_blib

   + *.pidl
blib
pm_to_blib
Makefile
Makefile.old


Modified: branches/SAMBA_4_0/source/pidl/Makefile.PL
===================================================================
--- branches/SAMBA_4_0/source/pidl/Makefile.PL	2005-08-21 23:17:35 UTC (rev 9459)
+++ branches/SAMBA_4_0/source/pidl/Makefile.PL	2005-08-21 23:30:17 UTC (rev 9460)
@@ -1,10 +1,9 @@
 use ExtUtils::MakeMaker;
 WriteMakefile(
     'NAME'	=> 'Parse::Pidl',
-    'VERSION_FROM' => 'Parse/Pidl.pm',
+    'VERSION_FROM' => 'lib/Parse/Pidl.pm',
 	'EXE_FILES' => [ 'pidl' ],
-	'PMLIBDIRS' => [ 'Parse' ],
-	'C' => [],
+	'PMLIBDIRS' => [ 'lib' ],
 	'test' => { 'TESTS' => 'tests/*.pl' }
 );
 
@@ -12,5 +11,15 @@
 <<'EOT';
 Parse/Pidl/IDL.pm :: idl.yp
 	yapp -s -m 'Parse::Pidl::IDL' -o 'Parse/Pidl/IDL.pm' idl.yp
+
+doc: pidl.1 pidl.1.html
+
+XSLTPROC=xsltproc
+
+%.1: %.1.xml
+	test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+
+%.html: %.xml
+	test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
 EOT
 }

Modified: branches/SAMBA_4_0/source/pidl/README
===================================================================
--- branches/SAMBA_4_0/source/pidl/README	2005-08-21 23:17:35 UTC (rev 9459)
+++ branches/SAMBA_4_0/source/pidl/README	2005-08-21 23:30:17 UTC (rev 9460)
@@ -1,3 +1,5 @@
+Introduction:
+=============
 This directory contains the source code of the pidl (Perl IDL) 
 compiler. 
 
@@ -13,11 +15,26 @@
 (which one depends on the options given on the command-line). Here is 
 a list of current backends:
 
+Standalone installation:
+========================
+Run Makefile.PL to generate the Makefile. 
+
+Then run "make install" (as root) to install.
+
+Documentation:
+==============
+Run 'make doc' to generate the manpage and a HTML version of the manpage.
+This requires the xsltproc utility to be installed.
+
+Internals overview:
+===================
+
 -- Generic --
 Parse::Pidl::Dump - Converts the parse tree back to an IDL file
 Parse::Pidl::Samba::Header - Generates header file with data structures defined in IDL file
 Parse::Pidl::NDR - Generates intermediate datastructures for use by NDR parses/generators
 Parse::Pidl::ODL - Generates IDL structures from ODL structures for use in the NDR parser generator
+Parse::Pidl::Test - Utility functions for use in pidl's testsuite
 
 -- Samba NDR --
 Parse::Pidl::Samba::NDR::Client - Generates client call functions in C using the NDR parser
@@ -25,6 +42,7 @@
 Parse::Pidl::Samba::NDR::Header - Generates a header file with NDR-parser specific data
 Parse::Pidl::Samba::NDR::Parser - Generates pull/push functions for parsing NDR
 Parse::Pidl::Samba::NDR::Server - Generates server side implementation in C
+Parse::Pidl::Samba::TDR - Parser generator for the "Trivial Data Representation"
 Parse::Pidl::Samba::Template - Generates stubs in C for server implementation
 Parse::Pidl::Samba::EJS - Generates bindings for Embedded JavaScript (EJS)
 Parse::Pidl::Samba::EJSHeader - Generates headers for the EJS bindings

Copied: branches/SAMBA_4_0/source/pidl/lib/Parse (from rev 9459, branches/SAMBA_4_0/source/pidl/Parse)

Modified: branches/SAMBA_4_0/source/pidl/pidl
===================================================================
--- branches/SAMBA_4_0/source/pidl/pidl	2005-08-21 23:17:35 UTC (rev 9459)
+++ branches/SAMBA_4_0/source/pidl/pidl	2005-08-21 23:30:17 UTC (rev 9460)
@@ -9,6 +9,7 @@
 
 use strict;
 
+use lib "lib";
 use Getopt::Long;
 use File::Basename;
 use Parse::Pidl;

Modified: branches/SAMBA_4_0/source/script/build_idl.sh
===================================================================
--- branches/SAMBA_4_0/source/script/build_idl.sh	2005-08-21 23:17:35 UTC (rev 9459)
+++ branches/SAMBA_4_0/source/script/build_idl.sh	2005-08-21 23:30:17 UTC (rev 9460)
@@ -6,7 +6,7 @@
 
 [ -d librpc/gen_ndr ] || mkdir -p librpc/gen_ndr || exit 1
 
-PIDL="$PERL -Ipidl ./pidl/pidl --outputdir librpc/gen_ndr --parse --ndr-header --header --ndr-parser --server --client --dcom-proxy --com-header --swig --odl --ejs $PIDL_EXTRA_ARGS"
+PIDL="$PERL ./pidl/pidl --outputdir librpc/gen_ndr --parse --ndr-header --header --ndr-parser --server --client --dcom-proxy --com-header --swig --odl --ejs $PIDL_EXTRA_ARGS"
 
 if [ x$FULLBUILD = xFULL ]; then
       echo Rebuilding all idl files in librpc/idl



More information about the samba-cvs mailing list