Make make.defines optional
This commit is contained in:
parent
3ea24316cc
commit
219a906b87
|
@ -13,7 +13,7 @@ else
|
|||
REMOVE="^%ARCHX64%"
|
||||
fi
|
||||
|
||||
source "${dir}/make.defines"
|
||||
[ -r "${dir}/make.defines" ] && source "${dir}/make.defines"
|
||||
|
||||
if [ -z "${BUILDENV}" ]; then
|
||||
grep -v '^%BUILDENV%' "${dir}/make.conf.template" | sed -e 's#^%~BUILDENV%##' | grep -v "${FILTER}" | sed -e "s#${REMOVE}##" > "${tempfile}"
|
||||
|
@ -24,7 +24,7 @@ fi
|
|||
if cmp -s "${dir}/make.conf" "${tempfile}"; then
|
||||
rm -f "${tempfile}"
|
||||
else
|
||||
touch -r "${dir}/make.defines" "${tempfile}"
|
||||
touch -r "${dir}/make.conf.template" "${tempfile}"
|
||||
mv -f "${tempfile}" "${dir}/make.conf"
|
||||
echo "Updated make.conf"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue