Merge pull request #18847 from civicrm/5.31
[civicrm-core.git] / distmaker / dists / l10n.sh
index 9dc91e260ddb32b0d6124fc27541b56f5396b6a5..5a08606868bb4fbfc1be62c6f5e9030605af1018 100644 (file)
@@ -14,22 +14,18 @@ fi
 SRC=$DM_SOURCEDIR
 TRG=$DM_TMPDIR/civicrm
 
-# make sure and clean up before
-[ -d $TRG ] && rm -rf $TRG/*
-
 # copy all the stuff
+dm_reset_dirs "$TRG"
 dm_install_l10n "$SRC/l10n" "$TRG/l10n"
-dm_install_files "$SRC" "$TRG" {agpl-3.0,agpl-3.0.exception,gpl,README,CONTRIBUTORS}.txt
 
-# copy selected sqls
 [ ! -d $TRG/sql ] && mkdir $TRG/sql
-for F in $SRC/sql/civicrm*.mysql $SRC/sql/case_sample*.mysql; do
+for F in $SRC/sql/civicrm_*.??_??.mysql; do
        cp $F $TRG/sql
 done
 
 # gen tarball
 cd $TRG/..
-tar czf $DM_TARGETDIR/civicrm-$DM_VERSION-l10n.tar.gz --exclude '*.po' --exclude pot civicrm/l10n civicrm/sql/civicrm_*.??_??.mysql
+tar czf $DM_TARGETDIR/civicrm-$DM_VERSION-l10n.tar.gz --exclude '*.po' --exclude pot civicrm
 
 # clean up
 rm -rf $TRG