/[gentoo-x86]/scripts/autobuildimg.sh
Gentoo

Contents of /scripts/autobuildimg.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download) (as text)
Mon Sep 27 20:07:36 2004 UTC (15 years ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
File MIME type: text/x-sh
FILE REMOVED
old stuff; use catalyst

1 #!/bin/bash
2
3 export USE=build
4 export CFLAGS="-O2 -mcpu=i486 -march=i486 -O2 -pipe"
5 export CXXFLAGS="${CFLAGS}"
6 export CHOST="i486-pc-linux-gnu"
7 export ROOT=/tmp/autobuildimg
8 export STEPS="clean unpack compile install qmerge clean"
9
10 TODAY=`date '+%Y%m%d'`
11
12 [ -z "${PORTDIR}" ] && PORTDIR=/usr/portage
13 [ -z "${BUILDTARBALL}" ] && BUILDTARBALL="build-${TODAY}.tbz2"
14 [ -z "${BUILD_PACKAGES}" ] && BUILD_PACKAGES=`ls -1 ${PORTDIR}/files/build-*.packages | sort | tail -1`
15 mkdir -p ${PORTDIR}/distribution
16
17 echo ">>> Cleaning up ${ROOT}..."
18 rm -rf "${ROOT}"
19 mkdir -p "${ROOT}"
20
21 scripts/autocompile.sh "${BUILD_PACKAGES}"
22
23 rm -rf "${ROOT}/tmp"
24 mkdir -p ${ROOT}/tmp
25 chown root.root ${ROOT}/tmp
26 chmod 1777 ${ROOT}/tmp
27 mv ${ROOT}/var/db/pkg ${ROOT}/var/db/pkg.build
28
29 echo ">>> Creating ${BUILDTARBALL}..."
30 cd ${ROOT}
31 tar -cj --numeric-owner -p -f "${PORTDIR}/distribution/${BUILDTARBALL}" .
32
33 rm -rf ${ROOT}

  ViewVC Help
Powered by ViewVC 1.1.20