aboutsummaryrefslogtreecommitdiff
path: root/z_install.bat
blob: b0faa49ce15832c014e4e077428721f15a211bf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@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="%PROGRAMFILES%\pd"

REM which pd-version do we have ?
set PDVERSION=0.38


REM ==============================================
REM do not edit below this line !!!
REM ==============================================

echo :
echo : installing zexy on your system
echo :
echo : assuming that PD-version is at least %PDVERSION%
echo : assuming that PD is installed at %PDPATH%
echo :
echo : if this is correct, hit [return] to proceed
echo : if this is incorrect, stop this programm ([Ctrl]-C), edit 'z_install.bat' to your needs and rerun
echo :
pause


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 %PDPATH%\%REFPATH%
copy examples\* %PDPATH%\%REFPATH% > tempInstall.trash

echo copying abstractions
copy abs\*.pd %PDPATH%\%BINPATH% > tempInstall.trash

echo : done
echo : dont forget to load zexy on startup...
echo : have fun



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