Skip to content
Snippets Groups Projects
Commit 10d962ea authored by jurgenhaas's avatar jurgenhaas
Browse files

#41 Fix ahoy setup

parent 49cb495c
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ ADD config.fish /etc/fish/
ADD start.sh /usr/local/bin/.start
ADD configIdea.sh /usr/local/bin/.configIdea
ADD l3dComposer.php /usr/local/bin/.l3dComposer.php
ADD ahoy.changelog.yml /usr/local/bin/.ahoy.changelog.yml
ADD ahoy.changelog.yml /etc/ahoy/changelog.yml
ADD run/scripts/info /usr/local/bin/l3d
ADD run/scripts/version /usr/local/bin/version
ADD run/scripts/l3dnewversion /usr/local/bin/l3dnewversion
......
......@@ -193,11 +193,20 @@ function setupAhoy {
echo "ahoyapi: v2" >.ahoy.yml
echo "commands:" >>.ahoy.yml
fi
if [[ ! -f .ahoy ]]; then
ln -s /etc/ahoy .ahoy
fi
if [[ -f .gitignore ]]; then
EXISTING=$(cat .gitignore | grep "^/.ahoy/$")
if [[ -z ${EXISTING} ]]; then
echo "/.ahoy/" >>.gitignore
fi
fi
EXISTING=$(cat .ahoy.yml | grep "^ changelog:")
if [[ -z ${EXISTING} ]]; then
echo " changelog:" >>.ahoy.yml
echo " imports:" >>.ahoy.yml
echo " - /usr/local/bin/.ahoy.changelog.yml" >>.ahoy.yml
echo " - ./.ahoy/changelog.yml" >>.ahoy.yml
echo " usage: Changelog tools." >>.ahoy.yml
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment