Skip to content

Commit

Permalink
Fix build script and bump version again
Browse files Browse the repository at this point in the history
  • Loading branch information
yukuku committed Apr 24, 2019
1 parent 672b5d1 commit 92d50cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Alkitab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ android {
applicationId 'yuku.alkitab.debug'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 17000410
versionCode 17000411
versionName '4.5.6'
multiDexEnabled true
// Keep this synced with integrate_translations.sh!
Expand Down
21 changes: 2 additions & 19 deletions ybuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,6 @@ write_last_commit_hash() {
sed --in-place='' "s/0000000/$LAST_COMMIT_HASH/g" "$FILE"
}

overlay() {
P_SRC="$1"
P_DST="$2"

SRC="$THIS_SCRIPT_DIR/ybuild/overlay/$PKGDIST/$P_SRC"
DST="$BUILD_MAIN_PROJECT_DIR/src/main/$P_DST"

echo "Overlaying $P_DST with $P_SRC..."

if [ \! -e `dirname "$DST"` ] ; then
echo 'Making dir for overlay destination: ' "`dirname "$DST"`" '...'
mkdir -p "`dirname "$DST"`"
fi

cp "$SRC" "$DST" || read
}

# START BUILD-SPECIFIC

if [ "$BUILD_PACKAGE_NAME" == "" ] ; then
Expand Down Expand Up @@ -137,10 +120,10 @@ pushd $BUILD_DIR/$SUPER_PROJECT_NAME
echo 'Removing dummy version on assets/internal...'
rm -rf assets/internal

TEXT_RAW="$ALKITAB_PROPRIETARY_DIR/overlay/$BUILD_PACKAGE_NAME/text_raw/"
TEXT_RAW="$ALKITAB_PROPRIETARY_DIR/overlay/$BUILD_PACKAGE_NAME/text_raw"
mkdir assets/internal
echo "Copying text overlay from $TEXT_RAW..."
if ! cp -R $TEXT_RAW assets/internal ; then
if ! cp -R $TEXT_RAW/* assets/internal ; then
echo 'Copy text overlay FAILED'
exit 1
fi
Expand Down

0 comments on commit 92d50cd

Please sign in to comment.