Initial revision
This commit is contained in:
parent
28b3286e21
commit
673b1d79e2
6
util/ego/compare
Executable file
6
util/ego/compare
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
case $# in
|
||||||
|
1) DEST="$1" ;;
|
||||||
|
2) DEST="$2" ;;
|
||||||
|
*) echo $0 [source] destination ;;
|
||||||
|
esac
|
||||||
|
cmp "$1" ../../../lib/ego/$DEST
|
16
util/ego/install
Executable file
16
util/ego/install
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
case $# in
|
||||||
|
1) DEST="$1" ;;
|
||||||
|
2) DEST="$2" ;;
|
||||||
|
*) echo $0 [source] destination ;;
|
||||||
|
esac
|
||||||
|
mkdir ../../../lib/ego > /dev/null 2>&1
|
||||||
|
if cp "$1" ../../../lib/ego/$DEST >/dev/null 2>&1 ||
|
||||||
|
{ rm -f ../../../lib/ego/$DEST >/dev/null 2>&1 &&
|
||||||
|
cp "$1" ../../../lib/ego/$DEST >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo Sorry, can not create "lib/ego/$DEST".
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in a new issue