@echo off
@echo ----------------------------------------------------
@echo --- Copy ariadne source files for ariadne MAC
@echo
if defined PRGDIR goto :runbatch
@echo Defining standard directory locations
call c:\bin\setenv
:runbatch

rem set JAVALIB=c:\JAVA
rem set PRGDIR=c:\PRG
set JAVANETWORKS=%PRGDIR%\networks

mkdir batch
mkdir lib
mkdir src
mkdir input
mkdir output
mkdir dist
mkdir dist\lib

copy %JAVALIB%\cerncolt\colt.jar dist\lib\
copy %JAVALIB%\commons-collections-3.2.1\commons-collections-3.2.1.jar  dist\lib\
copy %JAVALIB%\JUNG\lib\jung-1.7.6.jar  dist\lib\

copy %JAVANETWORKS%\aegean\ariadnelicence.* .

xcopy %JAVALIB%\javanotes\src\*.* src\ /s /y
xcopy %JAVALIB%\jlibeps\src\*.* src\ /s /y
xcopy %PRGDIR%\JAVA\TimUtilities\src\*.* src\ /s /y
xcopy %JAVANETWORKS%\aegean\src\*.* src\ /s /y
xcopy %JAVANETWORKS%\DataAnalysis\src\*.* src\ /s /y
xcopy %JAVANETWORKS%\DistributionAnalysis\src\*.* src\ /s /y
xcopy %JAVANETWORKS%\timgraph\src\*.* src\ /s /y
xcopy %JAVANETWORKS%\ariadne\doc\*.* doc\ /s /y
xcopy %JAVANETWORKS%\ariadne\input\*.* input\ /s /y
xcopy %JAVANETWORKS%\ariadne\output\*.* output\ /s /y
copy %JAVANETWORKS%\ariadne\*.bat batch\

dir src\*.java /b /s >src\ariadnemacsrclist.txt
rem %CMDZIP% -r -p -m src\ariadnemacsrc.zip src\*.java
