Ports: remove architecture from .compile_hash files

This is was over complicating things and there can be only one banan-os
build at a given time.
This commit is contained in:
Bananymous 2024-08-07 16:07:59 +03:00
parent 5aca6c7c1f
commit 2ca7886f88
3 changed files with 6 additions and 6 deletions

View File

@ -61,7 +61,7 @@ done
build_dir="$NAME-$VERSION-$BANAN_ARCH" build_dir="$NAME-$VERSION-$BANAN_ARCH"
if [ ! -d "$build_dir" ]; then if [ ! -d "$build_dir" ]; then
rm -f ".compile_hash-$BANAN_ARCH" rm -f ".compile_hash"
fi fi
if [ "$VERSION" = "git" ]; then if [ "$VERSION" = "git" ]; then
@ -135,8 +135,8 @@ else
fi fi
needs_compile=1 needs_compile=1
if [ -f ".compile_hash-$BANAN_ARCH" ]; then if [ -f ".compile_hash" ]; then
sha256sum --check ".compile_hash-$BANAN_ARCH" &>/dev/null sha256sum --check ".compile_hash" &>/dev/null
needs_compile=$? needs_compile=$?
fi fi
@ -144,7 +144,7 @@ cd "$build_dir"
if (( $needs_compile )); then if (( $needs_compile )); then
build build
sha256sum "$BANAN_SYSROOT/usr/lib/libc.a" > "../.compile_hash-$BANAN_ARCH" sha256sum "$BANAN_SYSROOT/usr/lib/libc.a" > "../.compile_hash"
fi fi
install install

View File

@ -6,4 +6,4 @@ while IFS= read -r port; do
pushd $(dirname "$port") >/dev/null pushd $(dirname "$port") >/dev/null
./build.sh ./build.sh
popd >/dev/null popd >/dev/null
done < <(find . -name '.compile_hash*') done < <(find . -name '.compile_hash')

View File

@ -121,7 +121,7 @@ case $1 in
;; ;;
distclean) distclean)
rm -rf $BANAN_BUILD_DIR rm -rf $BANAN_BUILD_DIR
rm $BANAN_ROOT_DIR/ports/*/.compile_hash* find $BANAN_ROOT_DIR/ports -name '.compile_hash' -exec rm {} +
;; ;;
*) *)
build_target $1 build_target $1