Uber easy arch swap

This commit is contained in:
Ciro Santilli
2017-06-28 22:27:50 +01:00
parent e480b0fc64
commit 335b4be114
4 changed files with 14 additions and 9 deletions

10
setoutarch Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Maintain different buildroot/output archs with symlinks.
if [ "$#" -ne 1 ]; then
exit 1
fi
arch="$1"
dst="output.${arch}~"
src='buildroot/output'
mkdir -p "buildroot/$dst"
ln -fns "$dst" "$src"