chroot.sh: mention that xbps-src.conf in the chroot is autogenerated.
This commit is contained in:
parent
c99bd06de9
commit
816b0945a8
|
@ -57,21 +57,26 @@ fi
|
|||
|
||||
XBPSSRC_CF=$XBPS_MASTERDIR/usr/local/etc/xbps-src.conf
|
||||
|
||||
echo "XBPS_DISTRIBUTIONDIR=/xbps" > $XBPSSRC_CF
|
||||
echo "XBPS_MASTERDIR=/" >> $XBPSSRC_CF
|
||||
echo "XBPS_CFLAGS=\"$XBPS_CFLAGS\"" >> $XBPSSRC_CF
|
||||
echo "XBPS_CXXFLAGS=\"\$XBPS_CFLAGS\"" >> $XBPSSRC_CF
|
||||
echo "XBPS_FETCH_CMD='xbps-uhelper.static fetch'" >> $XBPSSRC_CF
|
||||
cat > $XBPSSRC_CF <<_EOF
|
||||
# Generated configuration file by xbps-src, DO NOT EDIT!
|
||||
XBPS_DISTRIBUTIONDIR=/xbps
|
||||
XBPS_MASTERDIR=/
|
||||
XBPS_CFLAGS="$XBPS_CFLAGS"
|
||||
XBPS_CXXFLAGS="$XBPS_CFLAGS"
|
||||
XBPS_FETCH_CMD="xbps-uhelper.static fetch"
|
||||
XBPS_COMPRESS_CMD="$XBPS_COMPRESS_CMD"
|
||||
_EOF
|
||||
|
||||
if [ -n "$XBPS_MAKEJOBS" ]; then
|
||||
echo "XBPS_MAKEJOBS=$XBPS_MAKEJOBS" >> $XBPSSRC_CF
|
||||
fi
|
||||
if [ -n "$XBPS_PREFER_BINPKG_DEPS" ]; then
|
||||
echo "XBPS_PREFER_BINPKG_DEPS=$XBPS_PREFER_BINPKG_DEPS" >> $XBPSSRC_CF
|
||||
fi
|
||||
echo "XBPS_COMPRESS_CMD=$XBPS_COMPRESS_CMD" >> $XBPSSRC_CF
|
||||
if [ -n "$XBPS_COMPRESS_LEVEL" ]; then
|
||||
echo "XBPS_COMPRESS_LEVEL=$XBPS_COMPRESS_LEVEL" >> $XBPSSRC_CF
|
||||
fi
|
||||
echo "# End of configuration file." >> $XBPSSRC_CF
|
||||
|
||||
prepare_chroot()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue