This repository has been archived by the owner on Jan 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
winmake.bat
69 lines (52 loc) · 2.04 KB
/
winmake.bat
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
@echo off
REM First run MSys
REM cd to your hugs distribution
REM Then type "make"
REM After that, run this file
REM Requires sed
echo REBUILDING EVERYTHING
set MyVC="%VS71COMNTOOLS%..\IDE\devenv.com"
%MyVC% src\msc\hugs.sln /build release
%MyVC% src\winhugs\winhugs.sln /build release
%MyVC% src\winhugs\installer\Installer.sln /build release
%MyVC% src\winhugs\uninstaller\Uninstaller.sln /build release
cd docs
call users-guide-windows.bat
cd ..
echo COPYING EVERYTHING
copy src\msc\ReleaseFfihugs\ffihugs.exe hugsdir\ffihugs.exe
copy src\msc\ffihugs.bat hugsdir\ffihugs.bat
copy src\msc\ReleaseHugs\hugs.exe hugsdir\hugs.exe
copy src\msc\ReleaseRunhugs\runhugs.exe hugsdir\runhugs.exe
copy src\WinHugs\Release\winhugs.exe hugsdir\winhugs.exe
mkdir hugsdir\docs 2> nul
copy docs\users_guide_windows\hugs98.chm hugsdir\docs\hugs98.chm
copy src\winhugs\uninstaller\Release hugsdir\uninstaller.exe
sed s/\n/\r\n/ Readme > hugsdir\readme.txt
mkdir release 2> nul
wzzip -ex -r -p release\winhugs.zip hugsdir
copy /b src\winhugs\installer\Release\installer.exe + release\winhugs.zip release\winhugs.exe
echo MAKING MINHUGS
mkdir mindir
mkdir mindir\docs
copy hugsdir\readme.txt mindir\readme.txt
copy hugsdir\uninstaller.exe mindir\uninstaller.exe
copy hugsdir\winhugs.exe mindir\winhugs.exe
copy hugsdir\docs\*.* mindir\docs\*.*
mkdir mindir\packages\base
mkdir mindir\packages\haskell98
mkdir mindir\packages\hugsbase
xcopy /y /s hugsdir\packages\base mindir\packages\base
xcopy /y /s hugsdir\packages\haskell98 mindir\packages\haskell98
xcopy /y /s hugsdir\packages\hugsbase mindir\packages\hugsbase
REM Remove Foreign
del mindir\packages\base\Data\ByteString.*
del mindir\packages\base\Data\ByteString\*.* /q
rmdir mindir\packages\base\Data\ByteString
del mindir\packages\base\System\Posix\*.* /q
del mindir\packages\base\System\Process\*.* /q
rmdir mindir\packages\base\System\Posix
rmdir mindir\packages\base\System\Process
wzzip -ex -r -p release\minhugs.zip mindir
copy /b src\winhugs\installer\Release\installer.exe + release\minhugs.zip release\minhugs.exe
echo DONE