2007-03-06 19:23:36 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2007-03-08 16:45:48 +00:00
|
|
|
# This script called in a CVS directory compares local files with
|
|
|
|
# the repository, and prepares an update package containing all
|
|
|
|
# changes and new files for submission to a CVS maintainer. If there
|
|
|
|
# are only changes in text files, then a compressed unified diff is
|
|
|
|
# made (foo.diff.bz2). If there are also changed binary or new files,
|
|
|
|
# then an archive is made instead (foo.tar.bz2). The base name ("foo")
|
|
|
|
# can be given as command line argument. Otherwise the directory name
|
|
|
|
# is used. The script also leaves a diff in uncompressed/unpackaged
|
|
|
|
# form. This is only for developer convenience -- for a quick check
|
|
|
|
# of the diff correctness. It is not to be submitted. The script will
|
|
|
|
# not overwrite any file, but rather rename conflicting files.
|
2007-03-06 19:23:36 +00:00
|
|
|
#
|
2007-03-09 16:22:27 +00:00
|
|
|
# Usage: fg-submit [-v] [<basename>]
|
|
|
|
#
|
|
|
|
# Options:
|
|
|
|
# -v ... verbose output
|
2007-03-06 19:23:36 +00:00
|
|
|
#
|
2007-03-08 16:45:48 +00:00
|
|
|
# Example:
|
|
|
|
# $ cd $FG_ROOT/Aircraft/bo105
|
|
|
|
# $ fg-submit # -> bo105.diff.bz2 or bo105.tar.bz2
|
|
|
|
#
|
|
|
|
# $ fg-submit update # -> update.diff.bz2 or update.tar.bz2
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Spaces in the basename are replaced with "%20". People who prefer
|
|
|
|
# to have the date in the archive name can conveniently achieve this
|
|
|
|
# by defining a shell alias in ~/.bashrc:
|
|
|
|
#
|
2007-03-11 19:30:36 +00:00
|
|
|
# alias submit='fg-submit "${PWD##*/}-$(date +%Y-%m-%d)"'
|
2007-03-08 16:45:48 +00:00
|
|
|
#
|
|
|
|
#
|
2007-03-09 16:22:27 +00:00
|
|
|
#
|
2007-03-08 16:45:48 +00:00
|
|
|
# If the script finds an application named "fg-upload", then it calls
|
2007-03-08 17:14:29 +00:00
|
|
|
# this at the end with two arguments:
|
2007-03-08 16:45:48 +00:00
|
|
|
#
|
2007-03-08 17:14:29 +00:00
|
|
|
# $1 ... archive or compressed diff for submission
|
2007-07-28 17:03:10 +00:00
|
|
|
# $2 ... accessory uncompressed diff, *NOT* for submission!
|
2007-03-08 16:45:48 +00:00
|
|
|
#
|
2007-03-08 17:14:29 +00:00
|
|
|
# $1 and $2 are guaranteed not to contain spaces, only $1 is guaranteed
|
2007-03-10 20:46:38 +00:00
|
|
|
# to actually exist. Such a script can be used to upload the file to an
|
2007-03-08 16:45:48 +00:00
|
|
|
# ftp-/webserver, and/or to remove one or both files. Example using
|
2007-07-28 17:03:10 +00:00
|
|
|
# KDE's kfmclient for upload (alternatives: ncftpput, gnomevfs-copy):
|
2007-03-08 16:45:48 +00:00
|
|
|
#
|
|
|
|
# $ cat ~/bin/fg-upload
|
|
|
|
# #!/bin/bash
|
2007-03-08 17:14:29 +00:00
|
|
|
# echo "uploading $1"
|
|
|
|
# if kfmclient copy $1 ftp://user:password@server.com; then
|
|
|
|
# echo "deleting $1 $2"
|
2007-03-08 23:16:57 +00:00
|
|
|
# rm -f $1 $2
|
2007-03-08 16:45:48 +00:00
|
|
|
#
|
2007-03-15 17:05:51 +00:00
|
|
|
# URL=ftp://server.com/$1
|
|
|
|
#
|
|
|
|
# # copy URL to KDE's clipboard, so that MMB-clicking pastes it
|
|
|
|
# dcop klipper klipper setClipboardContents $URL
|
|
|
|
#
|
|
|
|
# echo "Done. --> $URL"
|
2007-03-08 16:45:48 +00:00
|
|
|
# else
|
2007-03-15 17:05:51 +00:00
|
|
|
# echo "$0: uploading failed!"
|
2007-03-08 16:45:48 +00:00
|
|
|
# fi
|
2007-03-09 16:22:27 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Whether a file should be included in the archive or not, is decided
|
|
|
|
# by pattern rules. There is a set of reasonable default rules predefined,
|
|
|
|
# but alternative settings can be defined in a hidden configuration file
|
|
|
|
# named ".fg-submit". Such a file is searched in the current directory,
|
|
|
|
# in its parent directory, in its grand-parent directory and so on,
|
|
|
|
# and finally in the $HOME directory. The first found file is taken.
|
|
|
|
#
|
2007-03-10 21:40:39 +00:00
|
|
|
# A file can use a list of three keywords with arguments, each on a
|
2007-03-09 16:22:27 +00:00
|
|
|
# separate line:
|
|
|
|
#
|
2007-07-28 17:03:10 +00:00
|
|
|
# ALLOW <pattern-list> ... accept & report matching file
|
|
|
|
# DENY <pattern-list> ... reject & report matching file
|
|
|
|
# IGNORE <pattern-list> ... silently reject matching file
|
2007-03-09 16:22:27 +00:00
|
|
|
#
|
|
|
|
# A <pattern-list> is a space-separated list of shell pattern.
|
|
|
|
# It may also be empty, in which case it has no effect. Examples:
|
|
|
|
#
|
|
|
|
# DENY test.blend
|
|
|
|
# ALLOW *.xcf *.blend
|
|
|
|
#
|
2007-03-10 20:46:38 +00:00
|
|
|
# The list of pattern is checked in the same order in which it was
|
|
|
|
# built. The first match causes a file to be accepted or rejected.
|
2007-07-28 17:03:10 +00:00
|
|
|
# Further matches are not considered. Comments using the hash
|
|
|
|
# character '#' are allowed and ignored.
|
2007-03-09 16:22:27 +00:00
|
|
|
#
|
2007-03-10 20:46:38 +00:00
|
|
|
# Some default rules are always added at the end. If you want to
|
2007-07-28 17:03:10 +00:00
|
|
|
# bypass them, then finish your configuration with an "ALLOW *"
|
|
|
|
# or "DENY *", and no file will ever reach the default rules.
|
2007-03-09 16:22:27 +00:00
|
|
|
#
|
|
|
|
#
|
2007-03-10 20:46:38 +00:00
|
|
|
# Example:
|
2007-03-09 16:22:27 +00:00
|
|
|
#
|
2007-03-10 20:46:38 +00:00
|
|
|
# DENY test.xcf # throw out the test image, but ...
|
|
|
|
# ALLOW *.xcf # ... allow all other GIMP images (the default
|
|
|
|
# # rules would otherwise throw them out)
|
2007-03-09 16:22:27 +00:00
|
|
|
#
|
2007-07-28 17:03:10 +00:00
|
|
|
# ALLOW not.old # add this file, but ...
|
2007-03-10 20:46:38 +00:00
|
|
|
# IGNORE *.old # throw out all other "old" files (and don't
|
|
|
|
# # report that to the terminal)
|
2007-03-09 16:22:27 +00:00
|
|
|
#
|
2007-03-09 19:15:54 +00:00
|
|
|
#
|
|
|
|
# .fg-submit configuration files are "sourced" bash scripts, the
|
2007-03-09 16:22:27 +00:00
|
|
|
# keywords are simple shell functions. That means that you can
|
2007-03-09 19:15:54 +00:00
|
|
|
# also use other bash commands in that file, such as "echo", or
|
|
|
|
# write several commands on one line, separated with semicolon.
|
|
|
|
# You can even put all special rules in your ~/.fg-submit file,
|
|
|
|
# with rules depending on the working directory:
|
|
|
|
#
|
|
|
|
# case "$PWD" in
|
|
|
|
# */bo105*) DENY *.osg; ALLOW livery.xcf ;;
|
|
|
|
# */ufo*) DENY *.tiff ;;
|
|
|
|
# esac
|
2007-03-09 16:22:27 +00:00
|
|
|
|
2007-03-08 16:45:48 +00:00
|
|
|
|
2007-03-06 19:23:36 +00:00
|
|
|
|
2007-03-11 19:30:36 +00:00
|
|
|
SELF=${0##*/}
|
|
|
|
DIR=${PWD##*/}
|
2007-03-09 16:22:27 +00:00
|
|
|
|
|
|
|
if [ "$1" == "-v" ]; then
|
|
|
|
DBG=1
|
|
|
|
shift
|
|
|
|
fi
|
|
|
|
|
2007-03-08 16:45:48 +00:00
|
|
|
BASE=${1:-$DIR}
|
|
|
|
BASE=${BASE// /%20}
|
|
|
|
|
|
|
|
CVS=/usr/bin/cvs # avoid colorcvs wrapper from
|
|
|
|
[ -x $CVS ] || CVS=cvs # http://www.hakubi.us/colorcvs/
|
|
|
|
UPLOAD=$(which fg-upload 2>/dev/null)
|
2007-03-06 19:23:36 +00:00
|
|
|
|
2007-03-09 19:15:54 +00:00
|
|
|
CONFIG_FILE=".fg-submit"
|
2007-03-08 16:45:48 +00:00
|
|
|
ARCHIVE=$BASE.tar.bz2
|
|
|
|
DIFF=$BASE.diff
|
2007-03-07 16:26:33 +00:00
|
|
|
CDIFF=$DIFF.bz2
|
2007-03-06 19:23:36 +00:00
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
# these rules are always prepended; the first letter decides if the
|
|
|
|
# rule accepts (+), rejects (-), or ignores (!) a matching file.
|
2007-03-09 16:22:27 +00:00
|
|
|
PREFIX_RULES="
|
|
|
|
!$DIFF* !$CDIFF* !$ARCHIVE*
|
|
|
|
!CVS/* !*/CVS/*
|
|
|
|
"
|
2007-03-10 20:46:38 +00:00
|
|
|
# these rules are always appended
|
2007-03-09 16:22:27 +00:00
|
|
|
DEFAULT_RULES="
|
|
|
|
+.cvsignore +*/.cvsignore
|
|
|
|
-*~ -*. -*.bak -*.orig
|
|
|
|
-*.RGB -*.RGBA -*.MDL
|
2008-12-13 20:17:02 +00:00
|
|
|
-*.XCF -*.tga -*.TGA -*.bmp -*.BMP -*.PNG
|
2007-03-09 16:22:27 +00:00
|
|
|
-*.blend -*.blend[0-9] -*blend[0-9][0-9] -*.blend[0-9][0-9][0-9]
|
|
|
|
-*.gz -*.tgz -*.bz2 -*.zip -*.tar.gz* -*.tar.bz2*
|
|
|
|
"
|
|
|
|
POSTFIX_RULES="
|
|
|
|
!.* !*/.*
|
|
|
|
+*
|
|
|
|
"
|
|
|
|
|
2007-03-06 19:23:36 +00:00
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
|
2007-03-07 16:26:33 +00:00
|
|
|
function ERROR { echo -e "\e[31;1m$*\e[m"; }
|
|
|
|
function LOG { echo -e "\e[35m$*\e[m"; }
|
|
|
|
function NEW { echo -e "\e[32m\t+ $*\e[m"; }
|
|
|
|
function CHANGED { echo -e "\e[36m\t+ $*\e[m"; }
|
|
|
|
function REJECT { echo -e "\e[31m\t- $*\e[m"; }
|
2007-03-09 16:22:27 +00:00
|
|
|
function DEBUG { [ $DBG ] && echo -e "$*"; }
|
2007-03-06 19:23:36 +00:00
|
|
|
|
|
|
|
function diffstat {
|
|
|
|
# output diff statistics, similar to the "diffstat" utility
|
|
|
|
awk '
|
2007-03-07 16:26:33 +00:00
|
|
|
function line(a, r, c, f) {
|
|
|
|
print "\t\033[32m"a"\033[m\t\033[31m"r"\033[m\t\033[34m"c"\033[m\t"f
|
|
|
|
}
|
2007-03-06 21:23:26 +00:00
|
|
|
function dofile() {
|
|
|
|
if (!file) {
|
2007-03-07 16:26:33 +00:00
|
|
|
return
|
2007-03-06 21:23:26 +00:00
|
|
|
}
|
2007-03-06 19:23:36 +00:00
|
|
|
if (bin) {
|
2007-03-08 16:45:48 +00:00
|
|
|
print "\t. . . . binary . . . . \033[36m"file"\033[m"
|
2007-03-06 19:23:36 +00:00
|
|
|
} else {
|
2007-03-07 16:26:33 +00:00
|
|
|
line(a, r, c, file)
|
2007-03-08 16:45:48 +00:00
|
|
|
at += a; rt += r; ct += c
|
2007-03-06 19:23:36 +00:00
|
|
|
}
|
2007-03-07 16:26:33 +00:00
|
|
|
a = r = c = 0
|
2007-03-06 19:23:36 +00:00
|
|
|
}
|
|
|
|
BEGIN {
|
2007-03-07 16:26:33 +00:00
|
|
|
print "\tadded---removed-changed----------------------------------------"
|
|
|
|
a = r = c = at = rt = ct = n = bin = 0
|
2007-03-06 19:23:36 +00:00
|
|
|
}
|
2007-03-08 16:45:48 +00:00
|
|
|
/^Index: / { dofile(); scan = bin = 0; file = $2; n++; next }
|
2007-03-06 21:23:26 +00:00
|
|
|
/^@@/ { scan = 1; next }
|
2007-03-08 16:45:48 +00:00
|
|
|
/^Binary/ { if (!scan) bin = 1; next }
|
2007-03-10 20:46:38 +00:00
|
|
|
/^\+/ { if (scan) a++; next }
|
2007-03-08 16:45:48 +00:00
|
|
|
/^-/ { if (scan) r++; next }
|
|
|
|
/^!/ { if (scan) c++; next }
|
2007-03-06 19:23:36 +00:00
|
|
|
END {
|
2007-03-07 16:26:33 +00:00
|
|
|
dofile()
|
|
|
|
print "\t----------------------------------------total------------------"
|
|
|
|
line(at, rt, ct, "\033[min "n" files")
|
2007-03-06 19:23:36 +00:00
|
|
|
}
|
2007-03-07 16:26:33 +00:00
|
|
|
' <$1
|
2007-03-06 19:23:36 +00:00
|
|
|
}
|
|
|
|
|
2007-03-09 19:15:54 +00:00
|
|
|
function backup_filename {
|
2007-03-10 20:46:38 +00:00
|
|
|
for ((i = 1; 1; i = i + 1)); do
|
2007-03-09 19:15:54 +00:00
|
|
|
name=$1.$i
|
|
|
|
if ! [ -a "$name" ]; then
|
|
|
|
touch $name
|
|
|
|
echo $name
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2007-03-06 19:23:36 +00:00
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
|
2007-03-09 16:22:27 +00:00
|
|
|
# set up accept/reject rules
|
|
|
|
function ALLOW { for i in $*; do RULES="$RULES +$i"; done }
|
|
|
|
function DENY { for i in $*; do RULES="$RULES -$i"; done }
|
|
|
|
function IGNORE { for i in $*; do RULES="$RULES !$i"; done }
|
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
|
|
|
|
function search_config {
|
|
|
|
file="$1/$CONFIG_FILE"
|
|
|
|
DEBUG "checking for config file $file"
|
|
|
|
if [ -f "$file" ]; then
|
|
|
|
CONFIG="$file"
|
|
|
|
return 0
|
|
|
|
elif [ "$1" ]; then
|
2007-03-10 21:40:39 +00:00
|
|
|
search_config ${1%/${1##*/}} # parent dir
|
2007-03-10 20:46:38 +00:00
|
|
|
return
|
2007-03-09 16:22:27 +00:00
|
|
|
fi
|
2007-03-10 20:46:38 +00:00
|
|
|
return 1
|
|
|
|
}
|
|
|
|
|
2007-03-09 16:22:27 +00:00
|
|
|
|
2007-03-11 19:30:36 +00:00
|
|
|
set -f
|
2007-03-11 22:05:37 +00:00
|
|
|
RULES=
|
2007-03-10 20:46:38 +00:00
|
|
|
if search_config "$PWD"; then
|
|
|
|
LOG "loading config file $CONFIG"
|
2007-03-09 16:22:27 +00:00
|
|
|
source "$CONFIG"
|
2007-03-09 19:15:54 +00:00
|
|
|
elif [ -f ~/$CONFIG_FILE ]; then
|
2007-03-11 19:30:36 +00:00
|
|
|
DEBUG "loading config file ~/$CONFIG_FILE"
|
2007-03-09 19:15:54 +00:00
|
|
|
source ~/$CONFIG_FILE
|
|
|
|
elif [ -f ~/${CONFIG_FILE}rc ]; then
|
2007-03-11 19:30:36 +00:00
|
|
|
DEBUG "loading config file ~/${CONFIG}rc"
|
2007-03-10 20:46:38 +00:00
|
|
|
source ~/${CONFIG_FILE}rc
|
2007-03-09 16:22:27 +00:00
|
|
|
fi
|
2007-03-10 20:46:38 +00:00
|
|
|
RULES="$PREFIX_RULES $RULES $DEFAULT_RULES $POSTFIX_RULES"
|
2007-03-11 22:05:37 +00:00
|
|
|
set +f
|
2007-03-10 20:46:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
if [ $DBG ]; then
|
|
|
|
DEBUG "using these rules: "
|
|
|
|
for i in $RULES; do echo -n "$i "; done
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
2007-03-09 16:22:27 +00:00
|
|
|
|
|
|
|
|
2007-03-08 23:16:57 +00:00
|
|
|
# create temporary dir that's automatically removed on exit
|
|
|
|
TMP=$(mktemp -d /tmp/$SELF.$BASE.XXXXXX) || (echo "$0: can't create temporary dir"; exit 1)
|
2007-03-06 19:23:36 +00:00
|
|
|
trap "rm -rf $TMP" 0 1 2 3 13 15
|
|
|
|
|
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
|
2007-03-15 17:05:51 +00:00
|
|
|
# move old files out of the way adding sequential suffixes
|
2007-03-08 16:45:48 +00:00
|
|
|
for i in $DIFF $CDIFF $ARCHIVE; do
|
2007-03-09 19:15:54 +00:00
|
|
|
[ -f $i ] && mv $i $(backup_filename $i)
|
2007-03-08 16:45:48 +00:00
|
|
|
done
|
2007-03-06 19:23:36 +00:00
|
|
|
|
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
|
2007-03-07 16:26:33 +00:00
|
|
|
LOG "updating and checking for new files ..."
|
2007-03-15 17:05:51 +00:00
|
|
|
$CVS -q up -dP >$TMP/up || exit 1
|
2007-03-06 19:23:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
if grep "^C " $TMP/up &>/dev/null; then
|
|
|
|
ERROR "there are conflicts with the following files:"
|
|
|
|
grep "^C " $TMP/up
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
|
2007-03-06 19:23:36 +00:00
|
|
|
LOG "making diff ..."
|
2007-03-06 20:35:28 +00:00
|
|
|
if ! $CVS -q diff -up >$DIFF; then
|
2007-03-06 19:23:36 +00:00
|
|
|
LOG "diff statistics:"
|
|
|
|
diffstat $DIFF
|
2007-03-07 16:26:33 +00:00
|
|
|
echo
|
2007-03-06 19:23:36 +00:00
|
|
|
|
|
|
|
# add diff file itself
|
2007-03-07 16:26:33 +00:00
|
|
|
echo $DIFF >>$TMP/files
|
2007-03-06 19:23:36 +00:00
|
|
|
|
|
|
|
# add changed binary files
|
|
|
|
awk '
|
2007-03-07 16:26:33 +00:00
|
|
|
/^Index: / { scan = 1; file = $2; next }
|
|
|
|
/^@@/ { scan = 0; next }
|
2007-03-06 19:23:36 +00:00
|
|
|
/^Binary/ { if (scan) { print file } }
|
2007-03-07 16:26:33 +00:00
|
|
|
' <$DIFF >>$TMP/files
|
2007-03-06 19:23:36 +00:00
|
|
|
else
|
|
|
|
rm -f $DIFF
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
|
2007-03-07 16:26:33 +00:00
|
|
|
LOG "checking for files to submit ..."
|
|
|
|
if [ -f $TMP/files ]; then
|
|
|
|
cat $TMP/files|while read i; do
|
|
|
|
CHANGED "$i"
|
2007-03-06 19:23:36 +00:00
|
|
|
done
|
|
|
|
fi
|
2007-03-08 16:45:48 +00:00
|
|
|
|
2007-03-06 19:23:36 +00:00
|
|
|
grep "^? " $TMP/up|while read i; do
|
2007-03-07 16:26:33 +00:00
|
|
|
find ${i#? } -type f >>$TMP/check
|
2007-03-06 19:23:36 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
|
2007-03-09 19:15:54 +00:00
|
|
|
# filter files according to the pattern rules
|
2007-03-07 16:26:33 +00:00
|
|
|
if [ -f $TMP/check ]; then
|
|
|
|
for i in $(cat $TMP/check); do
|
2007-03-09 16:22:27 +00:00
|
|
|
DEBUG "checking whether file '$i' matches"
|
|
|
|
for r in $RULES; do
|
|
|
|
DEBUG "\t\trule $r"
|
2007-03-11 19:30:36 +00:00
|
|
|
class=${r:0:1}
|
|
|
|
rule=${r:1}
|
|
|
|
case "$i" in $rule)
|
|
|
|
case $class in
|
|
|
|
!) DEBUG "$i\t\t\"silently\" rejected\t\t$rule" ;;
|
|
|
|
-) REJECT "$i\t\t$rule" ;;
|
|
|
|
+) NEW "$i\t\t$rule" && echo "$i" >>$TMP/files ;;
|
|
|
|
esac
|
2007-03-09 16:22:27 +00:00
|
|
|
break
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2007-03-06 19:23:36 +00:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2007-03-10 20:46:38 +00:00
|
|
|
|
2007-03-07 16:26:33 +00:00
|
|
|
if ! [ -f $TMP/files ]; then
|
|
|
|
LOG "no changed or new files found"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo
|
2007-03-08 16:45:48 +00:00
|
|
|
numfiles=$(awk '//{n++}END{print n}' <$TMP/files)
|
2007-03-07 16:26:33 +00:00
|
|
|
if [ -f $DIFF -a $numfiles == 1 ]; then
|
|
|
|
LOG "only changed non-binary files found"
|
|
|
|
LOG "creating compressed diff \e[1;37;40m$CDIFF\e[m\e[35m ..."
|
2007-03-10 20:46:38 +00:00
|
|
|
bzip2 --keep $DIFF
|
2007-03-08 16:45:48 +00:00
|
|
|
RESULT=$CDIFF
|
2007-03-06 19:23:36 +00:00
|
|
|
else
|
2007-03-07 16:26:33 +00:00
|
|
|
LOG "changed and/or new files found"
|
|
|
|
LOG "creating archive \e[1;37;40m$ARCHIVE\e[m\e[35m ..."
|
2007-03-10 20:46:38 +00:00
|
|
|
tar --create --bzip2 --file=$ARCHIVE --files-from $TMP/files
|
2007-03-08 16:45:48 +00:00
|
|
|
RESULT=$ARCHIVE
|
2007-03-06 19:23:36 +00:00
|
|
|
fi
|
2007-03-08 16:45:48 +00:00
|
|
|
|
|
|
|
|
2007-03-11 22:05:37 +00:00
|
|
|
[ -x "$UPLOAD" -a -f $RESULT ] && $UPLOAD $RESULT $DIFF
|
|
|
|
|
2007-03-06 19:23:36 +00:00
|
|
|
|