Commit 08297720 authored by totten's avatar totten

INFRA-142 - distmaker - (Precaution) Exclude .toxic.json

This file shouldn't show up in the root (since dm_install_core uses a
whitelist), but if we add it to other repos, it could show there.
parent 6f7e1950
......@@ -127,6 +127,12 @@ function dm_install_drupal() {
sed -i'' "s/version = [1-9.]*/version = $DM_VERSION/g" $INFO
fi
done
for f in "$to/.gitignore" "$to/.toxic.json" ; do
if [ -f "$f" ]; then
rm -f "$f"
fi
done
}
## Copy Joomla-integration module
......@@ -140,7 +146,12 @@ function dm_install_joomla() {
## modules twice. The two were basically identical -- except that
## one included .gitignore and the omitted it. We'll now omit it
## consistently.
rm -f "$to/.gitignore"
for f in "$to/.gitignore" "$to/.toxic.json" ; do
if [ -f "$f" ]; then
rm -f "$f"
fi
done
}
## usage: dm_install_l10n <l10n_repo_path> <to_path>
......@@ -177,6 +188,7 @@ function dm_install_wordpress() {
--exclude=.git \
--exclude=.svn \
--exclude=civicrm.config.php.wordpress \
--exclude=.toxic.json \
--exclude=.gitignore \
--exclude=civicrm \
"$repo/./" "$to/./"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment