mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-30 21:14:24 +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
|
::bug fixes
|
||||||
- fix PATCHIMAGE_3DS_DIR setup when no ${HOME}/.patchimage.rc exists
|
- fix PATCHIMAGE_3DS_DIR setup when no ${HOME}/.patchimage.rc exists
|
||||||
- fix PATCHIMAGE_ROM_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:
|
v7.2.1:
|
||||||
::bug fixes
|
::bug fixes
|
||||||
|
@ -302,6 +302,12 @@ for game in ${GAME[@]}; do
|
|||||||
[[ ${NEW_GAME} ]] && GAME=(${NEW_GAME[@]})
|
[[ ${NEW_GAME} ]] && GAME=(${NEW_GAME[@]})
|
||||||
done
|
done
|
||||||
|
|
||||||
|
CURDIR=${PWD}
|
||||||
|
if [[ -w ${CURDIR} ]]; then
|
||||||
|
BUILD_DIR="${CURDIR}"/patchimage_build
|
||||||
|
else BUILD_DIR="${HOME}"/patchimage_build
|
||||||
|
fi
|
||||||
|
|
||||||
for game in ${GAME[@]}; do
|
for game in ${GAME[@]}; do
|
||||||
|
|
||||||
script=$(gawk -F : "/\<${game}\>/"'{print $3}' ${PATCHIMAGE_DATABASE_DIR}/scripts.db)
|
script=$(gawk -F : "/\<${game}\>/"'{print $3}' ${PATCHIMAGE_DATABASE_DIR}/scripts.db)
|
||||||
@ -316,6 +322,9 @@ for game in ${GAME[@]}; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p "${BUILD_DIR}"
|
||||||
|
cd "${BUILD_DIR}"
|
||||||
|
|
||||||
case ${GAME_TYPE} in
|
case ${GAME_TYPE} in
|
||||||
"RIIVOLUTION" )
|
"RIIVOLUTION" )
|
||||||
patchimage_riivolution
|
patchimage_riivolution
|
||||||
@ -350,4 +359,7 @@ for game in ${GAME[@]}; do
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
cd "${CURDIR}"
|
||||||
|
rm -rf "${BUILD_DIR}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user