Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

installer for the bits I want on $PATH

  • Loading branch information...
commit 709a275496d5dd451ffc138903deb80881289226 1 parent e6e6e12
@mcast authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 install.sh
View
27 install.sh
@@ -0,0 +1,27 @@
+#! /bin/sh
+
+do_inst() {
+ local dest leaf
+ dest="$1"
+ if ! [ -d "$dest" ] || ! [ -w "$dest" ]; then
+ echo "$0: $dest is not a writable directory" >&2
+ return 2
+ fi
+
+ ln -snv "$PWD/bin" "$dest/,git-yacontrib"
+ for leaf in git-ci git-co git-ff git-g git-gk git-iec git-k git-ll-cpanm git-ll-init git-qcommit git-rebase-topswap git-st git-undzil git-up; do
+ ln -snv ",git-yacontrib/$leaf" "$dest"
+ done
+}
+
+case "$1" in
+ -y) do_inst "$2" ;;
+# -h | --help)
+ *)
+ printf "usage: ./%s -y ~/bin/\n
+Writes symlinks into the specified directory.\n
+This isn't so much an install, as placing the files the author likes
+on \$PATH the way he does it.\n" \
+ "$( basename $0 )"
+ ;;
+esac
Please sign in to comment.
Something went wrong with that request. Please try again.