aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-04-04 16:58:01 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-04-04 16:58:01 +0000
commit31c095f7a24cd09f7c776406b07a3fb07aac687d (patch)
tree87b682d469b51574d3fefe34d7c4463f0a5698fe
parent0b8f99929f9a75ba8b8d58c17bb20826038095b4 (diff)
better (but untested) installation script
svn path=/trunk/externals/zexy/; revision=2677
-rw-r--r--z_install.bat47
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