|
|
|
@ -1,8 +1,10 @@ |
|
|
|
SHELL=/bin/bash
|
|
|
|
SHELL=/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build: submodules resh-collect resh-daemon |
|
|
|
build: submodules resh-collect resh-daemon |
|
|
|
|
|
|
|
|
|
|
|
install: build $(HOME)/.resh $(HOME)/.resh/bin |
|
|
|
|
|
|
|
|
|
|
|
install: build | $(HOME)/.resh $(HOME)/.resh/bin |
|
|
|
cp submodules/bash-preexec/bash-preexec.sh ~/.bash-preexec.sh -f
|
|
|
|
cp submodules/bash-preexec/bash-preexec.sh ~/.bash-preexec.sh -f
|
|
|
|
cp bashrc.sh ~/.resh/bashrc -f
|
|
|
|
cp bashrc.sh ~/.resh/bashrc -f
|
|
|
|
cp resh-* ~/.resh/bin/ -f
|
|
|
|
cp resh-* ~/.resh/bin/ -f
|
|
|
|
@ -29,9 +31,16 @@ $(HOME)/.resh/bin: |
|
|
|
|
|
|
|
|
|
|
|
.PHONY: submodules build install |
|
|
|
.PHONY: submodules build install |
|
|
|
|
|
|
|
|
|
|
|
submodules: submodules/bash-preexec/bash-preexec.sh |
|
|
|
submodules: | submodules/bash-preexec/bash-preexec.sh |
|
|
|
# this is always run and updates submodules
|
|
|
|
@# sets submodule.recurse to true if unset
|
|
|
|
git submodule update --recursive
|
|
|
|
@# sets status.submoduleSummary to true if unset
|
|
|
|
|
|
|
|
@git config --get submodule.recurse >/dev/null || git config --global submodule.recurse true
|
|
|
|
|
|
|
|
@git config --get status.submoduleSummary >/dev/null || git config --global status.submoduleSummary true
|
|
|
|
|
|
|
|
@git config --get diff.submodule >/dev/null || git config --global diff.submodule log
|
|
|
|
|
|
|
|
@# warns user if submodule.recurse is not set to true
|
|
|
|
|
|
|
|
@[[ "true" == `git config --get submodule.recurse` ]] || echo "WARN: You should REALLY set 'git config --global submodule.recurse true'!"
|
|
|
|
|
|
|
|
@#git config --global push.recurseSubmodules check
|
|
|
|
|
|
|
|
|
|
|
|
submodules/%: |
|
|
|
submodules/%: |
|
|
|
git submodule init
|
|
|
|
git submodule sync --recursive
|
|
|
|
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|