Skip to content

Instantly share code, notes, and snippets.

@kgadek

kgadek/.sh

Created Jul 25, 2015
Embed
What would you like to do?
#!/usr/bin/env bash
relpath() { # don't mind me, I'm just a mere tool
python2.7 -c 'import os.path, sys; print os.path.relpath(sys.argv[1],sys.argv[2])' "$1" "${2-$PWD}"
}
declare -a PKG_OK=()
PKG_FAIL=()
PKG_ALL=()
pushd splitted/flowbox_fx/build_7.10/libs/aws
PKG_ALL+=('7.10:libs/aws')
stack build -j 8
echo DUPA 14 "${PKG_OK}"
if [ $? -eq 0 ]; then
echo DUPA 16 "${PKG_OK}"
PKG_OK+=('7.10:libs/aws');
else
echo DUPA 19 "${PKG_OK}"
PKG_FAIL+=('7.10:libs/aws');
fi
echo DUPA 22 "${PKG_OK}"
popd # splitted/flowbox_fx/build_7.10/libs/aws
pushd splitted/flowbox_fx/build_7.10/libs/batch/batch
PKG_ALL+=('7.10:libs/batch/batch')
stack build -j 8
echo DUPA 57 "${PKG_OK}"
if [ $? -eq 0 ]; then
echo DUPA 30 "${PKG_OK}"
PKG_OK+=('7.10:libs/batch/batch');
echo DUPA 32 "${PKG_OK}"
else
echo DUPA 34 "${PKG_OK}"
PKG_FAIL+=('7.10:libs/batch/batch');
echo DUPA 36 "${PKG_OK}"
fi
echo DUPA 38 "${PKG_OK}"
popd # splitted/flowbox_fx/build_7.10/libs/batch/batch
################################################################################
for PKG in ${PKG_OK}; do
echo "SUCCESS: ${PKG}";
done
for PKG in ${PKG_FAIL}; do
echo "FAIL: ${PKG}";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.