#!/usr/bin/perl
#
#

$outputFile = 'applDeveloperMerged.html';

@inputFiles = (
               '../html/index.html',
               'break01.html',
               '../html/Introduction/introduction.html',

               'break02.html',
               '../html/GettingStarted/index.html',
               'break03.html',
               '../html/GettingStarted/mainProgram.html',
               '../html/GettingStarted/geometryDef.html',
               '../html/GettingStarted/materialDef.html',
               '../html/GettingStarted/particleDef.html',
               '../html/GettingStarted/physicsDef.html',
               '../html/GettingStarted/eventDef.html',
               '../html/GettingStarted/makeFile.html',
               '../html/GettingStarted/graphicalUserInterface.html',
               '../html/GettingStarted/executeProgram.html',
               '../html/GettingStarted/visualization.html',

               'break04.html',
               '../html/Fundamentals/index.html',
               'break05.html',
               '../html/Fundamentals/classCategory.html',
               '../html/Fundamentals/global.html',
               '../html/Fundamentals/unitSystem.html',
               '../html/Fundamentals/run.html',
               '../html/Fundamentals/event.html',
               '../html/Fundamentals/eventGenerator.html',
               '../html/Fundamentals/biasing.html',

               'break06.html',
               '../html/Detector/index.html',
               'break07.html',
               '../html/Detector/geometry.html',
               '../html/Detector/geomIntro.html',
               '../html/Detector/geomSolids.html',
               '../html/Detector/geomLogical.html',
               '../html/Detector/geomPhysical.html',
               '../html/Detector/geomTouch.html',
               '../html/Detector/geomAssembly.html',
               '../html/Detector/geomReflection.html',
               '../html/Detector/geomNav.html',
               '../html/Detector/geomEditor.html',
               '../html/Detector/geomG3toG4.html',
               '../html/Detector/geomOverlap.html',
               '../html/Detector/geomDynamic.html',
               '../html/Detector/geomXML.html',
               '../html/Detector/material.html',
               '../html/Detector/electroMagneticField.html',
               '../html/Detector/hit.html',
               '../html/Detector/digitization.html',
               '../html/Detector/persistency.html',

               'break08.html',
               '../html/TrackingAndPhysics/index.html',
               'break09.html',
               '../html/TrackingAndPhysics/tracking.html',
               '../html/TrackingAndPhysics/physicsProcess.html',
               '../html/TrackingAndPhysics/particle.html',
               '../html/TrackingAndPhysics/thresholdVScut.html',
               '../html/TrackingAndPhysics/cutsPerRegion.html',
               '../html/TrackingAndPhysics/physicsTable.html',

               'break10.html',
               '../html/UserActions/index.html',
               'break11.html',
               '../html/UserActions/MandatoryActions.html',
               '../html/UserActions/OptionalActions.html',

               'break12.html',
               '../html/Control/index.html',
               'break13.html',
               '../html/Control/commands.html',
               '../html/Control/userInterfaceCommand.html',

               'break14.html',
               '../html/Visualization/index.html',
               'break15.html',
               '../html/Visualization/introduction.html',
               '../html/Visualization/visexecutable.html',
               '../html/Visualization/visdrivers.html',
               '../html/Visualization/commandcontrol.html',
               '../html/Visualization/compiledcontrol.html',
               '../html/Visualization/attributes.html',
               '../html/Visualization/enhanceddrawing.html',
               '../html/Visualization/filtering.html',
               '../html/Visualization/markertext.html',
               '../html/Visualization/makingamovie.html',

               'break16.html',
               '../html/Examples/index.html',
               'break17.html',
               '../html/Examples/NoviceCodes.html',
               '../html/Examples/ExtendedCodes.html',
               '../html/Examples/AdvancedCodes.html',

               'break18.html',
               '../html/Appendix/index.html',
               'break19.html',
               '../html/Appendix/tipsCompilation.html',
               '../html/Appendix/histogramming.html',
               '../html/Appendix/clhepLHCxx.html',
               '../html/Appendix/templateLib.html',
               '../html/Appendix/makeFile.html',
               '../html/Appendix/buildFile.html',
               '../html/Appendix/developmentDebugTools.html',

              );

$numberFiles = @inputFiles;

for ($i=0; $i<$numberFiles; $i++)
{
    `perl MergeDocs.pl $inputFiles[$i] >> $outputFile`;
}



