summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@anevia.com>2015-03-26 11:29:35 +0100
committerHugues Hiegel <hugues.hiegel@anevia.com>2015-03-26 11:29:35 +0100
commit563faa0b92ae6cabb986b106be2f6e046131cc1e (patch)
tree97cc21348ce02e1670eddd7458d2a8df1253c6a4
parent3fb92fb9b55b3f1c1372b539f898ad7cf2bf7907 (diff)
[Keys] configure/make : check presence of files
- Checks presence of ./configure and Makefile/GNUmakefile - If not present, do whatever is possible to generate them - Launch the ./configure or make process if everything is ok.
-rw-r--r--user:hugues/GusBindings.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/user:hugues/GusBindings.zsh b/user:hugues/GusBindings.zsh
index d52d173..03fec0c 100644
--- a/user:hugues/GusBindings.zsh
+++ b/user:hugues/GusBindings.zsh
@@ -216,10 +216,10 @@ do
bindkey -M $keymap -s '^[T' '^[Q todo all -c\n'
fi
- bindkey -M $keymap -s '^[c' '^[Q ./configure\n'
+ bindkey -M $keymap -s '^[c' '^[Q [ ! -e configure ] && ( ./autogen.sh && ./configure ) || ./configure\n'
bindkey -M $keymap -s '^[©' '^[Q !?configure\n'
- bindkey -M $keymap -s '^[m' '^[Q make\n'
+ bindkey -M $keymap -s '^[m' '^[Q [ ! -e Makefile -a ! -e GNUmakefile ] && ( [ ! -e configure ] && ./autogen.sh ; ./configure && make ) || make\n'
bindkey -M $keymap -s '^[M' '^[Q make\n'
bindkey -M $keymap -s '^[l' '^[Q l\n'