summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-07-03 08:57:28 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-07-03 08:57:28 +0200
commit836f8dbbae729cf5a3bae89ccca0129de8c2e77d (patch)
tree4419ee7db2895a64a6e8ec466cf80d4d032578ef /install
parent6f9ebc82577328dff7ffcb344a9f3e67151ba099 (diff)
downloadbin-836f8dbbae729cf5a3bae89ccca0129de8c2e77d.zip
bin-836f8dbbae729cf5a3bae89ccca0129de8c2e77d.tar.gz
add install
Diffstat (limited to 'install')
-rwxr-xr-xinstall17
1 files changed, 17 insertions, 0 deletions
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