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"
-# copy selected sqls
-if [ ! -d $TRG/sql ] ; then
- mkdir $TRG/sql
-fi
-
-for F in $SRC/sql/civicrm*.mysql $SRC/sql/counties.US.sql.gz $SRC/sql/case_sample*.mysql; do
+[ ! -d $TRG/sql ] && mkdir $TRG/sql
+for F in $SRC/sql/civicrm_*.??_??.mysql; do
cp $F $TRG/sql
done
-# copy docs
-cp $SRC/agpl-3.0.txt $TRG
-cp $SRC/gpl.txt $TRG
-cp $SRC/README.txt $TRG
-cp $SRC/CONTRIBUTORS.txt $TRG
-cp $SRC/agpl-3.0.exception.txt $TRG
-
# 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