Debian Codegraph @

install/unix/copy

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2 # @(#)copy.sh 19.1 (ESO-IPG) 02/25/03 13:51:10
3 # .TYPE command
4 # .NAME copy.sh
5 # .LANGUAGE shell script
6 # .ENVIRONMENT Unix Systems. Executable under SHELL and C-SHELL
7 # .COMMENTS Copy file in first argument ($1) to the local directory.
8 # If the file exists previously, then it is renamed.
9 # .AUTHOR Carlos Guirao
10 # .VERSION 1.1 27-May-1988: Implementation
11
12 if [scip-shell system . . `[`. -d $1 ]; then
13 if [scip-shell system . . `[`. ! -d $MIDASHOME/$MIDVERS/local/$1 ]; then
14 mkdirscip-shell system . . mkdir. $MIDASHOME/$MIDVERS/local/$1
15 fi
16 else
17 if [scip-shell system . . `[`. -f $MIDASHOME/$MIDVERS/local/$1 ]; then
18 mvscip-shell system . . mv. $MIDASHOME/$MIDVERS/local/$1 $MIDASHOME/$MIDVERS/local/${1}~
19 fi
20 cpscip-shell system . . cp. $1 $MIDASHOME/$MIDVERS/local/$1
21 chmodscip-shell system . . chmod. ug+rw $MIDASHOME/$MIDVERS/local/$1
22 fi