mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-10-31 23:05:06 +01:00
- fix error messages or required user-input during batch-build by
creating a separate build directory, when create the mod and before the next build is done that build directory is removed and re-created
This commit is contained in:
parent
802a67dc43
commit
78bf8f33fd
@ -2,6 +2,11 @@ v7.2.2:
|
||||
::bug fixes
|
||||
- fix PATCHIMAGE_3DS_DIR setup when no ${HOME}/.patchimage.rc exists
|
||||
- fix PATCHIMAGE_ROM_DIR setup when no ${HOME}/.patchimage.rc exists
|
||||
- fix error messages or required user-input during batch-build by
|
||||
creating a separate build directory, when create the mod and before
|
||||
the next build is done that build directory is removed and re-created
|
||||
- when ${PWD} is writable that will be ${PWD}/patchimage_build, else
|
||||
it will be ${HOME}/patchimage_build
|
||||
|
||||
v7.2.1:
|
||||
::bug fixes
|
||||
|
@ -302,6 +302,12 @@ for game in ${GAME[@]}; do
|
||||
[[ ${NEW_GAME} ]] && GAME=(${NEW_GAME[@]})
|
||||
done
|
||||
|
||||
CURDIR=${PWD}
|
||||
if [[ -w ${CURDIR} ]]; then
|
||||
BUILD_DIR="${CURDIR}"/patchimage_build
|
||||
else BUILD_DIR="${HOME}"/patchimage_build
|
||||
fi
|
||||
|
||||
for game in ${GAME[@]}; do
|
||||
|
||||
script=$(gawk -F : "/\<${game}\>/"'{print $3}' ${PATCHIMAGE_DATABASE_DIR}/scripts.db)
|
||||
@ -316,6 +322,9 @@ for game in ${GAME[@]}; do
|
||||
continue
|
||||
fi
|
||||
|
||||
mkdir -p "${BUILD_DIR}"
|
||||
cd "${BUILD_DIR}"
|
||||
|
||||
case ${GAME_TYPE} in
|
||||
"RIIVOLUTION" )
|
||||
patchimage_riivolution
|
||||
@ -350,4 +359,7 @@ for game in ${GAME[@]}; do
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
cd "${CURDIR}"
|
||||
rm -rf "${BUILD_DIR}"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user