Switch to exclude-from for rsync and according exclusion list (which should be completed as necessary)

2.16
franck 2019-09-18 15:37:52 +02:00
parent cc7cbf5ea1
commit eb3a1ee075
Signed by: franck-paul
GPG Key ID: BC0939B7E6CF71E7
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,21 @@
# Developpement specific dirs/files
*.map
*.rb
sass
scss
.sass*
scripts
# CVS dirs/files
.git*
.hg*
*.old
*.bak
*.BAK
*.orig
*.rej
# Archives
*.zip
# Documentation
mkdocs
# Mac OS Specific
.DS_Store

View File

@ -42,7 +42,7 @@ if [ -d "$MOD_NAME" ]; then
rm -rf ./"$MOD_NAME"
fi
mkdir ./"$MOD_NAME"
rsync --exclude="$MOD_NAME" --exclude="mkdocs" --exclude="build.sh" --exclude=".git*" --exclude=".DS_Store" --exclude="*.zip" --exclude="*.map" --exclude="*.rb" --exclude="sass" --exclude="scss" --exclude=".sass*" --exclude="scripts" -a . ./"$MOD_NAME"
rsync --exclude-from="$DIRECTORY/build-module-rsync-exclude.txt" --exclude="$MOD_NAME" -a . ./"$MOD_NAME"
# Pack Javascript files
if [ -f "$MIN_JS" ]; then