From 41667f692cfd165e59ee00e53baaead7b9400f4f Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 5 Oct 2008 15:37:57 +0200 Subject: 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 --- bin/ftpsync | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3