xbps-src: copy XBPS_* settings from etc/conf only if the file exists.

This commit is contained in:
Juan RP 2014-06-30 11:52:52 +02:00
parent abb9291457
commit a5e726c4ec

View file

@ -11,7 +11,9 @@ XBPS_CXXFLAGS="$XBPS_CXXFLAGS"
XBPS_CPPFLAGS="$XBPS_CPPFLAGS"
XBPS_LDFLAGS="$XBPS_LDFLAGS"
_EOF
if [ -e $XBPS_CONFIG_FILE ]; then
grep -E '^XBPS_.*' $XBPS_CONFIG_FILE >> $XBPSSRC_CF
fi
echo "# End of configuration file." >> $XBPSSRC_CF