rahulj 99/11/10 08:55:47
Modified: c/scripts packageBinaries.pl packageSources.pl
Log:
Removed references to XML4C
Revision Changes Path
1.2 +74 -74 xml-xerces/c/scripts/packageBinaries.pl
Index: packageBinaries.pl
===================================================================
RCS file: /home/cvs/xml-xerces/c/scripts/packageBinaries.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- packageBinaries.pl 1999/11/09 01:09:21 1.1
+++ packageBinaries.pl 1999/11/10 16:55:45 1.2
@@ -1,6 +1,6 @@
#!/usr/local/bin/perl5
-push(@INC, "/home/xml4c/bin", "/home/xml4c/bin/perl/perl-RUN/opt/perl5/lib",
"/Development2/cupert/bin/perl/perl-RUN/opt/perl5/lib",
"/Development/cupert/usr/local/perl/perl-RUN/opt/perl5/lib");
+push(@INC, "/home/xerces-c/bin",
"/home/xerces-c/bin/perl/perl-RUN/opt/perl5/lib",
"/Development2/cupert/bin/perl/perl-RUN/opt/perl5/lib",
"/Development/cupert/usr/local/perl/perl-RUN/opt/perl5/lib");
require "getopt.pl";
@@ -9,7 +9,7 @@
# Extract the source and target directories
&Getopt('sopcxmntr');
-$XML4CROOT = $opt_s;
+$XERCESCROOT = $opt_s;
$targetdir = $opt_o;
$ccompiler = $opt_c;
$cppcompiler = $opt_x;
@@ -19,7 +19,7 @@
$thread = $opt_r;
# Check for the environment variables and exit if error
-if (!length($XML4CROOT) || !length($targetdir) || (length($opt_h) > 0) ) {
+if (!length($XERCESCROOT) || !length($targetdir) || (length($opt_h) > 0) ) {
print ("Usage is: packageBinaries <options>\n");
print (" options are: -s <source_directory>\n");
print (" -o <target_directory>\n");
@@ -30,22 +30,22 @@
print (" -t <transcoder> can be 'icu' or
'native'\n");
print (" -r <thread option> can be 'pthread'
or 'dce' (only used on HP-11)\n");
print (" -h to get help on these commands\n");
- print ("Example: perl packageBinaries.pl -s\$HOME/xml4csrc3_0_0
-o\$HOME/xml4c3_0_0 -cgcc -xg++ -minmem -nfileonly -tnative\n");
+ print ("Example: perl packageBinaries.pl -s\$HOME/xerces-c_1_0_0d01
-o\$HOME/xerces-c_1_0_0d01bin -cgcc -xg++ -minmem -nfileonly -tnative\n");
exit(-1);
}
# Set up the environment variables for ICU
-# As of Version 3, ICU is not a required component of XML4C
+# As of Version 3, ICU is not a required component of XERCES-C
$ICUROOT = $ENV{'ICUROOT'};
if (!length($ICUROOT)) {
print "You have not defined your ICU install directory.\n";
- print "You must set an environment variable called ICUROOT to
package ICU with XML4C.\n";
- print "Proceeding to build XML4C without ICU...\n";
+ print "You must set an environment variable called ICUROOT to
package ICU with XERCES-C.\n";
+ print "Proceeding to build XERCES-C without ICU...\n";
}
# Check if the source directory exists or not
-if (!(-e $XML4CROOT)) {
- print ("The directory $XML4CROOT does not exist. Cannot proceed any
further.\n");
+if (!(-e $XERCESCROOT)) {
+ print ("The directory $XERCESCROOT does not exist. Cannot proceed
any further.\n");
exit(-1);
}
@@ -57,7 +57,7 @@
}
#Fix the backslashes on the Windows platform
-$XML4CROOT =~ s/\\/\//g;
+$XERCESCROOT =~ s/\\/\//g;
$ICUROOT =~ s/\\/\//g;
$targetdir =~ s/\\/\//g;
@@ -72,9 +72,9 @@
print "Packaging binaries for \`" . $platform . "\` in " . $targetdir . "
...\n";
#Construct the name of the zip file by extracting the last directory name
-$zipfiles = $targetdir;
-$zipfiles =~ m/\/(\w*$)/;
-$zipfiles = $1 . "/*";
+$zipfiles = $targetdir . "/*";
+# $zipfiles =~ m/\/(\w*$)/;
+# $zipfiles = $1 . "/*";
$buildmode = "Release"; # Universally, why do you want to package Debug
builds anyway?
@@ -138,61 +138,61 @@
}
#Clean up all the dependency files, causes problems for nmake
- chdir ("$XML4CROOT");
+ chdir ("$XERCESCROOT");
system ("del /s /f *.dep");
- # Make the XML4C dll
- chdir ("$XML4CROOT/Projects/Win32/VC6/IXXML4C3/IXXML4C3");
- print "Executing: nmake -f XXML4C3.mak clean CFG=\"IXXML4C3 -
$platformname $buildmode\"";
- system("nmake -f IXXML4C3.mak clean CFG=\"IXXML4C3 - $platformname
$buildmode\"");
- print "Executing: nmake -f IXXML4C3.mak all CFG=\"IXXML4C3 -
$platformname $buildmode\"";
- system("nmake -f IXXML4C3.mak all CFG=\"IXXML4C3 - $platformname
$buildmode\"");
+ # Make the XERCES-C dll
+ chdir ("$XERCESCROOT/Projects/Win32/VC6/xerces-all/XercesLib");
+ print "Executing: nmake -f XercesLib.mak clean CFG=\"XercesLib -
$platformname $buildmode\"";
+ system("nmake -f XercesLib.mak clean CFG=\"XercesLib - $platformname
$buildmode\"");
+ print "Executing: nmake -f XercesLib.mak all CFG=\"XercesLib -
$platformname $buildmode\"";
+ system("nmake -f XercesLib.mak all CFG=\"XercesLib - $platformname
$buildmode\"");
# Make the SAXCount sample
- chdir ("$XML4CROOT/Projects/Win32/VC6/IXXML4C3/SAXCount");
+ chdir ("$XERCESCROOT/Projects/Win32/VC6/xerces-all/SAXCount");
system "nmake -f SAXCount.mak clean CFG=\"SAXCount - $platformname
$buildmode\"";
print "Executing: nmake -f SAXCount.mak all CFG=\"SAXCount -
$platformname $buildmode\"";
system("nmake -f SAXCount.mak all CFG=\"SAXCount - $platformname
$buildmode\"");
# Make the SAXPrint sample
- chdir ("$XML4CROOT/Projects/Win32/VC6/IXXML4C3/SAXPrint");
+ chdir ("$XERCESCROOT/Projects/Win32/VC6/xerces-all/SAXPrint");
system "nmake -f SAXPrint.mak clean CFG=\"SAXPrint - $platformname
$buildmode\"";
print "Executing: nmake -f SAXPrint.mak all CFG=\"SAXPrint -
$platformname $buildmode\"";
system("nmake -f SAXPrint.mak all CFG=\"SAXPrint - $platformname
$buildmode\"");
# Make the DOMCount sample
- chdir ("$XML4CROOT/Projects/Win32/VC6/IXXML4C3/DOMCount");
+ chdir ("$XERCESCROOT/Projects/Win32/VC6/xerces-all/DOMCount");
system "nmake -f DOMCount.mak clean CFG=\"DOMCount - $platformname
$buildmode\"";
print "Executing: nmake -f DOMCount.mak all CFG=\"DOMCount -
$platformname $buildmode\"";
system("nmake -f DOMCount.mak all CFG=\"DOMCount - $platformname
$buildmode\"");
# Make the DOMPrint sample
- chdir ("$XML4CROOT/Projects/Win32/VC6/IXXML4C3/DOMPrint");
+ chdir ("$XERCESCROOT/Projects/Win32/VC6/xerces-all/DOMPrint");
system "nmake -f DOMPrint.mak clean CFG=\"DOMPrint - $platformname
$buildmode\"";
print "Executing: nmake -f DOMPrint.mak all CFG=\"DOMPrint -
$platformname $buildmode\"";
system("nmake -f DOMPrint.mak all CFG=\"DOMPrint - $platformname
$buildmode\"");
# Make the Redirect sample
- chdir ("$XML4CROOT/Projects/Win32/VC6/IXXML4C3/Redirect");
+ chdir ("$XERCESCROOT/Projects/Win32/VC6/xerces-all/Redirect");
system "nmake -f Redirect.mak clean CFG=\"Redirect - $platformname
$buildmode\"";
print "Executing: nmake -f Redirect.mak all CFG=\"Redirect -
$platformname $buildmode\"";
system("nmake -f Redirect.mak all CFG=\"Redirect - $platformname
$buildmode\"");
# Make the MemParse sample
- chdir ("$XML4CROOT/Projects/Win32/VC6/IXXML4C3/MemParse");
+ chdir ("$XERCESCROOT/Projects/Win32/VC6/xerces-all/MemParse");
system "nmake -f MemParse.mak clean CFG=\"MemParse - $platformname
$buildmode\"";
print "Executing: nmake -f MemParse.mak all CFG=\"MemParse -
$platformname $buildmode\"";
system("nmake -f MemParse.mak all CFG=\"MemParse - $platformname
$buildmode\"");
# Make the PParse sample
- chdir ("$XML4CROOT/Projects/Win32/VC6/IXXML4C3/PParse");
+ chdir ("$XERCESCROOT/Projects/Win32/VC6/xerces-all/PParse");
system "nmake -f PParse.mak clean CFG=\"PParse - $platformname
$buildmode\"";
print "Executing: nmake -f PParse.mak all CFG=\"PParse -
$platformname $buildmode\"";
system("nmake -f PParse.mak all CFG=\"PParse - $platformname
$buildmode\"");
# Make the StdInParse sample
- chdir ("$XML4CROOT/Projects/Win32/VC6/IXXML4C3/StdInParse");
+ chdir ("$XERCESCROOT/Projects/Win32/VC6/xerces-all/StdInParse");
system "nmake -f StdInParse.mak clean CFG=\"StdInParse -
$platformname $buildmode\"";
print "Executing: nmake -f StdInParse.mak all CFG=\"StdInParse -
$platformname $buildmode\"";
system("nmake -f StdInParse.mak all CFG=\"StdInParse - $platformname
$buildmode\"");
@@ -211,15 +211,15 @@
# Decide where you want the build copied from
chdir ($targetdir);
- $BUILDDIR = $XML4CROOT . "/Build/Win32/VC6/" . $buildmode;
+ $BUILDDIR = $XERCESCROOT . "/Build/Win32/VC6/" . $buildmode;
print "\nBuild is being copied from \'" . $BUILDDIR . "\'";
# Populate the include output directory
print ("\n\nCopying headers files ...\n");
- $xcopycommand = "xcopy $XML4CROOT\\src\\*.hpp $targetdir\\include";
+ $xcopycommand = "xcopy $XERCESCROOT\\src\\*.hpp $targetdir\\include";
$xcopycommand =~ s/\//\\/g;
system ("$xcopycommand /S /C /I /R");
- $xcopycommand = "xcopy $XML4CROOT\\src\\*.c $targetdir\\include";
+ $xcopycommand = "xcopy $XERCESCROOT\\src\\*.c $targetdir\\include";
$xcopycommand =~ s/\//\\/g;
system ("$xcopycommand /S /C /I /R");
@@ -236,7 +236,7 @@
system("cp -fv $ICUROOT/lib/$buildmode/icuuc.lib
$targetdir/lib");
system("cp -fv
$ICUROOT/source/tools/makeconv/$buildmode/makeconv.exe $targetdir/bin");
}
- system("cp -fv $BUILDDIR/IXXML4C3.lib $targetdir/lib");
+ system("cp -fv $BUILDDIR/xerces-c_1.lib $targetdir/lib");
# Copy the locale files
if (length($ICUROOT) > 0) {
@@ -246,23 +246,23 @@
# Populate the samples directory
print ("\n\nCopying sample files ...\n");
- system("cp -Rfv $XML4CROOT/samples/Projects/*
$targetdir/samples/Projects");
- system("cp -Rfv $XML4CROOT/samples/SAXCount/*
$targetdir/samples/SAXCount");
- system("cp -Rfv $XML4CROOT/samples/SAXPrint/*
$targetdir/samples/SAXPrint");
- system("cp -Rfv $XML4CROOT/samples/DOMCount/*
$targetdir/samples/DOMCount");
- system("cp -Rfv $XML4CROOT/samples/DOMPrint/*
$targetdir/samples/DOMPrint");
- system("cp -Rfv $XML4CROOT/samples/Redirect/*
$targetdir/samples/Redirect");
- system("cp -Rfv $XML4CROOT/samples/MemParse/*
$targetdir/samples/MemParse");
- system("cp -Rfv $XML4CROOT/samples/PParse/*
$targetdir/samples/PParse");
- system("cp -Rfv $XML4CROOT/samples/StdInParse/*
$targetdir/samples/StdInParse");
- system("cp -Rfv $XML4CROOT/samples/data/* $targetdir/samples/data");
+ system("cp -Rfv $XERCESCROOT/samples/Projects/*
$targetdir/samples/Projects");
+ system("cp -Rfv $XERCESCROOT/samples/SAXCount/*
$targetdir/samples/SAXCount");
+ system("cp -Rfv $XERCESCROOT/samples/SAXPrint/*
$targetdir/samples/SAXPrint");
+ system("cp -Rfv $XERCESCROOT/samples/DOMCount/*
$targetdir/samples/DOMCount");
+ system("cp -Rfv $XERCESCROOT/samples/DOMPrint/*
$targetdir/samples/DOMPrint");
+ system("cp -Rfv $XERCESCROOT/samples/Redirect/*
$targetdir/samples/Redirect");
+ system("cp -Rfv $XERCESCROOT/samples/MemParse/*
$targetdir/samples/MemParse");
+ system("cp -Rfv $XERCESCROOT/samples/PParse/*
$targetdir/samples/PParse");
+ system("cp -Rfv $XERCESCROOT/samples/StdInParse/*
$targetdir/samples/StdInParse");
+ system("cp -Rfv $XERCESCROOT/samples/data/*
$targetdir/samples/data");
# Populate the docs directory
print ("\n\nCopying documentation ...\n");
- system("cp -Rfv $XML4CROOT/doc/* $targetdir/doc");
- system("cp -Rfv $XML4CROOT/doc/apiDocs/* $targetdir/doc/apiDocs");
- system("cp $XML4CROOT/Readme.html $targetdir");
- system("cp $XML4CROOT/doc/license.html $targetdir");
+ system("cp -Rfv $XERCESCROOT/doc/* $targetdir/doc");
+ system("cp -Rfv $XERCESCROOT/doc/apiDocs/* $targetdir/doc/apiDocs");
+ system("cp $XERCESCROOT/Readme.html $targetdir");
+ system("cp $XERCESCROOT/doc/license.html $targetdir");
# Now package it all up using ZIP
chdir ("$targetdir/..");
@@ -359,13 +359,13 @@
}
# make the source files
- chdir ("$XML4CROOT/src");
+ chdir ("$XERCESCROOT/src");
system ("runConfigure -p$platform -c$opt_c -x$opt_x -m$opt_m
-n$opt_n -t$opt_t -r$opt_r");
system ("gmake");
# Now build the samples
- chdir ("$XML4CROOT/samples");
+ chdir ("$XERCESCROOT/samples");
system ("runConfigure -p$platform -c$opt_c -x$opt_x");
system ("gmake");
@@ -373,14 +373,14 @@
# Populate the include output directory
print ("\n\nCopying headers files ...\n");
- system("cp -Rf $XML4CROOT/src/sax/*.hpp $targetdir/include/sax");
- system("cp -Rf $XML4CROOT/src/framework/*.hpp
$targetdir/include/framework");
- system("cp -Rf $XML4CROOT/src/dom/DOM*.hpp $targetdir/include/dom");
- system("cp -Rf $XML4CROOT/src/internal/*.hpp
$targetdir/include/internal");
- system("cp -Rf $XML4CROOT/src/internal/*.c
$targetdir/include/internal");
- system("cp -Rf $XML4CROOT/src/parsers/*.hpp
$targetdir/include/parsers");
- system("cp -Rf $XML4CROOT/src/util/*.hpp $targetdir/include/util");
- system("cp -Rf $XML4CROOT/src/util/*.c $targetdir/include/util");
+ system("cp -Rf $XERCESCROOT/src/sax/*.hpp $targetdir/include/sax");
+ system("cp -Rf $XERCESCROOT/src/framework/*.hpp
$targetdir/include/framework");
+ system("cp -Rf $XERCESCROOT/src/dom/DOM*.hpp
$targetdir/include/dom");
+ system("cp -Rf $XERCESCROOT/src/internal/*.hpp
$targetdir/include/internal");
+ system("cp -Rf $XERCESCROOT/src/internal/*.c
$targetdir/include/internal");
+ system("cp -Rf $XERCESCROOT/src/parsers/*.hpp
$targetdir/include/parsers");
+ system("cp -Rf $XERCESCROOT/src/util/*.hpp $targetdir/include/util");
+ system("cp -Rf $XERCESCROOT/src/util/*.c $targetdir/include/util");
if (length($ICUROOT) > 0) {
print "\nInternational files are being copied from \'"
. $ICUROOT . "\'";
@@ -389,14 +389,14 @@
# Populate the binary output directory
print ("\n\nCopying binary outputs ...\n");
- system("cp -Rf $XML4CROOT/bin/* $targetdir/bin");
+ system("cp -Rf $XERCESCROOT/bin/* $targetdir/bin");
if (length($ICUROOT) > 0) {
system("cp -f $ICUROOT/source/tools/makeconv/makeconv
$targetdir/bin");
system("cp -f $ICUROOT/lib/libicu-uc.* $targetdir/lib");
}
- system("cp -f $XML4CROOT/lib/*.a $targetdir/lib");
- system("cp -f $XML4CROOT/lib/*.so $targetdir/lib");
- system("cp -f $XML4CROOT/lib/*.sl $targetdir/lib");
+ system("cp -f $XERCESCROOT/lib/*.a $targetdir/lib");
+ system("cp -f $XERCESCROOT/lib/*.so $targetdir/lib");
+ system("cp -f $XERCESCROOT/lib/*.sl $targetdir/lib");
system("rm -rf $targetdir/bin/obj");
@@ -410,25 +410,25 @@
print ("\n\nCopying sample files ...\n");
foreach $iii ('config.guess', 'config.h.in', 'config.sub',
'configure', 'configure.in',
'install-sh', 'runConfigure', 'Makefile.in',
'Makefile.incl', 'Makefile') {
- system("cp -f $XML4CROOT/samples/$iii $targetdir/samples");
+ system("cp -f $XERCESCROOT/samples/$iii $targetdir/samples");
}
- system("cp -Rf $XML4CROOT/samples/data/* $targetdir/samples/data");
- system("cp -Rf $XML4CROOT/samples/SAXCount/*
$targetdir/samples/SAXCount");
- system("cp -Rf $XML4CROOT/samples/SAXPrint/*
$targetdir/samples/SAXPrint");
- system("cp -Rf $XML4CROOT/samples/DOMCount/*
$targetdir/samples/DOMCount");
- system("cp -Rf $XML4CROOT/samples/DOMPrint/*
$targetdir/samples/DOMPrint");
- system("cp -Rf $XML4CROOT/samples/Redirect/*
$targetdir/samples/Redirect");
- system("cp -Rf $XML4CROOT/samples/MemParse/*
$targetdir/samples/MemParse");
- system("cp -Rf $XML4CROOT/samples/PParse/*
$targetdir/samples/PParse");
- system("cp -Rf $XML4CROOT/samples/StdInParse/*
$targetdir/samples/StdInParse");
+ system("cp -Rf $XERCESCROOT/samples/data/* $targetdir/samples/data");
+ system("cp -Rf $XERCESCROOT/samples/SAXCount/*
$targetdir/samples/SAXCount");
+ system("cp -Rf $XERCESCROOT/samples/SAXPrint/*
$targetdir/samples/SAXPrint");
+ system("cp -Rf $XERCESCROOT/samples/DOMCount/*
$targetdir/samples/DOMCount");
+ system("cp -Rf $XERCESCROOT/samples/DOMPrint/*
$targetdir/samples/DOMPrint");
+ system("cp -Rf $XERCESCROOT/samples/Redirect/*
$targetdir/samples/Redirect");
+ system("cp -Rf $XERCESCROOT/samples/MemParse/*
$targetdir/samples/MemParse");
+ system("cp -Rf $XERCESCROOT/samples/PParse/*
$targetdir/samples/PParse");
+ system("cp -Rf $XERCESCROOT/samples/StdInParse/*
$targetdir/samples/StdInParse");
# Populate the docs directory
print ("\n\nCopying documentation ...\n");
- system("cp -Rf $XML4CROOT/doc/* $targetdir/doc");
- system("cp -Rf $XML4CROOT/doc/apiDocs/* $targetdir/doc/apiDocs");
- system("cp $XML4CROOT/Readme.html $targetdir");
- system("cp $XML4CROOT/doc/license.html $targetdir");
+ system("cp -Rf $XERCESCROOT/doc/* $targetdir/doc");
+ system("cp -Rf $XERCESCROOT/doc/apiDocs/* $targetdir/doc/apiDocs");
+ system("cp $XERCESCROOT/Readme.html $targetdir");
+ system("cp $XERCESCROOT/doc/license.html $targetdir");
# Change the directory permissions
system ("chmod 644 `find $targetdir -type f`");
1.2 +24 -24 xml-xerces/c/scripts/packageSources.pl
Index: packageSources.pl
===================================================================
RCS file: /home/cvs/xml-xerces/c/scripts/packageSources.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- packageSources.pl 1999/11/09 01:09:21 1.1
+++ packageSources.pl 1999/11/10 16:55:46 1.2
@@ -1,17 +1,17 @@
#!/usr/bin/perl
-push(@INC, "/home/xml4c/bin", "/home/xml4c/bin/perl/perl-RUN/opt/perl5/lib",
"/Development2/cupert/bin/perl/perl-RUN/opt/perl5/lib",
"/Development/cupert/usr/local/perl/perl-RUN/opt/perl5/lib");
+push(@INC, "/home/xerces-c/bin",
"/home/xerces-c/bin/perl/perl-RUN/opt/perl5/lib",
"/Development2/cupert/bin/perl/perl-RUN/opt/perl5/lib",
"/Development/cupert/usr/local/perl/perl-RUN/opt/perl5/lib");
require "getopt.pl";
$|=1; # Force a flush after every print
-# Set up the environment variables for XML4C and ICU
-$XML4CROOT = $ENV{'XML4CROOT'};
+# Set up the environment variables for XERCES-C and ICU
+$XERCESCROOT = $ENV{'XERCESCROOT'};
$ICUROOT = $ENV{'ICUROOT'};
# Check for the environment variables and exit if error
-if (!length($XML4CROOT)) {
- print "You must set an environment variable called XML4CROOT to work
with this script.\n";
+if (!length($XERCESCROOT)) {
+ print "You must set an environment variable called XERCESCROOT to
work with this script.\n";
exit(-1);
}
@@ -19,10 +19,10 @@
$OUTPUTDIR = $opt_o;
# Check for the environment variables and exit if error
-if (!length($XML4CROOT) || !length($OUTPUTDIR)) {
- print ("Usage is: packageSources -s<output_directory>\n");
- print ("Example: perl packageSources.pl -od:\\xml4csrc3_0_0\n");
- print (" perl packageSources.pl -o\$HOME/xml4csrc3_0_0");
+if (!length($XERCESCROOT) || !length($OUTPUTDIR)) {
+ print ("Usage is: packageSources -o<output_directory>\n");
+ print ("Example: perl packageSources.pl -od:\\xerces-c_1_0_0d01\n");
+ print (" perl packageSources.pl -o\$HOME/xerces-c_1_0_0d01");
exit(-1);
}
@@ -34,11 +34,11 @@
# }
#Fix the backslashes on the Windows platform
-$XML4CROOT =~ s/\\/\//g;
+$XERCESCROOT =~ s/\\/\//g;
$ICUROOT =~ s/\\/\//g;
-# Read the target version from the file $XML4CROOT/src/util/XML4CDefs.hpp
-$versionfile = "$XML4CROOT/src/util/XML4CDefs.hpp";
+# Read the target version from the file $XERCESCROOT/src/util/XML4CDefs.hpp
+$versionfile = "$XERCESCROOT/src/util/XML4CDefs.hpp";
$openresult = open (VERSIONFILE, "<$versionfile");
if ($openresult == 0) {
@@ -58,7 +58,7 @@
$binarytargetdir =~ s/\./_/g; # Substitute the dots
$binarytargetdir =~ s/\s/_/g; # Substitute the blanks
-$binarydirectoryname = "xml4c" . $binarytargetdir; # Is the name of the
binary directory
+$binarydirectoryname = "xerces-c_" . $binarytargetdir; # Is the name of the
binary directory
$binarytargetdir =~ s/\\/\//g; # Fix the backslashes, if they exist,
probably doesn't
# Now check if the target directory exists, exit if it does
@@ -79,12 +79,12 @@
$platform = $1;
close (PLATFORM);
-print "\nPackaging XML4C sources in " . $srctargetdir . " on platform " .
$platform . "...\n";
+print "\nPackaging XERCES-C sources in " . $srctargetdir . " on platform " .
$platform . "...\n";
# Build the API docs
$docppfilelist = "";
-$hppdir = "$XML4CROOT/src/sax";
+$hppdir = "$XERCESCROOT/src/sax";
chdir ($hppdir);
opendir (THISDIR, $hppdir);
@allfiles = grep(!/^\.\.?$/, readdir(THISDIR));
@@ -94,7 +94,7 @@
$docppfilelist = $docppfilelist . " " . $hppdir . "/" . $hppfile;
}
-$hppdir = "$XML4CROOT/src/dom";
+$hppdir = "$XERCESCROOT/src/dom";
chdir ($hppdir);
opendir (THISDIR, $hppdir);
@allfiles = grep(!/^\.\.?$/, readdir(THISDIR));
@@ -105,11 +105,11 @@
$docppfilelist = $docppfilelist . " " . $hppdir . "/" . $hppfile;
}
-$docppfilelist = $docppfilelist . " $XML4CROOT/src/dom/DOMString.hpp";
-$docppfilelist = $docppfilelist . "
$XML4CROOT/src/framework/XMLDocumentHandler.hpp";
-$docppfilelist = $docppfilelist . "
$XML4CROOT/src/framework/XMLEntityHandler.hpp";
+$docppfilelist = $docppfilelist . " $XERCESCROOT/src/dom/DOMString.hpp";
+$docppfilelist = $docppfilelist . "
$XERCESCROOT/src/framework/XMLDocumentHandler.hpp";
+$docppfilelist = $docppfilelist . "
$XERCESCROOT/src/framework/XMLEntityHandler.hpp";
-system ("doc++ -d $XML4CROOT/doc/apiDocs -B $XML4CROOT/doc/tail.html -a -G
-k -H -S $docppfilelist");
+system ("doc++ -d $XERCESCROOT/doc/apiDocs -B $XERCESCROOT/doc/tail.html -a
-G -k -H -S $docppfilelist");
&package_sources();
@@ -125,8 +125,8 @@
print ("\nCopying source tree ...\n");
system ("mkdir $srctargetdir");
print ("Targetdir is : " . $srctargetdir . "\n");
- system("cp -Rf $XML4CROOT/* $srctargetdir");
- system("cp $XML4CROOT/doc/license.html $srctargetdir");
+ system("cp -Rf $XERCESCROOT/* $srctargetdir");
+ system("cp $XERCESCROOT/doc/license.html $srctargetdir");
if ($platform =~ m/Windows/) {
$RM = "rm";
@@ -238,10 +238,10 @@
my $thefiledotbak = $thefile . ".bak";
rename ($thefile, $thefiledotbak);
- $dll_name = "xml4c" . $libraryversion;
+ $dll_name = "xerces-c_" . $libraryversion;
$dll_name =~ tr/a-z/A-Z/;
my $srcversion_num = $version_num;
- $srcversion_num =~ s/xml4c2/xml4csrc2/ig;
+ $srcversion_num =~ s/xml4c2/xerces_1/ig;
open (FIZZLE, $thefiledotbak);
open (FIZZLEOUT, ">$thefile");
while ($line = <FIZZLE>) {