Skip to content

Commit

Permalink
0.20180605
Browse files Browse the repository at this point in the history
Simplify Version
  • Loading branch information
zvezdochiot committed Jun 5, 2018
1 parent 6c8d8c8 commit f751bcb
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 32 deletions.
4 changes: 2 additions & 2 deletions config/control
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Package: xcopy
Version: 0.20180525-wheezy
Version: 0.20180605-wheezy
Architecture: all
Maintainer: zvezdochiot <[email protected]>
Section: utils
Priority: optional
Installed-Size: 24
Installed-Size: 32
Depends: coreutils, findutils, cpio
Homepage: https://github.com/zvezdochiot/bash-xcopy
Description: Bash-script for xcopy.
Expand Down
18 changes: 18 additions & 0 deletions data/usr/share/doc/xcopy/CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Xcopy
https://github.com/zvezdochiot/bash-xcopy

0.20180605

Simplify Version

0.20180525

Options Version

0.20151118

Init Version

---
2015
zvezdochiot
1 change: 1 addition & 0 deletions data/usr/share/doc/xcopy/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.20180605
47 changes: 17 additions & 30 deletions data/usr/share/scripts/bash/xcopy.sh
Original file line number Diff line number Diff line change
@@ -1,38 +1,25 @@
#!/bin/sh

#xcopy.sh
#2018-05-25
#Depends: coreutils, findutils, cpio

echo "XCopy 0.20180525"
sname="XCopy"
sversion="0.20180605"

echo "$sname $sversion"

tnocomp=""
tcomp="/bin/cpio"
tdeb="cpio_*.deb"
if [ ! -f "$tcomp" ]
then
tnocomp="$tnocomp $tcomp($tdeb)"
fi
tcomp="/usr/bin/find"
tdeb="findutils_*.deb"
if [ ! -f "$tcomp" ]
then
tnocomp="$tnocomp $tcomp($tdeb)"
fi
tcomp="/usr/bin/sort"
tdeb="coreutils_*.deb"
if [ ! -f "$tcomp" ]
then
tnocomp="$tnocomp $tcomp($tdeb)"
fi
tcomp="/bin/ln"
tdeb="coreutils_*.deb"
if [ ! -f "$tcomp" ]
then
tnocomp="$tnocomp $tcomp($tdeb)"
fi
tcomp="cpio"
[ ! "$(command -v $tcomp)" ] && tnocomp="$tnocomp $tcomp"
tcomp="find"
[ ! "$(command -v $tcomp)" ] && tnocomp="$tnocomp $tcomp"
tcomp="sort"
[ ! "$(command -v $tcomp)" ] && tnocomp="$tnocomp $tcomp"
tcomp="ln"
[ ! "$(command -v $tcomp)" ] && tnocomp="$tnocomp $tcomp"
if [ "x$tnocomp" != "x" ]
then
echo "Not found $tnocomp !"
echo "Not found:${tnocomp}!"
echo ""
exit 1
fi
Expand All @@ -55,9 +42,9 @@ do
esac
done
shift "$(($OPTIND - 1))"
tdir=`pwd`;
srcdir="$1";
dstdir="$2";
tdir=$(pwd)
srcdir="$1"
dstdir="$2"

if [ "x$srcdir" = "x" -o "x$dstdir" = "x" -o "x$fhlp" = "xtrue" ]
then
Expand Down

0 comments on commit f751bcb

Please sign in to comment.