make portage_confdir location dynamic

Don't hardcode /root/ or /release/ paths to the releng git checkout.
Use the active git repo as the base path instead.
This commit is contained in:
Mike Frysinger 2016-03-20 16:14:42 -04:00
parent 0f867a3dfd
commit 6a2361a8ea
27 changed files with 32 additions and 20 deletions

View file

@ -203,6 +203,12 @@ for i in $(find -name '*.spec'); do
sed -i "s|^${key}:.*\$|${key}: ${TMPDIR}/kconfig/${filename}|" ${i}
done
fi
# Expand vars that the spec expects us to.
sed -i \
-e "s:@DATESTAMP@:${DATESTAMP}:g" \
-e "s:@GITDIR@:${GITDIR}:g" \
"${i}"
done
if [ "${testing}" -eq 1 ]; then