-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 957 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
skeletons = nette wp
repo_path = ssh://dc/var/cache/git
all:
@echo "Select particular task, no rule to make all."
test:
phpunit --no-globals-backup tests
$(skeletons):
git remote add $@-skeleton $(repo_path)/$@-skeleton.git
git fetch $@-skeleton
git rebase master $@-skeleton/master
git checkout -b $@-skeleton
git checkout master
git merge $@-skeleton
git branch -d $@-skeleton
git remote rm $@-skeleton
hooks: local_config.ini
git remote add deployment_scripts $(repo_path)/deployment_scripts.git
git fetch deployment_scripts
git stash
git checkout deployment_scripts/master
cp --verbose --backup=numbered bin/pre-commit .git/hooks/
cp --verbose --backup=numbered bin/get_alter_export.pl .git/hooks/
cp --verbose --backup=numbered bin/apply_alter_export.pl .git/hooks/
cp --verbose --backup=numbered bin/post-merge .git/hooks
git checkout master
git stash apply
git remote rm deployment_scripts