svn commit: r295332 - user/cperciva/freebsd-update-build/scripts
Gleb Smirnoff
glebius at FreeBSD.org
Fri Feb 5 20:39:13 UTC 2016
Author: glebius
Date: Fri Feb 5 20:39:11 2016
New Revision: 295332
URL: https://svnweb.freebsd.org/changeset/base/295332
Log:
We need the world.tgz regardless on what arch the build host runs.
Modified:
user/cperciva/freebsd-update-build/scripts/build.subr
Modified: user/cperciva/freebsd-update-build/scripts/build.subr
==============================================================================
--- user/cperciva/freebsd-update-build/scripts/build.subr Fri Feb 5 20:38:09 2016 (r295331)
+++ user/cperciva/freebsd-update-build/scripts/build.subr Fri Feb 5 20:39:11 2016 (r295332)
@@ -349,30 +349,26 @@ extractiso () {
tar -xpzf - -C ${WORKDIR}/release/R/trees/src/${C}
done
- # If the release ISO we're handling belongs to the platform
- # we're running right now, create a world image for future use.
- if [ ${TARGET} = ${HOSTPLATFORM} ]; then
- log "Constructing world+src image"
+ log "Constructing world+src image"
- # Create directory for world
- mkdir ${WORKDIR}/world/
+ # Create directory for world
+ mkdir ${WORKDIR}/world/
- # Extract world and source distributions
- for C in ${WORLDPARTS}; do
- cat ${WORKDIR}/iso/usr/freebsd-dist/${C}.txz |
- tar -xpzf - -C ${WORKDIR}/world/
- done
- for C in ${SOURCEPARTS}; do
- cat ${WORKDIR}/iso/usr/freebsd-dist/${C}.txz |
- tar -xpzf - -C ${WORKDIR}/world/
- done
+ # Extract world and source distributions
+ for C in ${WORLDPARTS}; do
+ cat ${WORKDIR}/iso/usr/freebsd-dist/${C}.txz |
+ tar -xpzf - -C ${WORKDIR}/world/
+ done
+ for C in ${SOURCEPARTS}; do
+ cat ${WORKDIR}/iso/usr/freebsd-dist/${C}.txz |
+ tar -xpzf - -C ${WORKDIR}/world/
+ done
- # build a single tarball of them.
- tar -czf ${WORKDIR}/../world.tgz -C ${WORKDIR}/world .
+ # build a single tarball of them.
+ tar -czf ${WORKDIR}/../world.tgz -C ${WORKDIR}/world .
- # clean up
- nuke world
- fi
+ # clean up
+ nuke world
# Unmount and detach the ISO image md(4).
umount ${WORKDIR}/iso
More information about the svn-src-user
mailing list