Mercurial Hosting > traffic-intelligence
changeset 88:626560624d55
added the simple script to create directories
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 06 Jun 2011 18:06:01 -0400 |
parents | f234154207d4 |
children | f88a19695bba |
files | c/Makefile scripts/createdirectory.sh |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/c/Makefile Thu Apr 28 15:07:21 2011 -0400 +++ b/c/Makefile Mon Jun 06 18:06:01 2011 -0400 @@ -1,4 +1,5 @@ BUILD_DIR=../bin +SCRIPTS_DIR=../scripts CXX = g++ @@ -56,7 +57,7 @@ all: test-pixels optical-flow track-features builddir: - @createdirectory.sh $(BUILD_DIR) + @$(SCRIPTS_DIR)/createdirectory.sh $(BUILD_DIR) track-features.o: track-features.cpp $(CXX) -I../../klt $(INCLUDE) $^ -c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/createdirectory.sh Mon Jun 06 18:06:01 2011 -0400 @@ -0,0 +1,7 @@ +#!/bin/bash +DIRECTORY=$1 +if [[ ! -d "${DIRECTORY}" && ! -L "${DIRECTORY}" ]] ; then + echo "creating directory ${DIRECTORY}" + mkdir "${DIRECTORY}" +fi +#if [[ -d "${DIRECTORY}" && ! -L "${DIRECTORY}" ]] ; then