From 7c5739a677884afa8824b6fe8da7968535940457 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 13 Oct 2005 10:03:27 +0000 Subject: [PATCH] added sane_editor and sa --- sa | 15 +++++++++++++++ sane_editor | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100755 sa create mode 100755 sane_editor diff --git a/sa b/sa new file mode 100755 index 0000000..54530d2 --- /dev/null +++ b/sa @@ -0,0 +1,15 @@ +#!/bin/sh + +# sync all script + +# attempt to sync all known svn projects + +if [ "$1" == "quick" ]; then + $IGNORE="--ignore-externals"; +fi; + +for dir in ~/ ~/.hide ~/projects/propel ~/bin ~/lib; do + if [ -e $dir/.svn ]; then + svn update $IGNORE $dir; + fi; +done; \ No newline at end of file diff --git a/sane_editor b/sane_editor new file mode 100755 index 0000000..b12b99f --- /dev/null +++ b/sane_editor @@ -0,0 +1,33 @@ +#!/bin/sh + +# Order of preference +# gnuclient +# jed +# juno +# vi +# nano +# ed + +# modify the gsrvdir check to search for directories that are owned by me +if [ -x /usr/bin/gnuclient ] && [ -x /usr/bin/emacs ]; then + if ( gnuclient -batch < /dev/null >/dev/null); then + exec gnuclient "$@"; + fi; +fi; +if [ -x /usr/bin/jed ]; then + exec jed "$@"; +fi; +if [ -x /usr/bin/juno ]; then + exec juno "$@"; +fi; +if [ -x /usr/bin/vi ]; then + exec vi "$@"; +fi; +if [ -x /usr/bin/nano ]; then + exec nano "$@"; +fi; +if [ -x /usr/bin/ed ]; then + exec ed "$@"; +fi; +echo "Unable to find a suitable editor" >/dev/stderr; +exit 1; \ No newline at end of file -- 2.39.2