docker: Prefix src copy dir with "."
PATCH v2 1/1 docker: Prefix src copy dir with "."
So they don't show up in "ls" command, and don't clutter editor's quick open plugins easily (such as CtrlP of VIM).
---
Update .gitignore entry too.
--- .gitignore | 2 +- tests/docker/Makefile.include | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
.gitignore +1 -1
@@ -113,5 +113,5 @@ cscope.* tags TAGS -docker-src.* +.docker-src.* *~
tests/docker/Makefile.include +1 -1
@@ -28,7 +28,7 @@ make-archive-maybe = $(if $(wildcard $1/*), \ " ARCHIVE $(notdir $2)")) CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$) -DOCKER_SRC_COPY := docker-src.$(CUR_TIME) +DOCKER_SRC_COPY := .docker-src.$(CUR_TIME) $(DOCKER_SRC_COPY): @mkdir $@
Signature · 1 line
2.7.4
Quoted 2 lines · Fam Zheng
So they don't show up in "ls" command, and don't clutter editor's quick open plugins easily (such as CtrlP of VIM).
It is also harder to remove it this way though. Perhaps move it into tests/docker?
Paolo
Quoted 35 lines
Signed-off-by Fam Zheng <[email protected]>---
Update .gitignore entry too.
--- .gitignore | 2 +- tests/docker/Makefile.include | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-).gitignore +1
-1@@ -113,5 +113,5 @@ cscope.* tags TAGS -docker-src.* +.docker-src.* *~tests/docker/Makefile.include +1
-1@@ -28,7 +28,7 @@ make-archive-maybe = $(if $(wildcard $1/*), \ " ARCHIVE $(notdir $2)")) CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$) -DOCKER_SRC_COPY := docker-src.$(CUR_TIME) +DOCKER_SRC_COPY := .docker-src.$(CUR_TIME) $(DOCKER_SRC_COPY): @mkdir $@
Quoted 8 lines · Paolo Bonzini
Quoted 2 lines · Fam Zheng
So they don't show up in "ls" command, and don't clutter editor's quick open plugins easily (such as CtrlP of VIM).
It is also harder to remove it this way though. Perhaps move it into tests/docker?
That isn't ideal. CtrlP does non-contingous sequence matching on the path name I type in, and the docker directory has many characters that distracts the matching a lot.
Any other options you can think of?
Fam