bin/build automatically generates

This commit is contained in:
2015-12-05 22:43:48 +01:00
parent 2a05f52450
commit e4b0f7b975
17 changed files with 21 additions and 94 deletions

View File

@@ -1 +1,19 @@
make -f $DOCKER_HOME/images/$1.mk build
FILE=$DOCKER_HOME/images/$1.mk
echo $FILE
if [[ ! -e $FILE ]]; then
DELETE=true
FILE="$(mktemp)"
echo 123
cat <<- EOF > $FILE
include \$(DOCKER_HOME)/build/Makefile
NAME = $1
VERSION = latest
build: $1
EOF
fi
make -f $FILE build
if [ ! -z ${DELETE+x} ]; then
rm $FILE
fi