Prompt for rebuild when archiving.

This commit is contained in:
casey langen 2022-02-10 00:33:41 -08:00
parent 293e1dfc1b
commit 439bd3ff10

View File

@ -12,6 +12,8 @@ fi
OS=$(uname) OS=$(uname)
ARCH=$(uname -m) ARCH=$(uname -m)
OS_ARCH="${OS}-${ARCH}" OS_ARCH="${OS}-${ARCH}"
OUTNAME="musikcube_${OS_ARCH}_$VERSION"
OUTDIR="dist/$OUTNAME"
SCRIPTDIR=`dirname "$0"` SCRIPTDIR=`dirname "$0"`
DLL_EXT="so" DLL_EXT="so"
@ -24,14 +26,19 @@ if [ $OS == "Linux" ]; then
OS_SPECIFIC_BUILD_FLAGS="-DENABLE_PIPEWIRE=true" OS_SPECIFIC_BUILD_FLAGS="-DENABLE_PIPEWIRE=true"
fi fi
# ${SCRIPTDIR}/clean-nix.sh printf "\n"
# rm -rf bin/ 2> /dev/null read -p ' clean and rebuild [y]? ' CLEAN
if [[ $CLEAN == 'n' || $CLEAN == 'N' ]]; then
printf "\n\n\n ***** SKIPPING REBUILD *****\n\n\n"
else
printf "\n\n\n ***** REBUILDING NOW *****\n\n\n"
# cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PCH=true -DBUILD_STANDALONE=true ${OS_SPECIFIC_BUILD_FLAGS} . ${SCRIPTDIR}/clean-nix.sh
# make -j8 rm -rf bin/ 2> /dev/null
OUTNAME="musikcube_${OS_ARCH}_$VERSION" cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PCH=true -DBUILD_STANDALONE=true ${OS_SPECIFIC_BUILD_FLAGS} .
OUTDIR="dist/$OUTNAME" make -j8
fi
rm -rf $OUTDIR rm -rf $OUTDIR
rm dist/$OUTNAME* 2> /dev/null rm dist/$OUTNAME* 2> /dev/null