You are not logged in.

#1 2006-08-14 01:33:37

soloport
Member
Registered: 2005-03-01
Posts: 442

Download a Single Package Like ABS

Sometimes, rather than downloading the entire ABS tree, one needs but a single package:

#!/bin/bash
# Downloads a single package from CVS CURRENT (much like ABS)
# Requires one argument which specifes the CVS path (e.g. arch/build/kernels/kernel26)
# Creates a local DIR, for example, where DIR=kernel26 in arch/build/kernels/kernel26
export CVSROOT=:pserver:anonymous:anonymous@cvs.archlinux.org:/home/cvs-arch
PKG=$1
declare -a ARY
declare -i NUM
ARY=( `echo $PKG | sed 's/// /g'` )
NUM=${#ARY[*]}-1
DIR=${ARY[$NUM]}
cvs -z3 co -r CURRENT -d $DIR $PKG

Offline

Board footer

Powered by FluxBB