From 836f8dbbae729cf5a3bae89ccca0129de8c2e77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 3 Jul 2011 08:57:28 +0200 Subject: add install --- install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 install diff --git a/install b/install new file mode 100755 index 0000000..8d8b31a --- /dev/null +++ b/install @@ -0,0 +1,17 @@ +#! /bin/sh + +DEST_DIR=$HOME/bin + +rm *~ +for f in *; do + [ "$f" == "install" ] && continue + ff=$(readlink -f $f) + if [ ! -e $DEST_DIR/$f ]; then + echo "symlink $DEST_DIR/$f" && ln -s $ff $DEST_DIR/$f + else + bf=$(readlink -e $DEST_DIR/$f) + if [ "$bf" != "$ff" ]; then + echo "$bf is not OK" + fi + fi +done -- cgit v1.1-2-g2b99