-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCLONE
46 lines (46 loc) · 1.14 KB
/
CLONE
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
*
GIT.FILENAME = 'CLONE'
GIT.REPO = 'https://github.com/Krowemoh/TCL-Utilities.git'
*
* VERSION
*
VERSION = '1'
*
@USER1 = 'CLONE'
@USER2 = 'CLONE'
*
EQU TRUE TO 1
EQU FALSE TO 0
*
CALL GET.ARGUMENTS(ARGS)
DELETE.FLAG = FALSE
*
ARGS.LEN = DCOUNT(ARGS,@AM)
*
IF ARGS.LEN = 1 THEN
PRINT 'CLONE - Copy Command'
PRINT
PRINT ' Copy a file:'
PRINT ' CLONE [DICT] {SRC.FILE} {SRC.RECORD} [DICT] {DEST.FILE} {DEST.RECORD}'
PRINT
PRINT ' Copy a file without renaming:'
PRINT ' CLONE [DICT] {SRC.FILE} {SRC.RECORD} [DICT] {DEST.FILE}'
PRINT
PRINT ' Copy files using an active list:'
PRINT ' CLONE [DICT] {SRC.FILE} [DICT] {DEST.FILE}'
PRINT
PRINT ' Copy a file to the underlying OS:'
PRINT ' CLONE [DICT] {SRC.FILE} {SRC.RECORD} {/tmp/} {new-name.txt}'
PRINT
PRINT ' Copy an active list to a folder:'
PRINT ' CLONE [DICT] {SRC.FILE} {/tmp/backups/}'
PRINT
STOP
END
*
CALL MOVE.FILES(ARGS,DELETE.FLAG)
*
* END OF PROGRAM
*
END
*