switch to my own cmpr instead of gnu cmp

This commit is contained in:
j-hc
2022-08-12 02:28:20 +03:00
parent 88c78d52fe
commit 4ea93bf38e
7 changed files with 7 additions and 7 deletions

View File

@ -33,7 +33,7 @@ mkdir -p "$BUILD_DIR" "$TEMP_DIR"
if [ "$UPDATE_PREBUILTS" = true ]; then get_prebuilts; else set_prebuilts; fi
reset_template
get_xdelta
get_cmp
get_cmpr
if [ "$BUILD_YT" = true ]; then build_yt; fi
if [ "$BUILD_MUSIC_ARM64_V8A" = true ]; then build_music $ARM64_V8A; fi

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -9,18 +9,18 @@ done
if [ $ARCH = "arm" ]; then
export LD_LIBRARY_PATH=$MODPATH/lib/arm
alias xdelta='$MODPATH/bin/arm/xdelta'
alias cmp='$MODPATH/bin/arm/cmp'
alias cmpr='$MODPATH/bin/arm/cmpr'
elif [ $ARCH = "arm64" ]; then
export LD_LIBRARY_PATH=$MODPATH/lib/arm64
alias xdelta='$MODPATH/bin/arm64/xdelta'
alias cmp='$MODPATH/bin/arm64/cmp'
alias cmpr='$MODPATH/bin/arm64/cmpr'
else
abort "ERROR: unsupported arch: ${ARCH}!"
fi
set_perm_recursive $MODPATH/bin 0 0 0755 0777
BASEPATH=$(pm path __PKGNAME | grep base | cut -d: -f2)
if [ -n "$BASEPATH" ] && cmp -s $BASEPATH $MODPATH/stock.apk; then
if [ -n "$BASEPATH" ] && cmpr $BASEPATH $MODPATH/stock.apk; then
ui_print "* Installed __PKGNAME and module stock.apk are identical"
ui_print "* Skipping stock APK installation"
else

View File

@ -55,9 +55,9 @@ get_xdelta() {
extract_deb "${MODULE_TEMPLATE_DIR}/lib/arm/" "https://grimler.se/termux/termux-main/pool/main/libl/liblzma/liblzma_5.2.5-1_arm.deb" "./data/data/com.termux/files/usr/lib/*so*"
}
get_cmp() {
dl_if_dne "${MODULE_TEMPLATE_DIR}/bin/arm64/cmp" "https://github.com/Zackptg5/Cross-Compiled-Binaries-Android/blob/master/diffutils/cmp-arm64?raw=true"
dl_if_dne "${MODULE_TEMPLATE_DIR}/bin/arm/cmp" "https://github.com/Zackptg5/Cross-Compiled-Binaries-Android/blob/master/diffutils/cmp-arm?raw=true"
get_cmpr() {
dl_if_dne "${MODULE_TEMPLATE_DIR}/bin/arm64/cmpr" "https://github.com/j-hc/cmpr/releases/download/20220811/cmpr-arm64-v8a"
dl_if_dne "${MODULE_TEMPLATE_DIR}/bin/arm/cmpr" "https://github.com/j-hc/cmpr/releases/download/20220811/cmpr-armeabi-v7a"
}
abort() { echo "$1" && exit 1; }