-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfigure.cmd
More file actions
78 lines (65 loc) · 2.06 KB
/
Copy pathconfigure.cmd
File metadata and controls
78 lines (65 loc) · 2.06 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
@echo off
rem
rem create freepascal Makefile to build virtualmoon
rem
rem set the variable below before to run
rem
rem To compile the C libraries plan404
rem you need to install Mingw and Msys from http://www.mingw.org/
rem and add them to your PATH
rem For Windows 64 bits I have success with WPG System64 http://www.cadforte.com/system64.html
rem ################################################################
rem start parameters
rem where you install sed ( http://gnuwin32.sourceforge.net/packages/sed.htm )
set sed=C:\GnuWin32\bin
rem where you install fpc
set fpc=C:\pp\bin\x86_64-win64
rem where you install lazarus (keep double \\ for path)
set lazarus=C:\\lazarus
rem where you want to install vma (keep double \\ for path)
set prefix=C:\\appli\\virtualmoon
rem end of parameters
rem ################################################################
set basedir=%CD%
set PATH=%basedir%;%fpc%;%sed%;%PATH%
rem test sed
sed --version
if %ERRORLEVEL% NEQ 0 (
echo .
echo Please edit configure.cmd to set the path to fpc, lazarus and sed
goto :EOF
)
rem test fpc
fpc -iV
if %ERRORLEVEL% NEQ 0 (
echo .
echo Please edit configure.cmd to set the path to fpc, lazarus and sed
goto :EOF
)
echo virtualmoon\component\libsql > dirs.lst
echo virtualmoon\component\uniqueinstance >> dirs.lst
echo virtualmoon\component\enhedits >> dirs.lst
echo virtualmoon\component >> dirs.lst
echo virtualmoon\library >> dirs.lst
echo virtualmoon >> dirs.lst
echo datlun >> dirs.lst
echo photlun >> dirs.lst
echo . >> dirs.lst
echo using fpc in %fpc%
echo using Lazarus in %lazarus%
echo installing in %prefix%
for /F %%d in (dirs.lst) do (
echo creating %%d\Makefile
cd %%d
sed "s/\%%LAZDIR\%%/%lazarus%/" Makefile.in > Makefile.fpc
sed -i "s/\%%PREFIX\%%/%prefix%/" Makefile.fpc
fpcmake -q Makefile.fpc
cd %basedir%
)
del dirs.lst
rem cd tools
rem sed "s/\%%PREFIX\%%/%prefix%/" Makefile.in > Makefile
rem cd %basedir%
echo You can now run make
echo then make install
echo and make install_data