<li><big>Setting environment variables for clam:</big></li>
<small> </small><big> </big><small> </small>
<ol>
- <li><big>YETI_DIR:</big></li>
+ <li><big>FEISTY_MEOW_DIR:</big></li>
<small> </small><big> </big><small> </small>
<ol>
<small> </small><big> </big><small> </small>
This variable has been needed since clam became
part of the YETIcode project (at <a href="http://yeticode.org/">http://yeticode.org</a>).</big></li>
<small> </small>
- <li><big>The default location for clam is under the YETI_DIR
+ <li><big>The default location for clam is under the FEISTY_MEOW_DIR
in a
folder named clam, although the version of clam shipped with the HOOPLE
code (http://hoople.org) actually lives under the root of the hoople
<small> </small><big> </big><small> </small>
<li><big>If the yeti root directory is in $HOME/yeti
already, then the
-default for YETI_DIR will work and it doesn't need to be declared.</big></li>
+default for FEISTY_MEOW_DIR will work and it doesn't need to be declared.</big></li>
<li><big>Setting the variable:<br>
</big></li>
<small> </small><big> </big><small> </small>
<ol>
<small> </small><big> </big><small> </small>
<li><big>On Unix (assuming bash as shell): <span
- style="font-weight: bold;">export MAKEFLAGS="-I $YETI_DIR/clam"</span></big></li>
+ style="font-weight: bold;">export MAKEFLAGS="-I $FEISTY_MEOW_DIR/clam"</span></big></li>
<small> </small><big> </big><small> </small>
<li><big>On win32: <span style="font-weight: bold;">set
-MAKEFLAGS="-I %YETI_DIR%/clam"</span></big></li>
+MAKEFLAGS="-I %FEISTY_MEOW_DIR%/clam"</span></big></li>
<small> </small><big> </big><small> </small>
<li><big>This variable also requires forward slashes
instead of
these files. If you destroy your life by running one of them, I
will have sympathy, but that's about it.</li>
<li>Some of these shell scripts depend on environment variables.
-The most frequent case of this is YETI_DIR, which should point to the
+The most frequent case of this is FEISTY_MEOW_DIR, which should point to the
top-level
directory where the YETIcode scripts are stored on your
machine. This variable is set by default when the scripts are in
standard output. The output can be piped into another file as desired.</blockquote>
<h3> <a href="../core/generate_aliases.pl">generate_aliases.pl</a></h3>
<blockquote>Performs some useful activities for the YETI shell
-environment. Using the environment variable for SHELLDIR (which
+environment. Using the environment variable for FEISTY_MEOW_SCRIPTS (which
is set in the appropriate startup files to be the shell scripts
directory, where all this stuff lives), generate_aliases will create
all of the aliases files for the combinations of operating systems and
#!/bin/bash
-cd $YETI_DIR
+cd $FEISTY_MEOW_DIR
# change to the yeti root.
cd ..
if ($outcome) { die("failure to undo archive"); }
local($outcome) =
- 0xff & system "bash", "$SHELLDIR/files/normal_perm.sh", ".";
+ 0xff & system "bash", "$FEISTY_MEOW_SCRIPTS/files/normal_perm.sh", ".";
if ($outcome) { die("failure to normalize permissions"); }
# remove any links that might have crept in; these can cause mischief.
local($number) = &retrieve_number("aa_backup");
# variables for directory location to backup and the file to dump it in.
-local($root) = $YETI_DIR;
+local($root) = $FEISTY_MEOW_DIR;
local($base) = &snarf_prefix("yeti");
local($snarf_file) = &snarf_name($base, $number);
#!/bin/bash
-source "$YETI_DIR/scripts/build/seek_all_source.sh"
+source "$FEISTY_MEOW_DIR/scripts/build/seek_all_source.sh"
function strip_file {
file="$1"
- perl $SHELLDIR/text/strip_cr.pl "$file"
+ perl $FEISTY_MEOW_SCRIPTS/text/strip_cr.pl "$file"
}
#echo tempfile is $SOURCES_FOUND_LIST
function strip_file {
file=$1
- perl $SHELLDIR/strip_cr.pl $file
+ perl $FEISTY_MEOW_SCRIPTS/strip_cr.pl $file
}
#echo tempfile is $SOURCES_FOUND_LIST
SOURCES_FOUND_LIST="$(mktemp "$TMP/sources_found.XXXXXX")"
-source $SHELLDIR/build/seek_all_source.sh $*
+source $FEISTY_MEOW_SCRIPTS/build/seek_all_source.sh $*
# got a list of source files now.
function examine_file {
fi
for i in $dir/*.exe; do
- mt -manifest $SHELLDIR/clam/cpp/security_manifest.txt -outputresource:$i\;\#1
+ mt -manifest $FEISTY_MEOW_SCRIPTS/clam/cpp/security_manifest.txt -outputresource:$i\;\#1
done
#
# go to the main folder of the project you're building before you run this.
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
echo "$(date_stringer)"
echo "Building application from $(\pwd)"
# standard CLAM location, then modify this appropriately.
export CLAM_DIR
# must be set externally!
-#export CLAM_DIR := $(SHELLDIR)/clam
+#export CLAM_DIR := $(FEISTY_MEOW_SCRIPTS)/clam
# "TARGETS_DIR" is where all generated files will end up. Usually the
# files are put in a subdirectory named after their file type, such as
#fi
#popd &>/dev/null
-# set up the yeti dir.
+# set up the feisty_meow dir.
pushd "$YETI_CORE_SCRIPTS_DIR/../.." &>/dev/null
-export YETI_DIR="$(pwd)"
+export FEISTY_MEOW_DIR="$(pwd)"
popd &>/dev/null
-#echo yeti is $YETI_DIR
+#echo feisty_meow is $FEISTY_MEOW_DIR
-export YETI_SCRIPTS="$YETI_DIR/scripts"
-export SHELLDIR="$YETI_SCRIPTS"
+export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_DIR/scripts"
-# GENERADIR is where the generated files yeti uses are located.
-export GENERADIR="$HOME/.zz_auto_gen"
+# FEISTY_MEOW_GENERATED is where the generated files feisty_meow uses are located.
+export FEISTY_MEOW_GENERATED="$HOME/.zz_auto_gen"
if [ ! -z "$WINDIR" -o ! -z "$windir" ]; then
# assume they are using windoze.
- export GENERADIR="$TMP/zz_auto_gen"
+ export FEISTY_MEOW_GENERATED="$TMP/zz_auto_gen"
fi
-if [ ! -d "$GENERADIR" ]; then
- mkdir "$GENERADIR"
+if [ ! -d "$FEISTY_MEOW_GENERATED" ]; then
+ mkdir "$FEISTY_MEOW_GENERATED"
fi
-YETIVARS="$GENERADIR/yeti_variables.sh"
-echo >"$YETIVARS"
-for i in YETI_DIR YETI_SCRIPTS SHELLDIR GENERADIR; do
- echo "export $i=${!i}" >>"$YETIVARS"
+GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/feisty_meow_variables.sh"
+echo >"$GENERATED_FEISTY_MEOW_VARIABLES"
+for i in FEISTY_MEOW_DIR FEISTY_MEOW_SCRIPTS FEISTY_MEOW_GENERATED; do
+ echo "export $i=${!i}" >>"$GENERATED_FEISTY_MEOW_VARIABLES"
done
# create our common aliases.
-perl "$YETI_SCRIPTS/core/generate_aliases.pl"
+perl "$FEISTY_MEOW_SCRIPTS/core/generate_aliases.pl"
-echo -e '\n\n'
-echo Established this set of variables to describe how to find yeti assets:
-cat "$YETIVARS"
-echo -e '\n'
+echo ==========================================
+echo Established this set of variables to describe how to find feisty_meow assets:
+cat "$GENERATED_FEISTY_MEOW_VARIABLES"
+echo ==========================================
source $HOME/yeti/scripts/profile.sh
export host=$(hostname)
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
# use this to always print the message.
# export hostlist=$host
if [ "$host" = "$i" -o "$host" = "$i.$DOMAIN_NAME" ]; then
# echo $(date_stringer)": $host matched." >>$HOME/host_matched_in_byejob.txt
( /bin/bash <<end
- sleep 7; bash $SHELLDIR/byemessage.sh /dev/console
+ sleep 7; bash $FEISTY_MEOW_SCRIPTS/byemessage.sh /dev/console
end
)&
jobs
alias cd.....='\cd ../../../..'
alias copy='\cp -i -v '
alias cp='\cp -i -v '
-alias cvs='perl $SHELLDIR/rev_control/cvs_fix.pl'
-alias del='perl $SHELLDIR/files/safedel.pl'
-alias deltree='perl $SHELLDIR/files/safedel.pl'
+alias cvs='perl $FEISTY_MEOW_SCRIPTS/rev_control/cvs_fix.pl'
+alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
+alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
alias df='\df -m'
-alias dir='perl $SHELLDIR/files/summing_dir.pl'
+alias dir='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl'
alias du='\du -h'
alias dvd_rip='vobcopy -m'
-alias erase='perl $SHELLDIR/files/safedel.pl'
+alias erase='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
alias l='\ls -FC $color_add'
alias ls='\ls -FC $color_add'
alias lsd='ls -l'
alias mv='\mv -i -v '
alias np='gvim'
alias path='echo $PATH'
-alias play='bash $SHELLDIR/multimedia/sound_play.sh'
-alias rmdir='perl $SHELLDIR/files/zapdirs.pl'
-alias rd='perl $SHELLDIR/files/zapdirs.pl'
+alias play='bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh'
+alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
+alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl'
#regen-- this might be better as a function.
-alias regenerate='bash $SHELLDIR/core/bootstrap_shells.sh ; perl $SHELLDIR/core/generate_aliases.pl ; echo ; nechung'
+alias regenerate='bash $FEISTY_MEOW_SCRIPTS/core/bootstrap_shells.sh ; perl $FEISTY_MEOW_SCRIPTS/core/generate_aliases.pl ; echo ; nechung'
alias reroot='chown -R root:root /root'
-alias rm='perl $SHELLDIR/files/safedel.pl'
+alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl'
alias ren='\mv -v -i '
alias up='cd ..'
alias whence=which
#hmmm: move these to the custom area?
# Standard CAK aliases that add to or extend Unix commands.
-alias bye='. $SHELLDIR/core/goodbye.sh'
+alias bye='. $FEISTY_MEOW_SCRIPTS/core/goodbye.sh'
alias calc='kcalc'
alias cls='clear_colormap; clear'
if [ "$OS" != "Windows_NT" ]; then
alias exp='konqueror'
fi
else
- alias explorer="bash $SHELLDIR/winders/exploder.sh"
- alias exp="bash $SHELLDIR/winders/exploder.sh"
+ alias explorer="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
+ alias exp="bash $FEISTY_MEOW_SCRIPTS/winders/exploder.sh"
fi
alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'"
alias notepad='gedit'
alias why='echo just because.'
# call the generated aliases file, if it exists.
-if [ -f "$GENERADIR/p_alias.sh" ]; then
+if [ -f "$FEISTY_MEOW_GENERATED/p_alias.sh" ]; then
if [ ! -z "$SHELL_DEBUG" ]; then echo launching generated aliases.; fi
- source $GENERADIR/p_alias.sh
+ source $FEISTY_MEOW_GENERATED/p_alias.sh
if [ ! -z "$SHELL_DEBUG" ]; then echo done with generated aliases.; fi
fi
# This creates a temporary directory for transient files if such a directory
# does not already exist.
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
if [ ! -z "$SHELL_DEBUG" ]; then echo creating temporary directory...; fi
# information for su.
# get the x authority info for our current user.
- source $SHELLDIR/x_win/get_x_auth.sh
+ source $FEISTY_MEOW_SCRIPTS/x_win/get_x_auth.sh
if [ -z "$X_auth_info" ]; then
# if there's no authentication info to pass along, we just do a normal su.
fi
# relabel the console after returning.
- bash $SHELLDIR/tty/label_terminal_with_infos.sh
+ bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh
}
# sudo function wraps the normal sudo by ensuring we replace the terminal
/usr/bin/sudo $*
if [ "$first_command" == "su" ]; then
# yep, they were doing an su, but they're back now.
- bash $SHELLDIR/tty/label_terminal_with_infos.sh
+ bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh
fi
}
# this kind of assumes you've already checked them for any salient facts.
function clean_cvs_junk {
for i in $*; do
- find $i -follow -type f -iname ".#*" -exec perl $SHELLDIR/files/safedel.pl {} ";"
+ find $i -follow -type f -iname ".#*" -exec perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl {} ";"
done
}
##############
# make sure we know where to store the files we're creating.
-if ( ! length("$GENERADIR") ) {
+if ( ! length("$FEISTY_MEOW_GENERATED") ) {
print "\
-The GENERADIR variable is not defined. This must point to the location where\n\
+The FEISTY_MEOW_GENERATED variable is not defined. This must point to the location where\n\
the generated scripts are stored. Perhaps you still need to run\n\
bootstrap_shells.sh and set up some environment variables. Please see\n\
http://yeticode.org for more details.\n";
#really need to use better exit codes.
}
-$GENERADIR =~ s/\\/\//g;
-$SHELLDIR =~ s/\\/\//g;
-$YETI_DIR =~ s/\\/\//g;
+$FEISTY_MEOW_GENERATED =~ s/\\/\//g;
+$FEISTY_MEOW_SCRIPTS =~ s/\\/\//g;
+$FEISTY_MEOW_DIR =~ s/\\/\//g;
# create our generated shells directory if it's not already there.
-if (! -d $GENERADIR) {
- mkdir $GENERADIR;
+if (! -d $FEISTY_MEOW_GENERATED) {
+ mkdir $FEISTY_MEOW_GENERATED;
}
##############
##############
-system("bash \"$SHELLDIR\"/core/unter_alia.sh");
+system("bash \"$FEISTY_MEOW_SCRIPTS\"/core/unter_alia.sh");
# generate the first set of alias files; these are the root files used
# by the shell. each of them will be written to in turn invoke the
- # p_alias files which are made from the set of scripts in YETI_SCRIPTS
+ # p_alias files which are made from the set of scripts in FEISTY_MEOW_SCRIPTS
# (see below).
# trash the old versions.
-unlink("$GENERADIR/p_alias.sh");
+unlink("$FEISTY_MEOW_GENERATED/p_alias.sh");
-printf "writing $GENERADIR/p_alias.sh...\n";
+printf "writing $FEISTY_MEOW_GENERATED/p_alias.sh...\n";
# open the alias files to be created.
-open(she, ">> $GENERADIR/p_alias.sh");
+open(she, ">> $FEISTY_MEOW_GENERATED/p_alias.sh");
#print "os is $OS\n";
# find the list of files in the scripts directory.
-#opendir(scripts, "$SHELLDIR");
+#opendir(scripts, "$FEISTY_MEOW_SCRIPTS");
#@shell_files = sort(readdir(scripts));
#print "yeti scripts: @shell_files\n";
-@shell_files = &load_file_names("$SHELLDIR");
+@shell_files = &load_file_names("$FEISTY_MEOW_SCRIPTS");
# construct aliases for items in the scripts directory.
foreach $file (@shell_files) {
if ($file =~ '^\.$'
|| $file =~ '^\.\.$'
|| $file =~ '^.svn$'
+ || $file =~ '^.git$'
|| $file =~ /\/\.$/
|| $file =~ /\/\.\.$/
- || $file =~ /\/\.svn$/) {
+ || $file =~ /\/\.svn$/
+ || $file =~ /\/\.git$/
+ ) {
# just skip this item; it's a special directory.
- } elsif (-d "$SHELLDIR/$file") {
+ } elsif (-d "$FEISTY_MEOW_SCRIPTS/$file") {
# if we see a subdirectory in the scripts folder, we add all the
# scripts in it as aliases. we recurse only one level.
- opendir(subdir, "$SHELLDIR/$file");
+ opendir(subdir, "$FEISTY_MEOW_SCRIPTS/$file");
@subdir_files = sort(readdir(subdir));
foreach $subfile (@subdir_files) {
push(@shell_files, "$file/$subfile");
} else {
# if it's a regular file, we'll try to make an alias for it. the function
# will only fire if the ending is appropriate for the script languages we use.
- &make_alias($file, "$SHELLDIR");
+ &make_alias($file, "$FEISTY_MEOW_SCRIPTS");
}
}
#!/bin/bash
-bash $SHELLDIR/byemessage.sh
+bash $FEISTY_MEOW_SCRIPTS/byemessage.sh
-nohup bash $SHELLDIR/byejob.sh >/dev/null 2>&1
+nohup bash $FEISTY_MEOW_SCRIPTS/byejob.sh >/dev/null 2>&1
if [ -f $TMP/trash.last_keep_awake_process ]; then
kill -9 $(cat $TMP/trash.last_keep_awake_process)
#!/bin/bash
(
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
echo '###############################################################################'
echo
echo '###############################################################################'
echo
echo You are running the following processes:
-. $SHELLDIR/users/findme.sh
+. $FEISTY_MEOW_SCRIPTS/users/findme.sh
echo
echo '###############################################################################'
) | less
# lightweight version of unix login script.
#
-source $SHELLDIR/core/variables.sh
-source $SHELLDIR/core/create_tempdir.sh
+source $FEISTY_MEOW_SCRIPTS/core/variables.sh
+source $FEISTY_MEOW_SCRIPTS/core/create_tempdir.sh
# when they run.
####fault--repeated code from bootstrap. isolate to shared location.
-# GENERADIR is where the generated files yeti uses are located.
-export GENERADIR="$HOME/.zz_auto_gen"
+# FEISTY_MEOW_GENERATED is where the generated files yeti uses are located.
+export FEISTY_MEOW_GENERATED="$HOME/.zz_auto_gen"
if [ ! -z "$WINDIR" -o ! -z "$windir" ]; then
# assume they are using windoze.
- export GENERADIR="$TMP/zz_auto_gen"
+ export FEISTY_MEOW_GENERATED="$TMP/zz_auto_gen"
fi
# make sure our main variables are established.
-YETIVARS="$GENERADIR/yeti_variables.sh"
-if [ ! -f "$YETIVARS" ]; then
+GENERATED_FEISTY_MEOW_VARIABLES="$FEISTY_MEOW_GENERATED/feisty_meow_variables.sh"
+if [ ! -f "$GENERATED_FEISTY_MEOW_VARIABLES" ]; then
echo -e '\n\n'
echo "The yeti scripts need to be initialized via the bootstrap process, e.g.:"
echo " bash $HOME/feisty_meow/scripts/core/bootstrap_shells.sh"
fi
# pull in our variable set.
-source "$YETIVARS"
+source "$GENERATED_FEISTY_MEOW_VARIABLES"
# define a default name, if one wasn't already set.
if [ -z "$NAME" ]; then
export HOME=/c/home
fi
if [ ! -d "$HOME" ]; then mkdir $HOME; fi
-## export GENERADIR=$TMP/zz_auto_gen
+## export FEISTY_MEOW_GENERATED=$TMP/zz_auto_gen
fi
if [ -z "$LIGHTWEIGHT_INIT" ]; then
# perform the bulk of the login.
- source $SHELLDIR/core/unix_login.sh
+ source $FEISTY_MEOW_SCRIPTS/core/unix_login.sh
else
# this is the lightweight login that just wants variables set.
- source $SHELLDIR/core/lightweight_unix_login.sh
+ source $FEISTY_MEOW_SCRIPTS/core/lightweight_unix_login.sh
fi
+++ /dev/null
-# This file contains aliases that extend the set of commands available
-# to the interactive shell user in Unix. They are personally tailored.
-
-if [ ! -z "$SHELL_DEBUG" ]; then
- echo specialized alias initialization begins...
-fi
-
-# define our functions for use in the shell.
-source "$SHELLDIR/core/functions.sh"
-
-# Standard CAK aliases that add to or extend Unix commands.
-alias bye='. $SHELLDIR/core/goodbye.sh'
-alias calc='kcalc'
-alias cls='clear_colormap; clear'
-if [ "$OS" != "Windows_NT" ]; then
- if [ -n "$IS_DARWIN" ]; then
- # case for mac os x.
- alias exp='open'
- elif [ ! -z "$(which nautilus)" ]; then
- alias exp='nautilus'
- else
-#check if konqueror exists also? fall back to uhhh midnight cmdr?
- alias exp='konqueror'
- fi
-else
- alias explorer="bash $SHELLDIR/winders/exploder.sh"
- alias exp="bash $SHELLDIR/winders/exploder.sh"
-fi
-
-alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'"
-alias notepad='gedit'
-if [ "$OS" = "Windows_NT" ]; then
- # aliases we only use on the winders side.
- alias vi='gvim'
-fi
-
-# su function: makes su perform a login.
-# for some OSes, this transfers the X authority information to the new login.
-function su {
- # decide if we think this is debian or ubuntu or a variant.
- DEBIAN_LIKE=$(if [ ! -z "$(grep -i debian /etc/issue)" \
- -o ! -z "$(grep -i ubuntu /etc/issue)" ]; then echo 1; else echo 0; fi)
-
- if [ $DEBIAN_LIKE -eq 1 ]; then
- # debian currently requires the full version which imports X authority
- # information for su.
-
- # get the x authority info for our current user.
- source $SHELLDIR/x_win/get_x_auth.sh
-
- if [ -z "$X_auth_info" ]; then
- # if there's no authentication info to pass along, we just do a normal su.
- /bin/su -l $*
- else
- # under X, we update the new login's authority info with the previous
- # user's info.
- (unset XAUTHORITY; /bin/su -l $* -c "$X_auth_info ; export DISPLAY=$DISPLAY ; bash")
- fi
- else
- # non-debian supposedly doesn't need the extra overhead any more.
- # or at least suse doesn't, which is the other one we've tested on.
- /bin/su -l $*
- fi
-
- # relabel the console after returning.
- bash $SHELLDIR/tty/label_terminal_with_infos.sh
-}
-
-# sudo function wraps the normal sudo by ensuring we replace the terminal
-# label if they're doing an su with the sudo.
-function sudo {
- local first_command="$1"
- /usr/bin/sudo $*
- if [ "$first_command" == "su" ]; then
- # yep, they were doing an su, but they're back now.
- bash $SHELLDIR/tty/label_terminal_with_infos.sh
- fi
-}
-
-alias whereami='echo whoa dude, try not to think about it...'
-
-# buntar is a long needed uncompressing macro that feeds into tar -x.
-# it takes a list of bz2 file names and extracts their contents into
-# sequentially numbered directories.
-function buntar {
- index=1
- for i in $*; do
- mkdir buntar_$index
- pushd buntar_$index &>/dev/null
- file=$i
- # if the filename has no directory component, we will assume it used to
- # be above our unzipping directory here.
- if [ "$(basename $file)" = $file ]; then
- file=../$file
- fi
- bunzip2 -d -c $file | tar -xf -
- popd &>/dev/null
- index=$(expr $index + 1)
- done
-}
-
-# trashes the .#blah files that cvs and svn leave behind when finding conflicts.
-# this kind of assumes you've already checked them for any salient facts.
-function clean_cvs_junk {
- for i in $*; do
- find $i -follow -type f -iname ".#*" -exec perl $SHELLDIR/files/safedel.pl {} ";"
- done
-}
-
-# call the generated aliases file, if it exists.
-if [ -f "$GENERADIR/p_alias.sh" ]; then
- if [ ! -z "$SHELL_DEBUG" ]; then echo launching generated aliases.; fi
- source $GENERADIR/p_alias.sh
- if [ ! -z "$SHELL_DEBUG" ]; then echo done with generated aliases.; fi
-fi
-
-# remove the fredization macro if it was defined, helping to avoid running
-# the shell scripts twice for users like root that don't always load this
-# stuff.
-unalias fredme >/dev/null 2>&1
-
-if [ ! -z "$SHELL_DEBUG" ]; then echo aliases initialization ends....; fi
-
if [ ! -z "$SHELL_DEBUG" ]; then echo unix login begins...; fi
-GENERADIR=$(echo $GENERADIR | sed -e 's/\\/\//g')
-YETI_SCRIPTS="$(echo $YETI_SCRIPTS | sed -e 's/\\/\//g')"
-SHELLDIR="$YETI_SCRIPTS"
+FEISTY_MEOW_GENERATED=$(echo $FEISTY_MEOW_GENERATED | sed -e 's/\\/\//g')
+FEISTY_MEOW_SCRIPTS="$(echo $FEISTY_MEOW_SCRIPTS | sed -e 's/\\/\//g')"
+FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_SCRIPTS"
# Set up all of the environment's system variables. This is the first step
# in the majestic plan we have for this shell's initialization.
-source $YETI_SCRIPTS/core/variables.sh
+source $FEISTY_MEOW_SCRIPTS/core/variables.sh
# Also set up the temporary directory...
-source $YETI_SCRIPTS/core/create_tempdir.sh
+source $FEISTY_MEOW_SCRIPTS/core/create_tempdir.sh
# ulimit and umask. umask sets a permission mask for all file
# creations. The mask shown here disallows writing by the "group" and
if [ ! -z "$SHELL_DEBUG" ]; then
echo the aliases were missing, now they are added...
fi
- source $GENERADIR/aliases.sh
+ source $FEISTY_MEOW_GENERATED/aliases.sh
fi
# allow connections to our x server from the local host.
fi
# a minor tickle of the title of the terminal, in case there is one.
-bash $YETI_SCRIPTS/tty/label_terminal_with_infos.sh
+bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh
if [ ! -z "$SHELL_DEBUG" ]; then echo unix login ends....; fi
#!/bin/bash
# generates alias files for different operating systems and shell scripts.
+# or really, mainly for bash these days, on linux. but we also run under
+# msys and cygwin to some degree.
#
-# This script generates command alias definitions for a variety of different
-# shells. The "common.alias" file is used in all of the generated
-# files as a base set of generally useful aliases. Then the appropriate
-# shell's specific aliases are added in; these are named after the shell that
-# they support, e.g. "sh_aliases.txt" is used with the sh and bash shells.
-# The third component of the file is a set of aliases generated automatically
-# from the names of all the shell scripts in SHELLDIR.
+# The "common.alias" file is used in the generated aliases file as a base
+# set of generally useful aliases. Shorter aliases based on any scripts
+# we can find in the feisty meow script hierarchy are added in as well.
#
-# Additionally, if a file named "c_common_aliases.txt" is found in the
-# $SHELLDIR/custom directory, then it is added in after the other alias files
-# and can override any existing aliases or provide additional local aliases.
-# This file is not included with the YETIcode scripts, since it is intended
-# to be provided by individual users.
-#
-# Further, if any other shell-specific alias files are found mirrored under
-# the custom folder, they are pulled in as overrides for that kind of shell.
-# For example, there is a sh_aliases.txt in the scripts directory for sh,
-# but if there's also scripts/custom/c_sh_aliases.txt, then that will be
-# plugged in as well.
+# If any other alias files are found in the scripts/custom folder, they
+# are pulled in as additions and overrides for the basic feisty meow command
+# set.
+
+if [ ! -z "$SHELL_DEBUG" ]; then echo rebuiling generated aliases file...; fi
# create our generated shells directory if it's not already.
-if [ ! -d $GENERADIR ]; then mkdir $GENERADIR; fi
+if [ ! -d $FEISTY_MEOW_GENERATED ]; then mkdir $FEISTY_MEOW_GENERATED; fi
# test if we can use color in ls...
test_color=$(ls --help 2>&1 | grep -i color)
-export COMMON_FILES=$SHELLDIR/core/common_aliases.txt
+ALIAS_DEFINITION_FILES=("$FEISTY_MEOW_SCRIPTS/core/common.alias")
# if custom aliases files exist, add them to the list.
-for i in "$SHELLDIR/custom/*.txt"; do
- COMMON_FILES+=" $i"
+for i in "$FEISTY_MEOW_SCRIPTS/custom/*.alias"; do
+echo adding $i
+ ALIAS_DEFINITION_FILES+=("$i")
+done
+echo "alias files:"
+for i in "${ALIAS_DEFINITION_FILES[@]}"; do
+ echo " $(basename $(dirname $i))/$(basename $i)"
done
-echo -e "Found alias files:\n$COMMON_FILES"
# write the aliases for sh and bash scripts.
-export ALIASES_FILE="$GENERADIR/aliases.sh"
-echo "writing $ALIASES_FILE..."
+GENERATED_ALIAS_FILE="$FEISTY_MEOW_GENERATED/aliases.sh"
+echo "writing $GENERATED_ALIAS_FILE..."
#hmmm: perhaps a good place for a function to create the header,
# given the appropriate comment code.
-echo "##" >$ALIASES_FILE
-echo "## generated file: $ALIASES_FILE" >>$ALIASES_FILE
-echo "## please do not edit." >>$ALIASES_FILE
-echo "##" >>$ALIASES_FILE
+echo "##" >$GENERATED_ALIAS_FILE
+echo "## generated file: $GENERATED_ALIAS_FILE" >>$GENERATED_ALIAS_FILE
+echo "## please do not edit." >>$GENERATED_ALIAS_FILE
+echo "##" >>$GENERATED_ALIAS_FILE
if [ ! -z "$test_color" ]; then
- echo "color_add=--color=auto" >>$ALIASES_FILE
+ echo "color_add=--color=auto" >>$GENERATED_ALIAS_FILE
else
- echo "color_add=" >>$ALIASES_FILE
+ echo "color_add=" >>$GENERATED_ALIAS_FILE
fi
-# we process the alias file to add the word "alias" to the first of every
-# line that's not a comment.
-#cat $COMMON_FILES | sed -e 's/^\([^#]\)/alias \1/' >>$ALIASES_FILE
-#nope: we no longer do that.
-
-cat $COMMON_FILES >>$ALIASES_FILE
-
-#echo "##" >>$ALIASES_FILE
-#echo "## now including shell specific additions..." >>$ALIASES_FILE
-#echo "##" >>$ALIASES_FILE
-## then just dump the sh specific alias stuff into the file.
-#cat $SHELLDIR/core/sh_aliases.txt >>$ALIASES_FILE
-# add in customized sh aliases if they exist.
-#if [ -f "$SHELLDIR/custom/c_sh_aliases.txt" ]; then
-# cat $SHELLDIR/custom/c_sh_aliases.txt >>$ALIASES_FILE
-#fi
+# plow in the full set of aliases into the file.
+for i in "${ALIAS_DEFINITION_FILES[@]}"; do
+ cat $i >>$GENERATED_ALIAS_FILE
+done
+if [ ! -z "$SHELL_DEBUG" ]; then echo done rebuiling generated aliases file.; fi
# configuration examples, javascript code, and other stuff.
export SCRIPT_SYSTEM=feisty_meow
-#if [ -z "$YETI_DIR" ]; then export YETI_DIR="$HOME/$SCRIPT_SYSTEM"; fi
-#if [ -z "$YETI_SCRIPTS" ]; then export YETI_SCRIPTS="$YETI_DIR/scripts"; fi
-#if [ -z "$SHELLDIR" ]; then export SHELLDIR="$YETI_SCRIPTS"; fi
+#if [ -z "$FEISTY_MEOW_DIR" ]; then export FEISTY_MEOW_DIR="$HOME/$SCRIPT_SYSTEM"; fi
+#if [ -z "$FEISTY_MEOW_SCRIPTS" ]; then export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_DIR/scripts"; fi
+#if [ -z "$FEISTY_MEOW_SCRIPTS" ]; then export FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_SCRIPTS"; fi
# include helpful functions.
-source "$YETI_SCRIPTS/core/functions.sh"
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
# LIBDIR is an older variable that points at the root of the yeti code.
-export LIBDIR=$YETI_DIR
+export LIBDIR=$FEISTY_MEOW_DIR
-if [ -z "$GENERADIR" ]; then
+if [ -z "$FEISTY_MEOW_GENERATED" ]; then
# The generated scripts directory is where automatically generated files live.
# It is separate from the main body of the shell scripts in order to keep things from
# exploding.
- export GENERADIR=$HOME/.zz_auto_gen
+ export FEISTY_MEOW_GENERATED=$HOME/.zz_auto_gen
fi
##############################################################################
##############################################################################
# pull in the custom overrides for feisty_meow scripts.
-for i in $YETI_SCRIPTS/custom/*.sh; do
- echo "Sourcing custom file: $i"
+for i in $FEISTY_MEOW_SCRIPTS/custom/*.sh; do
+ if [ ! -z "$SHELL_DEBUG" ]; then
+ echo "loading customization: $(basename $(dirname $i))/$(basename $i)"
+ fi
source $i
done
if [ "$OS" != "Windows_NT" ]; then
PERLLIB+="/usr/lib/perl5"
else
-#echo "the scripts dir is $YETI_SCRIPTS"
- YETI_SCRIPTS="$(echo $YETI_SCRIPTS | sed -e 's/\\/\//g')"
- SHELLDIR="$YETI_SCRIPTS"
-#echo "the scripts dir is now $SHELLDIR"
+#echo "the scripts dir is $FEISTY_MEOW_SCRIPTS"
+ FEISTY_MEOW_SCRIPTS="$(echo $FEISTY_MEOW_SCRIPTS | sed -e 's/\\/\//g')"
+ FEISTY_MEOW_SCRIPTS="$FEISTY_MEOW_SCRIPTS"
+#echo "the scripts dir is now $FEISTY_MEOW_SCRIPTS"
export PERLIO=:perlio
# choose perl's IO over the system's so we can handle file bytes exactly.
fi
#make this automatic!
-PERLLIB+=":$YETI_SCRIPTS/core:$YETI_SCRIPTS/text:$YETI_SCRIPTS/files:$YETI_SCRIPTS/archival"
+PERLLIB+=":$FEISTY_MEOW_SCRIPTS/core:$FEISTY_MEOW_SCRIPTS/text:$FEISTY_MEOW_SCRIPTS/files:$FEISTY_MEOW_SCRIPTS/archival"
# set this so nechung can find its data.
export NECHUNG=$LIBDIR/database/fortunes.dat
fi
# Set the path for locating applications.
-export PATH="$(dos_to_msys_path $BINDIR):$(dos_to_msys_path $GENERADIR):$PATH:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/lib:/usr/games:/usr/bin:."
+export PATH="$(dos_to_msys_path $BINDIR):$(dos_to_msys_path $FEISTY_MEOW_GENERATED):$PATH:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/lib:/usr/games:/usr/bin:."
if [ ! -z "$SHELL_DEBUG" ]; then echo variables initialization ends....; fi
#!/bin/bash
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
temphost=$(hostname | sed -e 's/\([^.]*\)\..*/\1/')
tar -czf /z/stuffing/archives/backup_dbs_${temphost}_$(date_stringer).tar.gz /home/archives/mysql_dbs/*
sudo chown -R $USER "$SPAM_HOLD"
sudo chgrp -R $USER "$SPAM_HOLD"
echo "Running checker for false-positive spams..."
-bash "$SHELLDIR/email/scan_spam.sh" "$SPAM_HOLD" "$EMAIL_WHITE_LIST" 2>&1 \
+bash "$FEISTY_MEOW_SCRIPTS/email/scan_spam.sh" "$SPAM_HOLD" "$EMAIL_WHITE_LIST" 2>&1 \
| tee "$REPORT_FILE"
+++ /dev/null
-
-# these are my personal overrides. --fred.
-
-# The quartz directory has *really* personalized items.
-export QUARTZDIR=$HOME/quartz
-
-# The gruntose web site is expected to reside below, if it exists at all.
-export WEB_DIR=$HOME/web
-if [ "$(hostname)" = "zooty.koeritz.com" ]; then
- export WEB_DIR=/var/www
-fi
-
-# point to our local certificate for ssh usage.
-export SVN_SSH="ssh -i $HOME/.ssh/id_dsa_sourceforge"
-
-# Error and success noises for CLAM.
-export CLAM_ERROR_SOUND='/z/walrus/media/sounds/effects/bwaaang.wav /z/walrus/media/sounds/cartoons/doh4.wav'
-export CLAM_FINISH_SOUND='/z/walrus/media/sounds/cartoons/meepmeep.wav'
-
-# Setup for nethack adventure.
-export NETHACKOPTIONS='name:Manjusri-W,dogname:Fred,catname:Zonker'
-
-# mail setup for home machines.
-export REPLYTO=fred@gruntose.com
-export from="Fred T. Hamster <fred@gruntose.com>"
-
-# set our browser for seti and others that use the variable.
-export BROWSER=/usr/bin/firefox
-
-# editor and other mixed settings...
-export VISUAL=$(which vim)
-
-#hmmm: move these to the uva profile,
-# rename uva profile to java profile,
-# get them doing the right thing per OS.
-# export JAVA_HOME="c:/Program Files/java/jdk1.6.0_11"
-
-# special settings for win32 and svn.
-if [ "$OS" == "Windows_NT" ]; then
- export EDITOR=$(which gvim)
-fi
-
-# this hideous mess is necessitated by our not having found the source of the
-# settings yet. we override a few colors that look bad on a dark background.
-export LS_COLORS='no=00:fi=00:di=01;37:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;35:*.rpm=00;33:*.deb=00;33:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;35:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;35:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
-
-# we set this to avoid paying for slow app signing on win32.
-export NO_SIGNING=true
-
--- /dev/null
+
+# some aliases that i don't expect very many people to ever want. they are
+# based on some of the mount configurations available at home or abroad.
+
+alias moo='check_mount /z/stuffing ; check_mount /z/walrus ; check_mount /z/chunky '
+alias unmoo='umount /z/stuffing ; umount /z/walrus ; umount /z/chunky '
+
+alias refred='(chown -R fred:fred /home/fred /usr/local/games /home/archives /fatty /clutterato /var/spool/mail/fred ; normal_perm /var/log )'
+
+
+++ /dev/null
-
-# some aliases that i don't expect very many people to ever want. they are
-# based on some of the mount configurations available at home or abroad.
-
-alias moo='check_mount /z/stuffing ; check_mount /z/walrus ; check_mount /z/chunky '
-alias unmoo='umount /z/stuffing ; umount /z/walrus ; umount /z/chunky '
-
-alias refred='(chown -R fred:fred /home/fred /usr/local/games /home/archives /fatty /clutterato /var/spool/mail/fred ; normal_perm /var/log )'
-
-
--- /dev/null
+
+# these are my personal overrides. --fred.
+
+# The quartz directory has *really* personalized items.
+export QUARTZDIR=$HOME/quartz
+
+# The gruntose web site is expected to reside below, if it exists at all.
+export WEB_DIR=$HOME/web
+if [ "$(hostname)" = "zooty.koeritz.com" ]; then
+ export WEB_DIR=/var/www
+fi
+
+# point to our local certificate for ssh usage.
+export SVN_SSH="ssh -i $HOME/.ssh/id_dsa_sourceforge"
+
+# Error and success noises for CLAM.
+export CLAM_ERROR_SOUND='/z/walrus/media/sounds/effects/bwaaang.wav /z/walrus/media/sounds/cartoons/doh4.wav'
+export CLAM_FINISH_SOUND='/z/walrus/media/sounds/cartoons/meepmeep.wav'
+
+# Setup for nethack adventure.
+export NETHACKOPTIONS='name:Manjusri-W,dogname:Fred,catname:Zonker'
+
+# mail setup for home machines.
+export REPLYTO=fred@gruntose.com
+export from="Fred T. Hamster <fred@gruntose.com>"
+
+# set our browser for seti and others that use the variable.
+export BROWSER=/usr/bin/firefox
+
+# editor and other mixed settings...
+export VISUAL=$(which vim)
+
+#hmmm: move these to the uva profile,
+# rename uva profile to java profile,
+# get them doing the right thing per OS.
+# export JAVA_HOME="c:/Program Files/java/jdk1.6.0_11"
+
+# special settings for win32 and svn.
+if [ "$OS" == "Windows_NT" ]; then
+ export EDITOR=$(which gvim)
+fi
+
+# this hideous mess is necessitated by our not having found the source of the
+# settings yet. we override a few colors that look bad on a dark background.
+export LS_COLORS='no=00:fi=00:di=01;37:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;35:*.rpm=00;33:*.deb=00;33:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;35:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;35:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
+
+# we set this to avoid paying for slow app signing on win32.
+export NO_SIGNING=true
+
-
this folder has some examples of how various people (or one person right now)
do their custom scripts.
-the scripts often have the same name as the main script's name, but with
-a "c_" in front. ones understood currently are:
- c_common_aliases.txt
- c_sh_aliases.txt
- c_variables.sh
+the folder can have alias files (ending in .alias) that are written in bash,
+and it can also have shell scripts that are sourced into the main-line of
+script initialization (any files ending in .sh).
when you have some custom scripts you want to use, copy them from your own
folder to the scripts/custom directory. be careful though, because they
#!/bin/bash
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
bad_file="$HOME/bad_protections.txt"
if [ $# = 0 ]; then dirname=$HOME; export dirname;
echo "Searching for Files Not Owned by the User in $HOME...."
echo "" >>$bad_file
-bash $SHELLDIR/find_non_owned.sh $HOME >>$bad_file
+bash $FEISTY_MEOW_SCRIPTS/find_non_owned.sh $HOME >>$bad_file
echo "" >>$bad_file
echo "" >>$bad_file
#!/bin/bash
#need to support multiple names.
for i; do
-#old find "$1" -type d -depth -print -exec perl $SHELLDIR/renlower.pl {}/* ';'
- find "$i" -depth -exec perl $SHELLDIR/renlower.pl "{}" ';'
+#old find "$1" -type d -depth -print -exec perl $FEISTY_MEOW_SCRIPTS/renlower.pl {}/* ';'
+ find "$i" -depth -exec perl $FEISTY_MEOW_SCRIPTS/renlower.pl "{}" ';'
done
for i in $(find . -depth -mindepth 1 -type d \
-exec echo {} ';' | sed -e 's/^.\///'); do
- bash $SHELLDIR/whack_dupes_dir.sh $exemplar_dir/$i $i
+ bash $FEISTY_MEOW_SCRIPTS/whack_dupes_dir.sh $exemplar_dir/$i $i
done
# get back to where we started.
TARGETS += regenerate
OTHER_CLEANS += clean_generated
# override setting from clam.
-export SHELLDIR = $(YETI_DIR)/scripts
+export FEISTY_MEOW_SCRIPTS = $(FEISTY_MEOW_DIR)/scripts
include rules.def
regenerate:
@echo regenerating aliases.
- echo "SHELLDIR = $(SHELLDIR)"
- echo "GENERADIR = $(GENERADIR)"
- $(CATCHER)'if [ ! -d $(GENERADIR) ]; then mkdir $(GENERADIR); fi'
- $(CATCHER)perl $(SHELLDIR)/core/generate_aliases.pl
- $(CATCHER)'(export LIGHTWEIGHT_INIT=true; source $(SHELLDIR)/core/profile.sh; perl $(SHELLDIR)/text/new_sig.pl)'
+ echo "FEISTY_MEOW_SCRIPTS = $(FEISTY_MEOW_SCRIPTS)"
+ echo "FEISTY_MEOW_GENERATED = $(FEISTY_MEOW_GENERATED)"
+ $(CATCHER)'if [ ! -d $(FEISTY_MEOW_GENERATED) ]; then mkdir $(FEISTY_MEOW_GENERATED); fi'
+ $(CATCHER)perl $(FEISTY_MEOW_SCRIPTS)/core/generate_aliases.pl
+ $(CATCHER)'(export LIGHTWEIGHT_INIT=true; source $(FEISTY_MEOW_SCRIPTS)/core/profile.sh; perl $(FEISTY_MEOW_SCRIPTS)/text/new_sig.pl)'
clean_generated:
@echo removing generated aliases.
- $(CATCHER)'if [ -d $(GENERADIR) ]; then \rm -rf $(GENERADIR); fi'
+ $(CATCHER)'if [ -d $(FEISTY_MEOW_GENERATED) ]; then \rm -rf $(FEISTY_MEOW_GENERATED); fi'
done
# now play the file
- bash $SHELLDIR/sound_play.sh $TO_PLAY
+ bash $FEISTY_MEOW_SCRIPTS/sound_play.sh $TO_PLAY
fi
#echo noise lev is $NOISE_IT_UP
if [ $NOISE_IT_UP -gt 108 -a $NOISE_IT_UP -le 128 ]; then
# we hit our percentage.
- bash $SHELLDIR/play_random.sh
+ bash $FEISTY_MEOW_SCRIPTS/play_random.sh
fi
# play the sound files specified.
-source "$SHELLDIR/core/functions.sh" # provides psfind.
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" # provides psfind.
if [ $# -lt 1 ]; then
#echo no sound file specified.
#!/bin/bash
# a simple script that backs up the opensim database assets.
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
host=$(echo $(hostname) | sed -e 's/\([^.]*\)\..*/\1/')
#!/bin/bash
# a simple script that backs up the opensim database assets.
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
host=$(echo $(hostname) | sed -e 's/\([^.]*\)\..*/\1/')
# this locates the main opensim process if possible. if we cannot find it,
# then the process is restarted.
-source $SHELLDIR/opensim/opensim_utils.sh
+source $FEISTY_MEOW_SCRIPTS/opensim/opensim_utils.sh
# see if the process is findable.
# (this approach will not work if the process actually freezes up but
# utility. then the processes can all be accessed when desired, rather than
# needing to be started in 5 or so separate windows.
-source $SHELLDIR/opensim/opensim_utils.sh
+source $FEISTY_MEOW_SCRIPTS/opensim/opensim_utils.sh
# jump into the opensim binaries directory so we can run stuff.
pushd $HOME/opensim/bin &>/dev/null
# screen utility. note that this will only be useful for an osgrid-attached
# sim server.
-source $SHELLDIR/opensim/opensim_utils.sh
+source $FEISTY_MEOW_SCRIPTS/opensim/opensim_utils.sh
# jump into the opensim binaries directory so we can run stuff.
pushd $HOME/opensim/bin &>/dev/null
# this script stops a 0.6.9 era opensimulator system that was started by
# the run_opensim or run_osgrid script. this will work for either case.
-source $SHELLDIR/opensim/opensim_utils.sh
+source $FEISTY_MEOW_SCRIPTS/opensim/opensim_utils.sh
# the brains for the script is the screen and process names we need to control.
close_application opensim OpenSim.exe
# this script stops a 0.6.9 era opensimulator system that was started by
# the run_opensim or run_osgrid script. this will work for either case.
-source $SHELLDIR/opensim/opensim_utils.sh
+source $FEISTY_MEOW_SCRIPTS/opensim/opensim_utils.sh
# the brains for the script is the screen and process names we need to control.
close_application opensim OpenSim.exe
exit 2
fi
-source "$SHELLDIR/functions.sh" # provides psfind.
+source "$FEISTY_MEOW_SCRIPTS/functions.sh" # provides psfind.
PIDLIST=$(psfind $1)
#echo "PIDS are $PIDLIST"
# checks in all our commonly used folders.
# note: fred specific.
-source "$SHELLDIR/rev_control/rev_control.sh"
+source "$FEISTY_MEOW_SCRIPTS/rev_control/rev_control.sh"
# selects the method for check-in based on where we are.
function do_checkin()
# gets all of fred's revision control folders out.
-source "$SHELLDIR/rev_control/rev_control.sh"
+source "$FEISTY_MEOW_SCRIPTS/rev_control/rev_control.sh"
if [ "$(pwd)" != "$TMP" ]; then
# echo "Moving to the TMP directory to avoid file access conflicts..."
less $TMPO_CHK
# we now regenerate the scripts after getme, to ensure it's done automatically.
-bash "$SHELLDIR/core/bootstrap_shells.sh"
-perl "$SHELLDIR/core/generate_aliases.pl"
+bash "$FEISTY_MEOW_SCRIPTS/core/bootstrap_shells.sh"
+perl "$FEISTY_MEOW_SCRIPTS/core/generate_aliases.pl"
echo
nechung
#!/bin/bash
-perl $SHELLDIR/schedule/generate_reminders.pl
-echo '(export LIBDIR=$LIBDIR; bash $SHELLDIR/schedule/start_calendar.sh) &>/dev/null' | at 4:20am
+perl $FEISTY_MEOW_SCRIPTS/schedule/generate_reminders.pl
+echo '(export LIBDIR=$LIBDIR; bash $FEISTY_MEOW_SCRIPTS/schedule/start_calendar.sh) &>/dev/null' | at 4:20am
#source $HOME/yeti/scripts/profile.sh
-soundfile=$YETI_DIR/database/sounds/woouoo.wav
+soundfile=$FEISTY_MEOW_DIR/database/sounds/woouoo.wav
if [ ! -z "$1" ]; then
soundfile=$1
fi
while true; do
echo Connecting sendmail and proxy servers via zooty.
ssh -i $HOME/.ssh/id_dsa_fred -2 -N -v -L 14008:localhost:25 fred@zooty.koeritz.com
- bash $SHELLDIR/multimedia/sound_play.sh $soundfile
+ bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh $soundfile
#hmmm: parameterize this for the sound to be played. doofus.
echo "Got dumped from tunnels; re-establishing connection."
echo "Note: if you're being asked for a password, you haven't set up an RSA key yet."
source $HOME/yeti/scripts/core/profile.sh
-soundfile=$YETI_DIR/database/sounds/woouoo.wav
+soundfile=$FEISTY_MEOW_DIR/database/sounds/woouoo.wav
if [ ! -z "$1" ]; then
soundfile=$1
fi
# keeps trying to mount the cd on a mac mini to overcome
# a new bug in itunes seen as of osx leopard upgrade.
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
mountpoint=/Volumes/mounty_cd
rm "$tempfile"
# clean out any directories that we managed to move everything out of.
-perl "$SHELLDIR/files/zapdirs.pl" $source
+perl "$FEISTY_MEOW_SCRIPTS/files/zapdirs.pl" $source
popd &>/dev/null
# kind of snafu with the ksh environment variable $$ where it would always
# record the previous shell's number and not the current one or something....
#
-(bash $SHELLDIR/keep_awake_process.sh) &
+(bash $FEISTY_MEOW_SCRIPTS/keep_awake_process.sh) &
# This program is meant to be started by the program keep_awake and has
# the basic guts that are meant to execute inside of a semi-perpetual loop.
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
# save the process id for the bye bye program to deal with.
#echo $$ >>$TMP/trash.last_keep_awake_process
new_title="-- $user@$pruned_host -- [$date_string]"
-bash "$SHELLDIR/tty/set_term_title.sh" "$new_title"
+bash "$FEISTY_MEOW_SCRIPTS/tty/set_term_title.sh" "$new_title"
# Thanks to Kevin Wika for this shell.
-source $SHELLDIR/core/date_stringer.sh
+source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
trap '' HUP
trap '' INT
\ssh -i $HOME/.ssh/id_dsa_fred -X $*
# re-run our terminal labeller.
-bash $SHELLDIR/tty/label_terminal_with_infos.sh
+bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh
snuser=$USER
if [ -z "$snuser" ]; then snuser=$USERNAME; fi
# more checks? what else would we get it from, REPLYTO?
-bash "$SHELLDIR/users/find_user.sh" $snuser
+bash "$FEISTY_MEOW_SCRIPTS/users/find_user.sh" $snuser