This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
forked from microsoftarchive/ff-jpegxr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Moz_backup.bat
68 lines (44 loc) · 1.55 KB
/
Moz_backup.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
@echo off
if ""=="%1" goto Error1
echo Dest folder: %1
if ""=="%2" goto Error2
set bak_folder="%2"
echo %bak_folder%
set destFolder=%bak_folder%
if exist %destFolder% goto Error3
md %destFolder%
set destFolder=%bak_folder%\image
if not exist %destFolder% md %destFolder%
set destFolder=%bak_folder%\image\src
if not exist %destFolder% md %destFolder%
set destFolder=%bak_folder%\image\build
if not exist %destFolder% md %destFolder%
set destFolder=%bak_folder%\image\decoders
if not exist %destFolder% md %destFolder%
set destFolder=%bak_folder%\netwerk
if not exist %destFolder% md %destFolder%
set destFolder=%bak_folder%\netwerk\mime
if not exist %destFolder% md %destFolder%
set destFolder=%bak_folder%\uriloader
if not exist %destFolder% md %destFolder%
set destFolder=%bak_folder%\uriloader\exthandler
if not exist %destFolder% md %destFolder%
echo on
copy %1\image\build\nsImageModule.cpp %bak_folder%\image\build
copy %1\image\decoders\moz.build %bak_folder%\image\decoders
copy %1\image\src\Image.h %bak_folder%\image\src
copy %1\image\src\Image.cpp %bak_folder%\image\src
copy %1\image\src\RasterImage.cpp %bak_folder%\image\src
copy %1\image\moz.build %bak_folder%\image
copy %1\netwerk\mime\nsMimeTypes.h %bak_folder%\netwerk\mime
copy %1\uriloader\exthandler\nsExternalHelperAppService.cpp %bak_folder%\uriloader\exthandler
goto Exit
:Error1
echo Source folder is not specified!
goto Exit
:Error2
echo Dest folder is not specified!
goto Exit
:Error3
echo Backup folder already exists. Running this batch file would overwrite the initial backup!
:Exit