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:
parent
5aca6c7c1f
commit
2ca7886f88
|
@ -61,7 +61,7 @@ done
|
|||
build_dir="$NAME-$VERSION-$BANAN_ARCH"
|
||||
|
||||
if [ ! -d "$build_dir" ]; then
|
||||
rm -f ".compile_hash-$BANAN_ARCH"
|
||||
rm -f ".compile_hash"
|
||||
fi
|
||||
|
||||
if [ "$VERSION" = "git" ]; then
|
||||
|
@ -135,8 +135,8 @@ else
|
|||
fi
|
||||
|
||||
needs_compile=1
|
||||
if [ -f ".compile_hash-$BANAN_ARCH" ]; then
|
||||
sha256sum --check ".compile_hash-$BANAN_ARCH" &>/dev/null
|
||||
if [ -f ".compile_hash" ]; then
|
||||
sha256sum --check ".compile_hash" &>/dev/null
|
||||
needs_compile=$?
|
||||
fi
|
||||
|
||||
|
@ -144,7 +144,7 @@ cd "$build_dir"
|
|||
|
||||
if (( $needs_compile )); then
|
||||
build
|
||||
sha256sum "$BANAN_SYSROOT/usr/lib/libc.a" > "../.compile_hash-$BANAN_ARCH"
|
||||
sha256sum "$BANAN_SYSROOT/usr/lib/libc.a" > "../.compile_hash"
|
||||
fi
|
||||
|
||||
install
|
||||
|
|
|
@ -6,4 +6,4 @@ while IFS= read -r port; do
|
|||
pushd $(dirname "$port") >/dev/null
|
||||
./build.sh
|
||||
popd >/dev/null
|
||||
done < <(find . -name '.compile_hash*')
|
||||
done < <(find . -name '.compile_hash')
|
||||
|
|
|
@ -121,7 +121,7 @@ case $1 in
|
|||
;;
|
||||
distclean)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue