-
Notifications
You must be signed in to change notification settings - Fork 3
/
BackupRPN.bat
58 lines (42 loc) · 2.1 KB
/
BackupRPN.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
rem //******************************************************************************
rem //
rem // BackupRPN
rem //
rem // This TCC script is used to backup RPN. It assumes Cygwin is installed.
rem //
rem //******************************************************************************
setlocal
iff "%1" == "" then
echo usage: BackupRPN target_dir_list [versioned_target_dir_list]
quit
endiff
rem set VERSION=%@execstr[grep "PROGRAM_VERSION " rpn\rpnVersion.py | cut -d' ' -f3 | tr -d -c 01234567890.]
set RPN_FILES=__init__.py;rpn*.py;makeHelp.py;makeRPNPrimes.py;makeUnits.py;setup_rpn.py;test*.py;profile*.py;rpn.ico;rpn64.iss;BuildRPN.bat;BuildRPNInstaller.bat;BuildRPNExecutable.bat;requirements.txt;setup.cfg;MANIFEST.in;setup.py;unpickle.py;preparePrimeData.py;BackupRPN.bat;rpn.py;makeHelp.py;makeUnits.py;preparePrimes.py;testRPN.py;README.md;pylintrc;BuildRPNExecutable.bat;BuildRPNInstaller.bat;BackupRPN.bat;BuildRPNWheel.bat
echo %VERSION
for /t; %TARGET_DIR in (%1) if exist %TARGET_DIR .and. isdir %TARGET_DIR for %FILE in (%RPN_FILES) copy %FILE %TARGET_DIR
cd rpn
echo on
for /t; %TARGET_DIR in (%1) if exist %TARGET_DIR .and. isdir %TARGET_DIR for %FILE in (%RPN_FILES) copy %FILE %TARGET_DIR%\rpn
cd math
for /t; %TARGET_DIR in (%1) if exist %TARGET_DIR .and. isdir %TARGET_DIR copy rpn*.py factorise.py %TARGET_DIR%\rpn\math
cd ..
cd science
for /t; %TARGET_DIR in (%1) if exist %TARGET_DIR .and. isdir %TARGET_DIR copy rpn*.py %TARGET_DIR%\rpn\science
cd ..
cd special
for /t; %TARGET_DIR in (%1) if exist %TARGET_DIR .and. isdir %TARGET_DIR copy rpn*.py %TARGET_DIR%\rpn\special
cd ..
cd test
for /t; %TARGET_DIR in (%1) if exist %TARGET_DIR .and. isdir %TARGET_DIR copy rpn*.py test*.py %TARGET_DIR%\rpn\test
cd ..
cd time
for /t; %TARGET_DIR in (%1) if exist %TARGET_DIR .and. isdir %TARGET_DIR copy rpn*.py %TARGET_DIR%\rpn\time
cd ..
cd units
for /t; %TARGET_DIR in (%1) if exist %TARGET_DIR .and. isdir %TARGET_DIR copy rpn*.py %TARGET_DIR%\rpn\units
cd ..
cd util
for /t; %TARGET_DIR in (%1) if exist %TARGET_DIR .and. isdir %TARGET_DIR copy rpn*.py %TARGET_DIR%\rpn\util
cd ..
cd ..
endlocal