This repository has been archived by the owner on Feb 23, 2018. It is now read-only.
forked from katahiromz/XScreenSaverWin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pack.bat
50 lines (42 loc) · 1.98 KB
/
pack.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
@echo off
if exist XScreenSaverWin goto skip
if not exist xscreensaver\Release goto fail
if not exist xscreensaver-text\Release goto fail
if not exist non-wgl\Release goto fail
if not exist wgl\Release goto fail
if not exist XScreenSaverWin mkdir XScreenSaverWin
:skip
copy xscreensaver\Release\*.exe XScreenSaverWin
copy xscreensaver-text\Release\*.exe XScreenSaverWin
mkdir XScreenSaverWin\random_scr
copy random\Release\*.scr XScreenSaverWin\random_scr
copy non-wgl\Release\*.scr XScreenSaverWin
copy wgl\Release\*.scr XScreenSaverWin
copy LICENSE.txt XScreenSaverWin
cd XScreenSaverWin
for %%i in (*.scr) do mkdir %%~ni_scr
for %%i in (*.scr) do move %%i %%~ni_scr
cd ..
copy README.txt XScreenSaverWin
copy READMEJP.txt XScreenSaverWin
copy CHANGELOG.txt XScreenSaverWin
copy wgl\starwars.txt XScreenSaverWin
copy wgl\starwars.txt XScreenSaverWin\starwars_scr
@rem delete NG screensavers
if exist XScreenSaverWin\apple2_scr rd /S /Q XScreenSaverWin\apple2_scr
if exist XScreenSaverWin\blitspin_scr rd /S /Q XScreenSaverWin\blitspin_scr
if exist XScreenSaverWin\fontglide_scr rd /S /Q XScreenSaverWin\fontglide_scr
if exist XScreenSaverWin\halo_scr rd /S /Q XScreenSaverWin\halo_scr
if exist XScreenSaverWin\mirrorblob_scr rd /S /Q XScreenSaverWin\mirrorblob_scr
if exist XScreenSaverWin\moire2_scr rd /S /Q XScreenSaverWin\moire2_scr
if exist XScreenSaverWin\piecewise_scr rd /S /Q XScreenSaverWin\piecewise_scr
if exist XScreenSaverWin\pyro_scr rd /S /Q XScreenSaverWin\pyro_scr
if exist XScreenSaverWin\qix_scr rd /S /Q XScreenSaverWin\qix_scr
if exist XScreenSaverWin\quasiCrystal_scr rd /S /Q XScreenSaverWin\quasiCrystal_scr
if exist XScreenSaverWin\slidescreen_scr rd /S /Q XScreenSaverWin\slidescreen_scr
if exist XScreenSaverWin\t3d_scr rd /S /Q XScreenSaverWin\t3d_scr
if exist XScreenSaverWin\timetunnel_scr rd /S /Q XScreenSaverWin\timetunnel_scr
if exist XScreenSaverWin\worm_scr rd /S /Q XScreenSaverWin\worm_scr
exit /b
:fail
echo ERROR: Not built yet!