diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2012-01-08 22:59:04 +0100 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2012-01-08 22:59:04 +0100 |
commit | 5d1ae8c08688fce349dd789e535091672ac59b65 (patch) | |
tree | 950a30c8be3e04690c981ce6c5804cc3fa82fe44 /make-all.sh | |
parent | 456ea67048dd9e316d442bed26a7d5437f6f99e9 (diff) | |
download | v-usb-5d1ae8c08688fce349dd789e535091672ac59b65.tar.gz v-usb-5d1ae8c08688fce349dd789e535091672ac59b65.tar.bz2 v-usb-5d1ae8c08688fce349dd789e535091672ac59b65.zip |
GIT migration: create empty directory in script
Diffstat (limited to 'make-all.sh')
-rwxr-xr-x | make-all.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/make-all.sh b/make-all.sh new file mode 100755 index 0000000..f797060 --- /dev/null +++ b/make-all.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# Author: Christian Starkjohann +# Creation Date: 2008-04-17 +# Tabsize: 4 +# Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH +# License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) +# This Revision: $Id$ + +if [ "$2" = windows ]; then + find . -mindepth 2 -name Makefile.windows -exec sh -c "cd \`dirname {}\`; cross-make.sh $1" \; +else + find . -mindepth 2 -name Makefile -print | while read i; do + dir=`dirname $i` + dirname=`basename $dir` + ( + cd $dir + if [ "$dirname" = "firmware" -a -z "$1" ]; then + make hex + else + make $1 + fi + ) + done +fi |