REM File: RESTORE_DEMO_BAT_FILES.bat - script to restore the BAT file names
REM Revised: 8/14/2009
REM P. Lemkin

echo "File: RESTORE_DEMO_BAT_FILES.bat"

REM Because of (unnecessary) email filtering problems by some email systems,
REM the .BAT files have been renamed from xxxx.bat to xxxx-bat.

REM To restore the .BAT files so they are operational to process the data, 
REM just rename them from xxxx-bat to xxxx.bat and move them to the
REM distribution directory.

REM To make it easier to do this there is a single .BAT file (called 
REM RESTORE_DEMO_BAT_FILES-bat) that will do this by renaming the files
REM copying them to the distribution directory.

REM Note that to run the .bat files, they must reside in the distribution
REM directory (i.e. where src/, data directories, html/ directories etc. 
REM reside) so they start with the correct path.

echo "PROCEDURE FOR RESTORING THE .BAT FILES"
echo "======================================"

REM 1. Change (cd) from the distribution directory to the demo-bat directory
REM    where the .BAT files are distributed when you unpack the 
REM    distribution .zip file.

REM 2. Rename (this) RESTORE_BAT_FILES-bat file to the new name
REM    RESTORE_BAT_FILES.bat file so you can make it executable.

REM 3. Execute the RESTORE_BAT_FILES.bat in the demo-bat directory to copy 
REM    the other -bat files to .bat files in the distribution directory 
REM    where they are now ready to run.

REM 4. Change (cd) back to the distribution directory. The .bat files
REM    should be there, ready to run. 


echo "======================================"

REM (A) NOTE: the HTMLtools'batch' .doit files contain lists of 
REM params .map scripts that are run by invoking the bat/ file with 
REM the same postfix name but a "HTMLtools" prefix.
REM
copy *.doit ..\

REM (A.1) Run the converter as a Graphical User Interface (GUI)
REM
copy HTMLtools-GUI-bat ..\HTMLtools-GUI.bat

 
REM (B) NOTE: the batch .bat files that run the above .doit files. 
REM Note: HTMLtools-batchList.bat runs the main batch job batchList.doit.
REM
copy HTMLtools-batchList-bat ..\HTMLtools-batchList.bat 
copy HTMLtools-batch-GSP-Inventory.doit ..\HTMLtools-batch-GSP-Inventory.bat 
copy HTMLtools-batch-Maps-bat ..\HTMLtools-batch-Maps.bat
copy HTMLtools-genBatchScripts-bat ..\HTMLtools-genBatchScripts.bat 
copy HTMLtools-MRR-flip-bat ..\HTMLtools-MRR-flip.bat 



REM (C) NOTE: HTMLtools-doAll.bat runs some of the following .bat batch scripts.
REM 
copy HTMLtools-doAll-bat ..\HTMLtools-doAll.bat


REM (D) Some .bat batch scripts thar run individual .
REM 
copy HTMLtools-GSPI-EG-bat ..\HTMLtools-GSPI-EG.bat
copy HTMLtools-GSPI-EG-concatHTML-bat ..\HTMLtools-GSPI-EG-concatHTML.bat
copy HTMLtools-GSPI-EG-concatTXT-bat ..\HTMLtools-GSPI-EG-concatTXT.bat
copy HTMLtools-GSPI-ExpGrp-bat ..\HTMLtools-GSPI-ExpGrp.bat
copy HTMLtools-GSPI-ExpGrp-exportBigCells-bat ..\HTMLtools-GSPI-ExpGrp-exportBigCells.bat
copy HTMLtools-mAdb-TestsToDo-bat ..\HTMLtools-mAdb-TestsToDo.bat
copy HTMLtools-genBatchScripts-bat ..\HTMLtools-genBatchScripts.bat
copy HTMLtools-MRR-all-fast-bat ..\HTMLtools-MRR-all-fast.bat
copy HTMLtools-ConverterGUI-bat ..\HTMLtools-ConverterGUI.bat
copy HTMLtools-SearchGUI-bat ..\HTMLtools-SearchGUI.bat

REM (E)The following .bat file can be used to generate the javadocs
copy javadocs-HTMLtools-bat ..\javadocs-HTMLtools.bat


REM (E) In addition to the .BAT files, it also includes an executable
REM (.EXE) bundled version of the HTMLtools.jar file that can 
REM be launched from the Windows OS command line. It also gets renamed
REM and copied to the distribution directory. You could edit the
REM above scripts to use it instead of invoking it with java.
copy HTMLtools-exe ..\HTMLtools.exe

echo "Done restoring .BAT files, go to distribution directory to run .BAT files."







