2021-03-08 05:07:05 +00:00
|
|
|
GF_BASE="/Users/james/Code/GreenFiling/eclipse/GreenFiling"
|
|
|
|
GF_JOURNAL="/Users/james/Code/GreenFiling/eclipse/JournalClient"
|
|
|
|
GF_ONELEGAL="/Users/james/Code/GreenFiling/eclipse/OneLegalClient"
|
|
|
|
GF_TYLER="/Users/james/Code/GreenFiling/eclipse/TexFileClient"
|
|
|
|
GF_TYBERA="/Users/james/Code/GreenFiling/eclipse/TyberaClient"
|
2020-03-02 15:32:19 +00:00
|
|
|
GF_LOG="/Users/james/Code/GreenFiling/data/logs"
|
2021-03-08 05:07:05 +00:00
|
|
|
|
|
|
|
switch(){
|
|
|
|
pushd /Users/james/Code/GreenFiling/buildtools/switch
|
|
|
|
bundle exec ruby switch.rb $@
|
|
|
|
popd
|
|
|
|
}
|
2020-03-02 15:32:19 +00:00
|
|
|
|
2022-08-30 18:30:22 +00:00
|
|
|
svn_stash() {
|
|
|
|
if [ ! -d .svn ]; then
|
|
|
|
echo "Not at ROOT of SVN directory."
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d .svn/stash ]; then
|
|
|
|
echo "creating .svn/stash directory"
|
|
|
|
mkdir -p .svn/stash/
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
echo "Missing stash name argument"
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
|
|
|
stash_file="$PWD/.svn/stash/${@[-1]}"
|
|
|
|
if [[ "$1" == "pop" ]] ; then
|
|
|
|
if [ ! -f $stash_file ]; then
|
|
|
|
echo "Cannot find stash: $stash_file"
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
patch -p0 < $stash_file
|
|
|
|
elif [[ "$1" == "list" ]] ; then
|
|
|
|
ls -1 .svn/stash/
|
|
|
|
else
|
|
|
|
if [ -f $stash_file ]; then
|
|
|
|
echo "stash already exist with that name: $stash_file"
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
echo "stash file can be found at $stash_file"
|
|
|
|
svn diff > $stash_file && svn revert -R .
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2020-03-02 15:32:19 +00:00
|
|
|
eval "$(rbenv init -)"
|