X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildall.bash;h=a8c393b58eea7c8b7c09317d0afd08b926675716;hb=88670ac72f51e5f1f68b72ca300bdb0c999a37f7;hp=410460f17834cbaa63eb0bbe9c117c2c8149eb2f;hpb=94390571c4a70b2e88f8f2090c66e4f455be2e44;p=kiibohd-controller.git diff --git a/buildall.bash b/buildall.bash index 410460f..a8c393b 100755 --- a/buildall.bash +++ b/buildall.bash @@ -1,6 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash ###| Builder Script |### -# +# # Builds all permutations of modules # This script is an attempt to maintain module sanity as new ones are added # @@ -31,7 +31,8 @@ main() { # Create permutation directories # Then run cmake, and run each build permutation # Keeping track of how many builds failed/passed - for module in $scanModules; do + for mod in $scanModules; do + module=$(tr -dc "[:print:]" <<< "$mod") # Create directory, but do not error if it exists already mkdir -p build/$module cd build/$module @@ -40,7 +41,7 @@ main() { cmake -DScanModuleOverride=$module ../.. && make || let failCount++ # Cleanup, for the next build - cd - + cd - > /dev/null done totalModules=$(echo $scanModules | wc -w)