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 1
1
Package: xcopy
2
- Version: 0.20180525 -wheezy
2
+ Version: 0.20180605 -wheezy
3
3
Architecture: all
4
4
Maintainer: zvezdochiot <
[email protected] >
5
5
Section: utils
6
6
Priority: optional
7
- Installed-Size: 24
7
+ Installed-Size: 32
8
8
Depends: coreutils, findutils, cpio
9
9
Homepage: https://github.com/zvezdochiot/bash-xcopy
10
10
Description: 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 1
1
#! /bin/sh
2
2
3
3
# xcopy.sh
4
- # 2018-05-25
4
+ # Depends: coreutils, findutils, cpio
5
5
6
- echo " XCopy 0.20180525"
6
+ sname=" XCopy"
7
+ sversion=" 0.20180605"
8
+
9
+ echo " $sname $sversion "
7
10
8
11
tnocomp=" "
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 "
33
20
if [ " x$tnocomp " != " x" ]
34
21
then
35
- echo " Not found $ tnocomp !"
22
+ echo " Not found: ${ tnocomp} !"
36
23
echo " "
37
24
exit 1
38
25
fi
55
42
esac
56
43
done
57
44
shift " $(( $OPTIND - 1 )) "
58
- tdir=` pwd` ;
59
- srcdir=" $1 " ;
60
- dstdir=" $2 " ;
45
+ tdir=$( pwd)
46
+ srcdir=" $1 "
47
+ dstdir=" $2 "
61
48
62
49
if [ " x$srcdir " = " x" -o " x$dstdir " = " x" -o " x$fhlp " = " xtrue" ]
63
50
then
You can’t perform that action at this time.
0 commit comments