mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add post-merge hook to handle composer updates, update README.md
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
2016-03-18 DariusIII
|
2016-03-18 DariusIII
|
||||||
|
* Upd: Add post-merge hook to handle composer updates, update README.md
|
||||||
* Upd: Add back TV processing to NFO processing.
|
* Upd: Add back TV processing to NFO processing.
|
||||||
* Chg: Add match_prefiles to tmux.
|
* Chg: Add match_prefiles to tmux.
|
||||||
2016-03-17 DariusIII
|
2016-03-17 DariusIII
|
||||||
|
|||||||
@@ -39,6 +39,12 @@ I started adapting some of more interesting scripts from nZEDb, but they require
|
|||||||
When you have downloaded and installed composer,
|
When you have downloaded and installed composer,
|
||||||
run "php composer.phar install" to install dependencies and create required
|
run "php composer.phar install" to install dependencies and create required
|
||||||
folders and autoloader for them.
|
folders and autoloader for them.
|
||||||
|
Next: sudo cp composer.phar /usr/local/bin/composer
|
||||||
|
sudo chmod a+x /usr/local/bin/composer
|
||||||
|
|
||||||
|
# Git hooks
|
||||||
|
|
||||||
|
Note: run addHooks.sh from build/git-hooks folder to add required git hooks.
|
||||||
|
|
||||||
# yEnc:
|
# yEnc:
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ NNTMUX=`pwd`
|
|||||||
HOOKS=/build/git-hooks
|
HOOKS=/build/git-hooks
|
||||||
GIT=/.git/hooks
|
GIT=/.git/hooks
|
||||||
PC=/pre-commit
|
PC=/pre-commit
|
||||||
|
PM=/post-merge
|
||||||
|
|
||||||
NNTMUX=${NNTMUX%${HOOKS}}
|
NNTMUX=${NNTMUX%${HOOKS}}
|
||||||
|
|
||||||
@@ -13,5 +14,11 @@ then
|
|||||||
rm "${NNTMUX}${GIT}${PC}"
|
rm "${NNTMUX}${GIT}${PC}"
|
||||||
echo .
|
echo .
|
||||||
fi
|
fi
|
||||||
|
if [ -x "${NNTMUX}${GIT}${PM}" ]
|
||||||
|
then
|
||||||
|
rm "${NNTMUX}${GIT}${PM}"
|
||||||
|
echo .
|
||||||
|
fi
|
||||||
|
|
||||||
ln -s ${NNTMUX}${HOOKS}${PC} ${NNTMUX}${GIT}${PC}
|
ln -s ${NNTMUX}${HOOKS}${PC} ${NNTMUX}${GIT}${PC}
|
||||||
|
ln -s ${NNTMUX}${HOOKS}${PM} ${NNTMUX}${GIT}${PM}
|
||||||
|
|||||||
Executable
+14
@@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# MIT © Sindre Sorhus - sindresorhus.com
|
||||||
|
# forked by Gianluca Guarini
|
||||||
|
# phponly by Ivo Bathke ;)
|
||||||
|
|
||||||
|
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
|
||||||
|
|
||||||
|
check_run() {
|
||||||
|
echo "$changed_files" | grep --quiet "$1" && eval "$2"
|
||||||
|
}
|
||||||
|
|
||||||
|
# `composer install` if the `composer.lock` file gets changed
|
||||||
|
# to update all the php dependencies
|
||||||
|
check_run composer.lock "composer install --no-dev"
|
||||||
Reference in New Issue
Block a user