mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
chore(mac): drops one local mac-only helper .sh b/c redundant
This commit is contained in:
parent
157da20397
commit
81600de405
3 changed files with 2 additions and 35 deletions
|
|
@ -46,7 +46,7 @@ cd `dirname ${KEYMAN_MACIM_BASE_PATH}` > /dev/null
|
|||
KEYMAN_MACIM_BASE_PATH=`pwd`;
|
||||
popd > /dev/null
|
||||
|
||||
. $KEYMAN_MACIM_BASE_PATH/../bashHelperFunctions.sh
|
||||
. "$KEYMAN_ROOT/resources/shellHelperFunctions.sh"
|
||||
|
||||
KM_APP_NAME="Install Keyman.app"
|
||||
OUTPUT_DIR="$KEYMAN_MACIM_BASE_PATH/output"
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ cd `dirname ${KEYMAN_MACIM_BASE_PATH}` > /dev/null
|
|||
KEYMAN_MACIM_BASE_PATH=`pwd`;
|
||||
popd > /dev/null
|
||||
|
||||
. $KEYMAN_MACIM_BASE_PATH/../bashHelperFunctions.sh
|
||||
. "$KEYMAN_ROOT/resources/shellHelperFunctions.sh"
|
||||
|
||||
DEST_DIR="$KEYMAN_MACIM_BASE_PATH/output/upload"
|
||||
ADD_VERSION_TO_DEST_DIR=true
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# TODO: deprecate and replace with shellHelperFunctions.sh.
|
||||
|
||||
# The following allows coloring of warning and error lines, but only works if there's a
|
||||
# terminal attached, so not on the build machine.
|
||||
if ! [[ "$TERM" == "" || "$TERM" == "dumb" ]]; then
|
||||
ERROR_RED=$(tput setaf 1)
|
||||
WARNING_YELLOW=$(tput setaf 3)
|
||||
NORMAL=$(tput sgr0)
|
||||
fi
|
||||
|
||||
displayInfo() {
|
||||
if [ "$QUIET" != true ]; then
|
||||
while [[ $# -gt 0 ]] ; do
|
||||
echo $1
|
||||
shift # past argument
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
assertFileExists() {
|
||||
if ! [ -f $1 ]; then
|
||||
builder_die "Build failed: missing $1"
|
||||
fi
|
||||
}
|
||||
|
||||
assertValidVersionNbr()
|
||||
{
|
||||
if [[ "$1" == "" || ! "$1" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
builder_die "Specified version not valid: '$1'. Version should be in the form Major.Minor.BuildCounter"
|
||||
fi
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue