From: Fred T. Hamster Date: Tue, 31 Jan 2012 01:58:19 +0000 (-0500) Subject: added back in sourcing of functions.sh where date_stringer is needed. X-Git-Tag: 2.140.90~1649 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=2526778e1909c3098391bf35e17f50a183db8e53;p=feisty_meow.git added back in sourcing of functions.sh where date_stringer is needed. --- diff --git a/scripts/buildor/stdbuild.sh b/scripts/buildor/stdbuild.sh index a9fb23cc..a084d3b1 100644 --- a/scripts/buildor/stdbuild.sh +++ b/scripts/buildor/stdbuild.sh @@ -5,6 +5,8 @@ # # go to the main folder of the project you're building before you run this. +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + echo "$(date_stringer)" echo "Building application from $(\pwd)" echo " via standard 'configure;make;sudo make install' process..." diff --git a/scripts/core/create_tempdir.sh b/scripts/core/create_tempdir.sh index 55899274..9cbb89f9 100644 --- a/scripts/core/create_tempdir.sh +++ b/scripts/core/create_tempdir.sh @@ -7,6 +7,8 @@ if [ ! -z "$SHELL_DEBUG" ]; then echo creating temporary directory...; fi +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + if [ -z "$TMP" ]; then export TMP=$HOME/.tmp # main declaration of the transients area. diff --git a/scripts/core/i.sh b/scripts/core/i.sh index 865c5b14..7c174b7f 100644 --- a/scripts/core/i.sh +++ b/scripts/core/i.sh @@ -1,5 +1,7 @@ #!/bin/bash +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + ( echo '###############################################################################' echo diff --git a/scripts/database/backup_mysql_dbs.sh b/scripts/database/backup_mysql_dbs.sh index 551da0f7..c9bbab23 100644 --- a/scripts/database/backup_mysql_dbs.sh +++ b/scripts/database/backup_mysql_dbs.sh @@ -1,4 +1,6 @@ #!/bin/bash +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + temphost=$(hostname | sed -e 's/\([^.]*\)\..*/\1/') tar -czf /z/stuffing/archives/backup_dbs_${temphost}_$(date_stringer).tar.gz /home/archives/mysql_dbs/* diff --git a/scripts/files/find_bad_protection.sh b/scripts/files/find_bad_protection.sh index df9eb11d..b9add8fc 100644 --- a/scripts/files/find_bad_protection.sh +++ b/scripts/files/find_bad_protection.sh @@ -1,5 +1,7 @@ #!/bin/bash +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + bad_file="$HOME/bad_protections.txt" if [ $# = 0 ]; then dirname=$HOME; export dirname; else dirname=$1; export dirname; fi diff --git a/scripts/opensim/backup_opensim.sh b/scripts/opensim/backup_opensim.sh index e431ade0..364e1955 100644 --- a/scripts/opensim/backup_opensim.sh +++ b/scripts/opensim/backup_opensim.sh @@ -1,6 +1,8 @@ #!/bin/bash # a simple script that backs up the opensim database assets. +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + host=$(echo $(hostname) | sed -e 's/\([^.]*\)\..*/\1/') bkupname=opensim_bkup_${host}_$(date_stringer).mysql_bkup diff --git a/scripts/opensim/backup_osgrid.sh b/scripts/opensim/backup_osgrid.sh index 4e14399a..c77b3be5 100644 --- a/scripts/opensim/backup_osgrid.sh +++ b/scripts/opensim/backup_osgrid.sh @@ -1,6 +1,8 @@ #!/bin/bash # a simple script that backs up the opensim database assets. +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + host=$(echo $(hostname) | sed -e 's/\([^.]*\)\..*/\1/') bkupname=osgrid_bkup_${host}_$(date_stringer).mysql_bkup diff --git a/scripts/system/osx_cd_mounter.sh b/scripts/system/osx_cd_mounter.sh index 531399bd..a1d522c0 100644 --- a/scripts/system/osx_cd_mounter.sh +++ b/scripts/system/osx_cd_mounter.sh @@ -3,6 +3,8 @@ # keeps trying to mount the cd on a mac mini to overcome # a new bug in itunes seen as of osx leopard upgrade. +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + mountpoint=/Volumes/mounty_cd echo "$(date_stringer): starting cd mounter..." diff --git a/scripts/tty/keep_awake_process.sh b/scripts/tty/keep_awake_process.sh index 4c31a2ab..29a68de4 100644 --- a/scripts/tty/keep_awake_process.sh +++ b/scripts/tty/keep_awake_process.sh @@ -2,6 +2,8 @@ # 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 "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + # save the process id for the goodbye program to deal with. #echo $$ >>$TMP/trash.last_keep_awake_process #don't let the shutdown guy know who we are; we want to keep running now. diff --git a/scripts/tty/lockup.sh b/scripts/tty/lockup.sh index 4ad330b3..ec60e92f 100644 --- a/scripts/tty/lockup.sh +++ b/scripts/tty/lockup.sh @@ -2,6 +2,8 @@ # Thanks to Kevin Wika for this shell. +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + trap '' HUP trap '' INT trap '' QUIT diff --git a/scripts/users/byejob.sh b/scripts/users/byejob.sh index 196a3541..e97e079b 100644 --- a/scripts/users/byejob.sh +++ b/scripts/users/byejob.sh @@ -2,6 +2,8 @@ # this program is run in the background to show a bye message on the console. +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + export LIGHTWEIGHT_INIT=true # make sure we just get our variables. source $HOME/yeti/scripts/launch_feisty_meow.sh export host=$(hostname)