File tree Expand file tree Collapse file tree 4 files changed +38
-32
lines changed
Expand file tree Collapse file tree 4 files changed +38
-32
lines changed Original file line number Diff line number Diff line change 11Package: xcopy
2- Version: 0.20180525 -wheezy
2+ Version: 0.20180605 -wheezy
33Architecture: all
44Maintainer: zvezdochiot <zvezdochiot@users.sourceforge.net>
55Section: utils
66Priority: optional
7- Installed-Size: 24
7+ Installed-Size: 32
88Depends: coreutils, findutils, cpio
99Homepage: https://github.com/zvezdochiot/bash-xcopy
1010Description: Bash-script for xcopy.
Original file line number Diff line number Diff line change 1+ Xcopy
2+ https://github.com/zvezdochiot/bash-xcopy
3+
4+ 0.20180605
5+
6+ Simplify Version
7+
8+ 0.20180525
9+
10+ Options Version
11+
12+ 0.20151118
13+
14+ Init Version
15+
16+ ---
17+ 2015
18+ zvezdochiot
Original file line number Diff line number Diff line change 1+ 0.20180605
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33# xcopy.sh
4- # 2018-05-25
4+ # Depends: coreutils, findutils, cpio
55
6- echo " XCopy 0.20180525"
6+ sname=" XCopy"
7+ sversion=" 0.20180605"
8+
9+ echo " $sname $sversion "
710
811tnocomp=" "
9- tcomp=" /bin/cpio"
10- tdeb=" cpio_*.deb"
11- if [ ! -f " $tcomp " ]
12- then
13- tnocomp=" $tnocomp $tcomp ($tdeb )"
14- fi
15- tcomp=" /usr/bin/find"
16- tdeb=" findutils_*.deb"
17- if [ ! -f " $tcomp " ]
18- then
19- tnocomp=" $tnocomp $tcomp ($tdeb )"
20- fi
21- tcomp=" /usr/bin/sort"
22- tdeb=" coreutils_*.deb"
23- if [ ! -f " $tcomp " ]
24- then
25- tnocomp=" $tnocomp $tcomp ($tdeb )"
26- fi
27- tcomp=" /bin/ln"
28- tdeb=" coreutils_*.deb"
29- if [ ! -f " $tcomp " ]
30- then
31- tnocomp=" $tnocomp $tcomp ($tdeb )"
32- fi
12+ tcomp=" cpio"
13+ [ ! " $( command -v $tcomp ) " ] && tnocomp=" $tnocomp $tcomp "
14+ tcomp=" find"
15+ [ ! " $( command -v $tcomp ) " ] && tnocomp=" $tnocomp $tcomp "
16+ tcomp=" sort"
17+ [ ! " $( command -v $tcomp ) " ] && tnocomp=" $tnocomp $tcomp "
18+ tcomp=" ln"
19+ [ ! " $( command -v $tcomp ) " ] && tnocomp=" $tnocomp $tcomp "
3320if [ " x$tnocomp " != " x" ]
3421then
35- echo " Not found $ tnocomp !"
22+ echo " Not found: ${ tnocomp} !"
3623 echo " "
3724 exit 1
3825fi
5542 esac
5643done
5744shift " $(( $OPTIND - 1 )) "
58- tdir=` pwd` ;
59- srcdir=" $1 " ;
60- dstdir=" $2 " ;
45+ tdir=$( pwd)
46+ srcdir=" $1 "
47+ dstdir=" $2 "
6148
6249if [ " x$srcdir " = " x" -o " x$dstdir " = " x" -o " x$fhlp " = " xtrue" ]
6350then
You can’t perform that action at this time.
0 commit comments