###############################################################################
require "filename_helper.pl";
-require "hostname.pl";
-require "importenv.pl";
require "inc_num.pl";
use Cwd;
+use Sys::Hostname;
use File::Which;
+use Env qw(FEISTY_MEOW_SCRIPTS TMP);
$null_log = "/dev/null";
# returns the current hostname, but without any domain included.
sub short_hostname {
- local($temphost) = &hostname();
+ local($temphost) = hostname();
+#&hostname();
$temphost =~ s/([^.]*)\..*/\1/;
return &lower($temphost);
}
sub snarf_prefix {
local($base) = @_;
$date_tool = "date";
-
-# if ($OS =~ /win/i) {
-# # just hope that this is running under msys in our build bin.
-# $date_tool = "$PRODUCTION_DIR/msys/bin/date";
-# }
-
local($date_part) = `$date_tool +%Y-%m-%d-%H%M`;
while ($date_part =~ /[\r\n]$/) { chop $date_part; }
local($host) = &short_hostname();
# version of the License. Please send any updates to "fred@gruntose.com". #
##############
-require "importenv.pl";
require "shared_snarfer.pl";
+use Env qw(HOME);
+
&initialize_snarfer; # let the snarfer hook us in.
# get the number attachment and increment it for the next use.
# version of the License. Please send any updates to "fred@gruntose.com". #
###############################################################################
-require "importenv.pl";
require "shared_snarfer.pl";
+use Env qw(HOME);
+
&initialize_snarfer;
# get the number we use and increment it for the next use.
# version of the License. Please send any updates to "fred@gruntose.com".
##############
-require "importenv.pl";
require "shared_snarfer.pl";
+use Env qw(HOME);
+
&initialize_snarfer;
# get the number we use and increment it for the next use.
# version of the License. Please send any updates to "fred@gruntose.com". #
###############################################################################
-require "importenv.pl";
require "shared_snarfer.pl";
+use Env qw(HOME);
+
&initialize_snarfer;
# get the number we use and increment it for the next use.
# version of the License. Please send any updates to "fred@gruntose.com". #
###############################################################################
-require "importenv.pl";
require "shared_snarfer.pl";
+use Env qw(HOME);
+
&initialize_snarfer; # let the snarfer hook us in.
# get the number attachment and increment it for the next use.
# version of the License. Please send any updates to "fred@gruntose.com". #
###############################################################################
-require "importenv.pl";
require "shared_snarfer.pl";
+use Env qw(HOME);
+
&initialize_snarfer;
# get the number we use and increment it for the next use.
# version of the License. Please send any updates to "fred@gruntose.com". #
###############################################################################
-require "importenv.pl";
require "shared_snarfer.pl";
+use Env qw(HOME USER);
+
&initialize_snarfer;
# get the number we use and increment it for the next use.
require "filename_helper.pl";
-require "importenv.pl";
+use Env qw(BINDIR BUILD_TOP FEISTY_MEOW_DIR FEISTY_MEOW_GENERATED FEISTY_MEOW_SCRIPTS SHELL_DEBUG );
# given a possible aliasable filename, this will decide whether to create a perl
# or bash alias for it. it needs the filename of the possible alias and the
# open the alias files to be created.
open(she, ">> $FEISTY_MEOW_GENERATED/fmc_aliases_for_scripts.sh");
-#print "os is $OS\n";
-
# find the list of files in the scripts directory.
#opendir(scripts, "$FEISTY_MEOW_SCRIPTS");
#@shell_files = sort(readdir(scripts));
###############################################################################
#require "filename_helper.pl";
-#require "importenv.pl";
$new_cmd="cvs";
# The day must be a number, followed by a space. Anything after that
# space is considered the description of the event.
-require "importenv.pl";
+use Env qw(CLOUD_DIR TMP);
##############
###############################################################################
require "filename_helper.pl";
-require "importenv.pl";
+
+use Env qw(TMP);
$new_version = `mktemp "$TMP/zz_add_cr_tmp.XXXXXX"`;
chop($new_version);
# support from CPAN. this can be installed by using cpan and telling it
# install Text::Diff
-require "ctime.pl";
require "filename_helper.pl";
-require "importenv.pl";
+
+use Env qw(FEISTY_MEOW_DIR);
use Text::Diff;
# this function prints out the header prior to printing out any real
# data. if there are no diffs, the header should never get printed.
print "$break_line\n";
- local($printable_date) = &ctime(time);
+ local($printable_date) = scalar(localtime());
$printable_date =~ s/\n//g;
print "[$printable_date]\n";
print "Left (<) is \"$temp_src\".\n";
###############################################################################
require "filename_helper.pl";
-require "importenv.pl";
+
+use Env qw(HOME TMP);
# creates a new signature file for outgoing email.
local($temp_filename) = "$TMP/zz_signate";
###############################################################################
require "filename_helper.pl";
-require "importenv.pl";
+
+use Env qw(TMP);
$new_version = `mktemp "$TMP/zz_strip_cr_tmp.XXXXXX"`;
chop($new_version);
###############################################################################
#require "filename_helper.pl";
-#require "importenv.pl";
#require "inc_num.pl";
&generate_web_page(@ARGV);