Skip to content

Commit

Permalink
add git check in top level build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Apr 30, 2020
1 parent 4ad203d commit d09b437
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,11 @@ if [[ -z ${ANDROID_HOME} ]]; then
exit 1
fi

if [[ -z ${BUILD_VERSION} ]]; then
echo -e "\nerror: Can not run git commands in this folder. See build.log.\n"
exit 1
fi

echo -e "\nBuilding mobile-ffmpeg ${BUILD_TYPE_ID}library for Android\n"
echo -e -n "INFO: Building mobile-ffmpeg ${BUILD_VERSION} ${BUILD_TYPE_ID}library for Android: " 1>>${BASEDIR}/build.log 2>&1
echo -e $(date) 1>>${BASEDIR}/build.log 2>&1
Expand Down
5 changes: 5 additions & 0 deletions ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,11 @@ if [[ -n ${DISPLAY_HELP} ]]; then
exit 0
fi

if [[ -z ${BUILD_VERSION} ]]; then
echo -e "\nerror: Can not run git commands in this folder. See build.log.\n"
exit 1
fi

# SELECT XCODE VERSION USED FOR BUILDING
XCODE_FOR_MOBILE_FFMPEG=~/.xcode.for.mobile.ffmpeg.sh
if [[ -f ${XCODE_FOR_MOBILE_FFMPEG} ]]; then
Expand Down
5 changes: 5 additions & 0 deletions tvos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,11 @@ if [[ ! -z ${DISPLAY_HELP} ]]; then
exit 0
fi

if [[ -z ${BUILD_VERSION} ]]; then
echo -e "\nerror: Can not run git commands in this folder. See build.log.\n"
exit 1
fi

# SELECT XCODE VERSION USED FOR BUILDING
XCODE_FOR_MOBILE_FFMPEG=~/.xcode.for.mobile.ffmpeg.sh
if [[ -f ${XCODE_FOR_MOBILE_FFMPEG} ]]; then
Expand Down

0 comments on commit d09b437

Please sign in to comment.