Debian Codegraph @

copyfile.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 usagescip-shell shell bbmap 39.20+dfsg-3 usage().(){
4 echoscip-shell system . . echo. "
5 Written by Brian Bushnell
6 Last modified October 9, 2023
7
8 Description: Copies a file.
9 The main purpose is to recompress it.
10
11 Usage: copyfile.sh in=<file> out=<file>
12
13 Please contact Brian Bushnell at [email protected] if you encounter any problems.
14 "
15 }
16
17 #This block allows symlinked shellscripts to correctly set classpath.
18 pushd . > /dev/nullscip-shell filesystem . . `/dev/null`.
19 DIR="${BASH_SOURCE[0]}"
20 while [scip-shell system . . `[`. -h "$DIR" ]; do
21 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
22 DIR="$(readlinkscip-shell system . . readlink. "$(basenamescip-shell system . . basename. "$DIR")")"
23 done
24 cd "$(dirnamescip-shell system . . dirname. "$DIR")"
25 DIR="$(pwdscip-shell system . . pwd.)/"
26 popd > /dev/nullscip-shell filesystem . . `/dev/null`.
27
28 #DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"
29 CP="$DIR""current/"
30
31 z="-Xmx120m"
32 z2="-Xms120m"
33 set=0
34
35 if [scip-shell system . . `[`. -z "$1" ] || [[ $1 == -h ]] || [[ $1 == --help ]]; then
36 usagescip-shell shell bbmap 39.20+dfsg-3 usage().
37 exit
38 fi
39
40 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). () {
41 source "$DIR""/calcmem.sh"
42 setEnvironment
43 parseXmx "$@"
44 }
45 calcXmxscip-shell shell bbmap 39.20+dfsg-3 calcXmx(). "$@"
46
47 function copyfilescip-shell shell bbmap 39.20+dfsg-3 copyfile().() {
48 local CMD="java $EA $EOOM $z $z2 -cp $CP fileIO.CopyFile $@"
49 echoscip-shell system . . echo. $CMD >&2
50 eval $CMD
51 }
52
53 copyfilescip-shell shell bbmap 39.20+dfsg-3 copyfile(). "$@"