diff options
-rw-r--r-- | z_install.bat | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/z_install.bat b/z_install.bat index 93acbad..985f0d6 100644 --- a/z_install.bat +++ b/z_install.bat @@ -1,13 +1,50 @@ @echo off
+REM ==============================================
+REM adapt the following to your needs
+REM ==============================================
+
+REM where does PD reside ??
+REM if you want spaces in the path, please use quotes ("")
+set PDPATH=C:\programme\pd
+
+REM which pd-version do we have ?
+set PDVERSION=0.37
+
+REM ==============================================
+REM do not edit below this line !!!
+REM ==============================================
+
+
echo installing zexy on your system
-mkdir ..\extra
-copy zexy.dll ..\extra
+IF NOT EXIST %PDPATH%\bin\pd.exe goto location_error
+
+set BINPATH=extra
+set REFPATH=extra\help-zexy
+
+if %PDVERSION% LSS 0.37 set REFPATH=doc\5.reference\zexy
+
+echo Copying binary...
+copy zexy.dll %PDPATH%\%BINPATH% > tempInstall.trash
echo copying help files
-mkdir ..\extra\help-zexy
-copy examples\* ..\extra\help-zexy
+mkdir %PDPATH%\%REFPATH%
+copy examples\* %PDPATH%\%REFPATH%
echo copying abstractions
-copy abs\*.pd ..\extra
+copy abs\*.pd %PDPATH\%BINPATH%
echo done
+goto end
+
+:location_error
+echo :
+echo : i believe i am in the wrong directory
+echo : i thought that the pd-executable would be %PDPATH%\bin\pd.exe
+echo : obviously it is not !!!
+echo : please edit this file and set the PDPATH-variable apropriatly
+echo :
+echo : stopping installation
+echo :
+
+:end
+pause
|