From 7813e5801882bd8de6cc3949bcb1e4bef9a0ab39 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sun, 21 Oct 2012 17:34:53 +0200 Subject: add script to package on toolchain Signed-off-by: Michael Olbrich --- build_one.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 build_one.sh (limited to 'build_one.sh') diff --git a/build_one.sh b/build_one.sh new file mode 100755 index 0000000..8e3a8fb --- /dev/null +++ b/build_one.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +pattern="$1" +config=( $(find ptxconfigs/ -path "*${pattern}*.ptxconfig") ) + +if [ ${#config[@]} -eq 0 ]; then + echo "Could not find config for '${pattern}'!" + exit 1 +fi +if [ ${#config[@]} -gt 1 ]; then + echo "'${pattern}' matches more than on config:" + for cfg in "${config[@]}"; do + echo -e "\t${cfg}" + done + exit 1 +fi + +target="${config#ptxconfigs/}" +target="${target%.ptxconfig}" +target="gstate/${target//_/-}.pkgs" + +exec "$(dirname $0)/build_all_v2.mk" "${target}" -- cgit v1.2.3