Rockbox Development > Starting Development and Compiling

How to automatically compile a daily build

<< < (2/2)

pabouk:
The short code is:

--- Code: --- test -e nano-sim || mkdir nano-sim
--- End code ---

It has the same meaning as:

--- Code: ---if test ! -e nano-sim ; then
  mkdir nano-sim
fi
--- End code ---

For positive conditions use && instead of ||.

I would also recommend using variables like:

--- Code: ---BUILD_DIR=nano-sim
--- End code ---

See also: http://pegasus.rutgers.edu/~elflord/unix/bash-tute.html

Navigation

[0] Message Index

[*] Previous page

Go to full version