summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-05 15:37:57 +0200
committerJoerg Jaspert <joerg@debian.org>2008-10-05 15:37:57 +0200
commit41667f692cfd165e59ee00e53baaead7b9400f4f (patch)
tree76ee6abebc4e1685d83015e7a36492a9b8b8480c /bin
parentdffa8b7634d192314609d1cf486571f498d50afe (diff)
ftpsync
Allow to set SOURCE_EXCLUDE in config. If it is set we wont touch it anymore, even if $ARCH_EXCLUDE still contains "source". Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index be6e98a..f96e70d 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -106,7 +106,7 @@ EXCLUDE=${EXCLUDE:-""}
EXCLUDE="${EXCLUDE} --exclude .~tmp~/"
-SOURCE_EXCLUDE=
+SOURCE_EXCLUDE=${SOURCE_EXCLUDE:-""}
# Exclude architectures defined in $ARCH_EXCLUDE
for ARCH in ${ARCH_EXCLUDE}; do
EXCLUDE=${EXCLUDE}"\
@@ -120,12 +120,14 @@ for ARCH in ${ARCH_EXCLUDE}; do
--exclude *_${ARCH}.deb \
--exclude *_${ARCH}.udeb "
if [ "${ARCH}" = "source" ]; then
- SOURCE_EXCLUDE="\
+ if [ -z ${SOURCE_EXCLUDE} ]; then
+ SOURCE_EXCLUDE="\
--exclude source/ \
--exclude *.tar.gz \
--exclude *.diff.gz \
--exclude *.dsc "
- fi
+ fi
+ fi
done
# Some sane defaults