tmpdir="$(cd $TMP; \pwd)"
if [ "$(\pwd)" != "$tmpdir" ]; then
if [ ! -z "$SHELL_DEBUG" ]; then
- echo "Moving to the TMP directory to avoid file access conflicts..."
+ echo "moving to the TMP directory to avoid file access conflicts..."
fi
new_name="$TMP/zz_$(basename $0)"
cp -f "$0" "$new_name"
git --no-pager log --max-count=1
echo
-echo "Type 'git log' for more commits, or 'git show' for full commit details."
+echo "type 'git log' for more commits, or 'git show' for full commit details."
else
-echo "Not a git repository."
+echo "not a git repository."
fi
popd >/dev/null
mkdir -p $TMP
fi
if [ ! -d "$TMP" ]; then
- echo "Could not create the temporary directory TMP in: $TMP"
- echo "This script will not work properly without an existing TMP directory."
+ echo "could not create the temporary directory TMP in: $TMP"
+ echo "this script will not work properly without an existing TMP directory."
fi
this_host=
local directory="$1"; shift
do_update "$directory"
if [ $? -ne 0 ]; then
- echo "Repository update failed; this should be fixed before check-in."
+ echo "repository update failed; this should be fixed before check-in."
return 1
fi
pushd "$directory" &>/dev/null
local retval=0 # normally successful.
if [ -f ".no-checkin" ]; then
- echo "Skipping check-in due to presence of .no-checkin sentinel file."
+ echo "skipping check-in due to presence of .no-checkin sentinel file."
elif [ -d "CVS" ]; then
cvs ci .
retval=$?
# only update if we see a repository living there.
if [ -f ".no-checkin" ]; then
- echo "Skipping reporting due to presence of .no-checkin sentinel file."
+ echo "skipping reporting due to presence of .no-checkin sentinel file."
elif [ -d ".svn" ]; then
# this action so far only makes sense and is needed for svn.
bash $FEISTY_MEOW_SCRIPTS/rev_control/svnapply.sh \? echo
j="$i/$j"
if [ ! -d $j ]; then
if [ ! -z "$SHELL_DEBUG" ]; then
- echo "No directory called $j exists."
+ echo "no directory called $j exists."
fi
continue
fi