r9460: - Move pidl to lib/. This fixes standalone installation of pidl.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 21 Aug 2005 23:30:17 +0000 (23:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:34:17 +0000 (13:34 -0500)
- Update the README
- Allow building the docs stand-alone
(This used to be commit b56084ce251ab7a35dd1422f38de258e8e1e1477)

28 files changed:
source4/pidl/Makefile.PL
source4/pidl/README
source4/pidl/lib/Parse/Pidl.pm [moved from source4/pidl/Parse/Pidl.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Compat.pm [moved from source4/pidl/Parse/Pidl/Compat.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Dump.pm [moved from source4/pidl/Parse/Pidl/Dump.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm [moved from source4/pidl/Parse/Pidl/Ethereal/Conformance.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm [moved from source4/pidl/Parse/Pidl/Ethereal/NDR.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/IDL.pm [moved from source4/pidl/Parse/Pidl/IDL.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/NDR.pm [moved from source4/pidl/Parse/Pidl/NDR.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/ODL.pm [moved from source4/pidl/Parse/Pidl/ODL.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/COM/Header.pm [moved from source4/pidl/Parse/Pidl/Samba/COM/Header.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/COM/Proxy.pm [moved from source4/pidl/Parse/Pidl/Samba/COM/Proxy.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/COM/Stub.pm [moved from source4/pidl/Parse/Pidl/Samba/COM/Stub.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/EJS.pm [moved from source4/pidl/Parse/Pidl/Samba/EJS.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/EJSHeader.pm [moved from source4/pidl/Parse/Pidl/Samba/EJSHeader.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/Header.pm [moved from source4/pidl/Parse/Pidl/Samba/Header.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/NDR/Client.pm [moved from source4/pidl/Parse/Pidl/Samba/NDR/Client.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/NDR/Header.pm [moved from source4/pidl/Parse/Pidl/Samba/NDR/Header.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/NDR/Parser.pm [moved from source4/pidl/Parse/Pidl/Samba/NDR/Parser.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/NDR/Server.pm [moved from source4/pidl/Parse/Pidl/Samba/NDR/Server.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/SWIG.pm [moved from source4/pidl/Parse/Pidl/Samba/SWIG.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/TDR.pm [moved from source4/pidl/Parse/Pidl/Samba/TDR.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Samba/Template.pm [moved from source4/pidl/Parse/Pidl/Samba/Template.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Test.pm [moved from source4/pidl/Parse/Pidl/Test.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Typelist.pm [moved from source4/pidl/Parse/Pidl/Typelist.pm with 100% similarity]
source4/pidl/lib/Parse/Pidl/Util.pm [moved from source4/pidl/Parse/Pidl/Util.pm with 100% similarity]
source4/pidl/pidl
source4/script/build_idl.sh

index ae862bfdb59aa6a825eea7a719ff494cfbddcf2e..efa94dc06897eb456420849e7aab3664348f60e4 100755 (executable)
@@ -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 @@ sub MY::postamble {
 <<'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
 }
index e6768b69407529656383e7f695ce5158d5606418..8c709e5ecd5fe53cf67ebfd550cd97236a860231 100644 (file)
@@ -1,3 +1,5 @@
+Introduction:
+=============
 This directory contains the source code of the pidl (Perl IDL) 
 compiler. 
 
@@ -13,11 +15,26 @@ After a parse tree is present, pidl will call one of it's backends
 (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::SWIG - Generates SWIG interface files (.i)
 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
index ead70b1fad52f58d1e1b02a223cd87a430ac7b90..9daf60eff47977547246ea6fc472476065aa4c90 100755 (executable)
@@ -9,6 +9,7 @@
 
 use strict;
 
+use lib "lib";
 use Getopt::Long;
 use File::Basename;
 use Parse::Pidl;
index 13d1178c4ad4837ec95cd1a758d0f7b190e98713..a9bc752857e981f39b532a4773857168c2d5374c 100755 (executable)
@@ -6,7 +6,7 @@ PIDL_EXTRA_ARGS="$*"
 
 [ -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