# Current dir
ORIGPWD=`pwd`
-# List of files to exclude from all tarballs
-DM_EXCLUDES=".git .svn packages/_ORIGINAL_ packages/SeleniumRC packages/PHPUnit packages/PhpDocumentor packages/SymfonyComponents packages/amavisd-new packages/git-footnote"
-for DM_EXCLUDE in $DM_EXCLUDES ; do
- DM_EXCLUDES_RSYNC="--exclude=${DM_EXCLUDE} ${DM_EXCLUDES_RSYNC}"
-done
-## Note: These small folders have items that previously were not published,
-## but there's no real cost to including them, and excluding them seems
-## likely to cause confusion as the codebase evolves:
-## packages/Files packages/PHP packages/Text
-export DM_EXCLUDES DM_EXCLUDES_RSYNC
-
# Set no actions by default
D5PACK=0
D56PACK=0
if [ ! -d "$to" ]; then
mkdir -p "$to"
fi
- rsync -avC --exclude=.git --exclude=.svn "$from/./" "$to/./"
+ $DM_RSYNC -avC --exclude=.git --exclude=.svn "$from/./" "$to/./"
}
## Copy listed files
excludes_rsync="--exclude=${exclude} ${excludes_rsync}"
done
+ ## Note: These small folders have items that previously were not published,
+ ## but there's no real cost to including them, and excluding them seems
+ ## likely to cause confusion as the codebase evolves:
+ ## packages/Files packages/PHP packages/Text
+
[ ! -d "$to" ] && mkdir "$to"
- rsync -avC $excludes_rsync --include=core "$repo/./" "$to/./"
+ $DM_RSYNC -avC $excludes_rsync --include=core "$repo/./" "$to/./"
}
## Copy Drupal-integration module
. "$P/common.sh"
-RSYNCOPTIONS="-avC $DM_EXCLUDES_RSYNC --include=core"
-RSYNCCOMMAND="$DM_RSYNC $RSYNCOPTIONS"
SRC=$DM_SOURCEDIR
TRG=$DM_TMPDIR/civicrm
. "$P/common.sh"
-RSYNCOPTIONS="-avC $DM_EXCLUDES_RSYNC --include=core"
-RSYNCCOMMAND="$DM_RSYNC $RSYNCOPTIONS"
SRC=$DM_SOURCEDIR
TRG=$DM_TMPDIR/civicrm
. "$P/common.sh"
-RSYNCOPTIONS="-avC $DM_EXCLUDES_RSYNC --include=core"
-RSYNCCOMMAND="$DM_RSYNC $RSYNCOPTIONS"
SRC=$DM_SOURCEDIR
TRG=$DM_TMPDIR/civicrm
. "$P/common.sh"
-RSYNCOPTIONS="-avC $DM_EXCLUDES_RSYNC --include=core"
-RSYNCCOMMAND="$DM_RSYNC $RSYNCOPTIONS"
SRC=$DM_SOURCEDIR
TRG=$DM_TMPDIR/civicrm
. "$P/common.sh"
-RSYNCOPTIONS="-avC $DM_EXCLUDES_RSYNC --include=core"
-RSYNCCOMMAND="$DM_RSYNC $RSYNCOPTIONS"
SRC=$DM_SOURCEDIR
TRG=$DM_TMPDIR/civicrm
. "$P/common.sh"
-RSYNCOPTIONS="-avC $DM_EXCLUDES_RSYNC --include=core"
-RSYNCCOMMAND="$DM_RSYNC $RSYNCOPTIONS"
SRC=$DM_SOURCEDIR
TRG=$DM_TMPDIR/civicrm