[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnu-arch-users] Re: tla archive-mirror/ clone
From: |
Nikolai Weibull |
Subject: |
[Gnu-arch-users] Re: tla archive-mirror/ clone |
Date: |
Mon, 23 Aug 2004 14:58:16 +0200 |
User-agent: |
Mutt/1.5.6i |
* Zenaan Harkness <address@hidden> [Aug 23, 2004 14:42]:
> In the tutorial, the following command sequence appears to create a
> local mirror of a remote archive:
>
> % tla register-archive address@hidden $remote_location
> % tla make-archive --mirror-from address@hidden $local_location
> % tla archive-mirror address@hidden
>
> Is there any reason it wouldn't be good to combine these three commands
> into something like:
>
> % tla clone $remote_location $local_location
>
> It would seem at least superficially easy to shell script...
tla_clone:
#! /bin/sh
tla register-archive $1-SOURCE $2
tla make-archive --mirror-from $1-SOURCE $3
tla archive-mirror $1
Simple enough. I have no idea why you would want to do this often
enough to warrant such a script, but hey...Furthermore, this took 20
seconds to write, I bet you could have done it too,
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}