Date: Fri, 19 Sep 2003 11:58:37 +0300 (EEST) From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> To: Alain Dazzi <alain@spsr.com> Cc: freebsd-questions@freebsd.org Subject: Re: decompressing source Message-ID: <20030919085837.A6F7519A@pm514-9.comsys.ntu-kpi.kiev.ua> In-Reply-To: <3F6A869B.62580D6F@spsr.com.lucky.freebsd.questions>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 19 Sep 2003 04:37:46 +0000 (UTC) in lucky.freebsd.questions, Alain Dazzi wrote: > Just a basic question, what unix command should I use to decompress > (expand) the various > data files after downloading the sources via ftp. For instance ssys.aa > -> ssys.ak should get expanded > into sys. > You should use a pipe of cat and tar commands. There are install.sh scripts, which know how to install files from the distribution. >From the src/install.sh script: if [ "$1" = "all" ]; then dists="base bin contrib etc games gnu include lib libexec release sbin share sys tools ubin usbin" else dists="$*" fi echo "Extracting sources into ${DESTDIR}/usr/src..." for i in $dists; do echo " Extracting source component: $i" cat s${i}.?? | tar --unlink -xpzf - -C ${DESTDIR}/usr/src done
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030919085837.A6F7519A>