From 816b0945a892cec62874d4d73947507b6e4090d0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 14 May 2010 01:12:53 +0200 Subject: [PATCH] chroot.sh: mention that xbps-src.conf in the chroot is autogenerated. --- xbps-src/shutils/chroot.sh.in | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/xbps-src/shutils/chroot.sh.in b/xbps-src/shutils/chroot.sh.in index 301f5281bd..f963c1560f 100644 --- a/xbps-src/shutils/chroot.sh.in +++ b/xbps-src/shutils/chroot.sh.in @@ -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() {