From owner-freebsd-questions@FreeBSD.ORG Fri Sep 19 01:59:00 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADD2716A4B3 for ; Fri, 19 Sep 2003 01:59:00 -0700 (PDT) Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6432D43FB1 for ; Fri, 19 Sep 2003 01:58:55 -0700 (PDT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: by relay1.ntu-kpi.kiev.ua (Postfix, from userid 426) id 7DFA71990A; Fri, 19 Sep 2003 11:58:51 +0300 (EEST) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id ABB7D19E22; Fri, 19 Sep 2003 11:58:49 +0300 (EEST) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with ESMTP id h8J93QY11442; Fri, 19 Sep 2003 12:03:27 +0300 (EEST) Received: by pm514-9.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1000) id A6F7519A; Fri, 19 Sep 2003 11:58:37 +0300 (EEST) From: Andrey Simonenko To: Alain Dazzi In-Reply-To: <3F6A869B.62580D6F@spsr.com.lucky.freebsd.questions> X-Newsgroups: lucky.freebsd.questions User-Agent: tin/1.6.0-20030714 ("Vatersay") (UNIX) (FreeBSD/4.8-STABLE (i386)) Message-Id: <20030919085837.A6F7519A@pm514-9.comsys.ntu-kpi.kiev.ua> Date: Fri, 19 Sep 2003 11:58:37 +0300 (EEST) cc: freebsd-questions@freebsd.org Subject: Re: decompressing source X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2003 08:59:00 -0000 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