Mercurial > louis > kiibohd-controller
comparison buildall.bash @ 408:47a2714ca802
Ensure directories can only be made with printable characters
In situations where `ls` colors directories incorrectly, the `$module`
variable contains unprintable characters. This causes directories to be
impossible to `cd` into normally, and is generally a pain.
author | Ryan S. Brown <sb@ryansb.com> |
---|---|
date | Sat, 06 Feb 2016 21:06:08 -0500 |
parents | 99f93dec8fea |
children |
comparison
equal
deleted
inserted
replaced
406:a8104feb0514 | 408:47a2714ca802 |
---|---|
29 scanModules=${scanModules[@]//matrix/} | 29 scanModules=${scanModules[@]//matrix/} |
30 | 30 |
31 # Create permutation directories | 31 # Create permutation directories |
32 # Then run cmake, and run each build permutation | 32 # Then run cmake, and run each build permutation |
33 # Keeping track of how many builds failed/passed | 33 # Keeping track of how many builds failed/passed |
34 for module in $scanModules; do | 34 for mod in $scanModules; do |
35 module=$(tr -dc "[:print:]" <<< "$mod") | |
35 # Create directory, but do not error if it exists already | 36 # Create directory, but do not error if it exists already |
36 mkdir -p build/$module | 37 mkdir -p build/$module |
37 cd build/$module | 38 cd build/$module |
38 | 39 |
39 # Make sure CMake has been run, and attempt to build | 40 # Make sure CMake has been run, and attempt to build |