diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2011-06-01 20:59:52 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-06-01 21:45:50 +0200 |
commit | fa1f2682d4b8077a6c82002976f090827db3d8e5 (patch) | |
tree | ea3a2eb9491f0e8bc996d09f3b84688626e1b55b /src/target/target.c | |
parent | 796086cd49f769a55bebcdd43d2d348672c87371 (diff) | |
download | openocd+libswd-fa1f2682d4b8077a6c82002976f090827db3d8e5.tar.gz openocd+libswd-fa1f2682d4b8077a6c82002976f090827db3d8e5.tar.bz2 openocd+libswd-fa1f2682d4b8077a6c82002976f090827db3d8e5.tar.xz openocd+libswd-fa1f2682d4b8077a6c82002976f090827db3d8e5.zip |
bootstrap: Various code improvements
- Do not specify -e twice.
- Use "which" instead of calling commands that might not exist.
- Fix bashism ("==" is C not sh)
- Carefully quote potentially empty variables
- Check command arguments before doing anything
- Rewrite argument checking to be more easily extensible
- Consistent indentation
- UNIX style error messages
Diffstat (limited to 'src/target/target.c')
0 files changed, 0 insertions, 0 deletions