Skip to content

Commit f751bcb

Browse files
committed
0.20180605
Simplify Version
1 parent 6c8d8c8 commit f751bcb

File tree

4 files changed

+38
-32
lines changed

4 files changed

+38
-32
lines changed

config/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Package: xcopy
2-
Version: 0.20180525-wheezy
2+
Version: 0.20180605-wheezy
33
Architecture: all
44
Maintainer: zvezdochiot <[email protected]>
55
Section: utils
66
Priority: optional
7-
Installed-Size: 24
7+
Installed-Size: 32
88
Depends: coreutils, findutils, cpio
99
Homepage: https://github.com/zvezdochiot/bash-xcopy
1010
Description: Bash-script for xcopy.

data/usr/share/doc/xcopy/CHANGELOG

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

data/usr/share/doc/xcopy/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.20180605

data/usr/share/scripts/bash/xcopy.sh

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,25 @@
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

811
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"
3320
if [ "x$tnocomp" != "x" ]
3421
then
35-
echo "Not found $tnocomp !"
22+
echo "Not found:${tnocomp}!"
3623
echo ""
3724
exit 1
3825
fi
@@ -55,9 +42,9 @@ do
5542
esac
5643
done
5744
shift "$(($OPTIND - 1))"
58-
tdir=`pwd`;
59-
srcdir="$1";
60-
dstdir="$2";
45+
tdir=$(pwd)
46+
srcdir="$1"
47+
dstdir="$2"
6148

6249
if [ "x$srcdir" = "x" -o "x$dstdir" = "x" -o "x$fhlp" = "xtrue" ]
6350
then

0 commit comments

Comments
 (0)