diff options
author | jhb <jhb@FreeBSD.org> | 2000-07-26 01:37:23 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-07-26 01:37:23 +0000 |
commit | e14b952f9c0e48b816d5db57a98712941ce08c88 (patch) | |
tree | 9daf44c6eb197bfbfa9544f0f651ea8854f72242 /release/scripts | |
parent | c17e1af42f6fe2d122a3dec1f92f59e6e5fbd603 (diff) | |
download | FreeBSD-src-e14b952f9c0e48b816d5db57a98712941ce08c88.zip FreeBSD-src-e14b952f9c0e48b816d5db57a98712941ce08c88.tar.gz |
This script uses the other scripts in this directory to build XFree86
3.3.6 in a work directory and package it up into a set of tarballs that
can be used in a release.
Diffstat (limited to 'release/scripts')
-rwxr-xr-x | release/scripts/X11/package_x_dists.sh | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/release/scripts/X11/package_x_dists.sh b/release/scripts/X11/package_x_dists.sh new file mode 100755 index 0000000..d83c268 --- /dev/null +++ b/release/scripts/X11/package_x_dists.sh @@ -0,0 +1,54 @@ +#!/bin/sh +# +# This script uses a few child scripts to build X and then package it up. +# It assumes that all the needed child scripts are in the same directory that +# it lives in. It takes three parameters, one is the directory containing the +# packing lists for the tarballs, the second is the directory that we can use +# for our scratch work, and the third is the directory to stick all the +# tarballs in. We also expect CVSROOT to be set to a working CVS repo with +# the ports tree in it, although we only need read-only access. + +# usage info +# +usage() { + echo "$0 <plist dir> <work dir> <tarball dir>" + echo + echo "Where <plist dir> contains all the packing lists generated by" + echo "the generate_plists.sh script and <work dir> is the name of the" + echo "scratch directory we can do our work under. Note that we toast" + echo "the scratch directory at the beginning." + exit 1 +} + +# check our command line +if [ $# -ne 3 ]; then + usage +fi + +# setup our directory variables +plist_dir=$1 +work_dir=$2 +tarball_dir=$3 +home_dir=`dirname $0` + +# setup the scratch directory +[ -r ${work_dir} ] && rm -rf ${work_dir} +if ! mkdir -p ${work_dir}; then + echo "Could not create ${work_dir}!" + echo + usage +fi +mkdir ${work_dir}/scripts +cp $home_dir/* ${work_dir}/scripts/ +mkdir ${work_dir}/tmp + +# build X +if ! ${work_dir}/scripts/build_x.sh ${work_dir}/tmp; then + exit 1 +fi + +# now package it up into tarballs +if ! ${work_dir}/scripts/generate_tarballs.sh \ + ${work_dir}/tmp/usr/X11R6 ${plist_dir} ${tarball_dir}; then + exit 1 +fi |