Initial revision
This commit is contained in:
parent
25fd718557
commit
6062643c14
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…
x
Reference in New Issue
Block a user