rebuild: always force clean build
parent
b34ed6face
commit
35af22584b
12
rebuild.sh
12
rebuild.sh
|
@ -65,7 +65,7 @@ build_package() {
|
||||||
local special_handling
|
local special_handling
|
||||||
local no_pull
|
local no_pull
|
||||||
local install_as
|
local install_as
|
||||||
local makepkg_args="-srLc --noconfirm --needed"
|
local makepkg_args="-srLcCf --noconfirm"
|
||||||
|
|
||||||
while (( $# ))
|
while (( $# ))
|
||||||
do
|
do
|
||||||
|
@ -75,6 +75,7 @@ build_package() {
|
||||||
shift
|
shift
|
||||||
|
|
||||||
cd higan
|
cd higan
|
||||||
|
make clean
|
||||||
make -j12
|
make -j12
|
||||||
make install
|
make install
|
||||||
;;
|
;;
|
||||||
|
@ -112,7 +113,6 @@ build_package() {
|
||||||
makepkg_args="$makepkg_args -i"
|
makepkg_args="$makepkg_args -i"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local o_pkgver=$(pkg_ver)
|
|
||||||
local pkgver
|
local pkgver
|
||||||
|
|
||||||
makepkg $makepkg_args
|
makepkg $makepkg_args
|
||||||
|
@ -121,12 +121,8 @@ build_package() {
|
||||||
|
|
||||||
if (( $res ))
|
if (( $res ))
|
||||||
then
|
then
|
||||||
pkgver=$(pkg_ver)
|
echo "error in rebuild, aborting"
|
||||||
if [[ ! $install_as ]] || [[ ! $pkgver == $o_pkgver ]]
|
exit $res
|
||||||
then
|
|
||||||
echo "error in rebuild, aborting"
|
|
||||||
exit $res
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $install_as ]]
|
if [[ $install_as ]]
|
||||||
|
|
Loading…
Reference in New Issue