diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-10-05 15:37:57 +0200 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-10-05 15:37:57 +0200 |
commit | 41667f692cfd165e59ee00e53baaead7b9400f4f (patch) | |
tree | 76ee6abebc4e1685d83015e7a36492a9b8b8480c | |
parent | dffa8b7634d192314609d1cf486571f498d50afe (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>
-rwxr-xr-x | bin/ftpsync | 8 |
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 |