From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 17 Jul 2009 14:15:30 +0400 From: "Alexey I. Froloff" To: ALT Devel discussion list Message-ID: <20090717101530.GS13127@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AonAANj1daC6QcQu" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-23) Subject: [devel] I: girar-import - import package from /gears or /srpms X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2009 10:15:31 -0000 Archived-At: List-Archive: List-Post: --AonAANj1daC6QcQu Content-Type: multipart/mixed; boundary="IpljlC28XhFjURzf" Content-Disposition: inline --IpljlC28XhFjURzf Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =F0=D2=CF=DB=D5 =D0=CF=D4=C5=D3=D4=C9=D2=CF=D7=C1=D4=D8 =D5=D4=C9=CC=C9=D4= =CB=D5. =F0=D2=C9=CE=C9=CD=C1=C5=D4 =C4=D7=C1 =C1=D2=C7=D5=CD=C5=CE=D4=C1,= =C9=CD=D1 =C2=C9=CE=C1=D2=CE=CF=C7=CF =D2=C5=D0=CF=DA=C9=D4=C1=D2=C9=D1 (girar-acl --= list) =C9 =C9=CD=D1 =D0=C1=CB=C5=D4=C1. =F3=CE=C1=DE=C1=CC=C1 =CF=CE=CF =D0=D9=D4=C1=C5=D4=D3=D1 =D3=CB=CC=CF=CE=C9= =D2=CF=D7=C1=D4=D8 =D2=C5=D0=CF=DA=C9=D4=C1=D2=C9=CA /gears/P/PACKAGE.git, =C5=D3=CC=C9 =DC=D4=CF =CE=C5 =D5=C4=C1=A3=D4=D3=D1, = =D0=D9=D4=C1=C5=D4=D3=D1 =CB=CC=CF=CE=C9=D2=CF=D7=C1=D4=D8 /srpms/P/PACKAGE.git. =F7 =D3=CB=CC=CF=CE=C9=D2=CF=D7=C1=CE=CE=CF=CD =CC= =CF=CB=C1=CC=D8=CE=CF =D2=C5=D0=CF=DA=C9=D4=C1=D2=C9=C9 =D7=C5=D4=CB=C1 master =CF=D4=C2=D2=C1=CE=DE=C9=D7=C1=C5=D4=D3=D1 =CF=D4 = =D7=C5=D4=CB=C9, =D3=CF=CF=D4=D7=C5=D4=D3=D4=D7=D5=C0=DD=C5=CA =DA=C1=C4=C1=CE=CE=CF=CD=D5 =C2=C9=CE=C1=D2=CE=CF=CD=D5 =D2=C5=D0=CF=DA=C9= =D4=C1=D2=C9=C0. --=20 Regards, Sir Raorn. --IpljlC28XhFjURzf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=girar-import #!/bin/sh -efu # # Copyright (C) 2009 Alexey I. Froloff # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. # . girar-client-sh-functions show_help() { cat < $PROG imports old package from archive. $PROG uses the git configuration file. The following variables are read: * girar.remote, corresponding to --remote Options: -R,--remote girar server alias, defaults to git.alt -q,--quiet try to be more quiet; -v,--verbose print a message for each action; -V,--version print program version and exit; -h,--help show this text and exit. Report bugs to http://bugs.altlinux.ru/ EOF exit } print_version() { cat < Copyright (C) 2009 Alexey I. Froloff This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. EOF exit } TEMP=`getopt -n $PROG -o R,q,v,V,h \ -l remote:,quiet,verbose,version,help -- "$@"` || show_usage eval set -- "$TEMP" while :; do case "$1" in -R|--remote) shift; girar_remote="$1";; -q|--quiet) quiet=-q;; -v|--verbose) verbose=-v;; -V|--version) print_version;; -h|--help) show_help;; --) shift; break;; *) fatal "unrecognized option: $1";; esac shift done [ $# -eq 2 ] || show_usage repo="$1" && shift package="$1" && shift ackage="${package#?}" p="${package%$ackage}" git clone $verbose $quiet -o "gears" "$girar_remote:/gears/$p/$package.git" || git clone $verbose $quiet -o "srpms" "$girar_remote:/srpms/$p/$package.git" || fatal "Unable to clone package \`$package'" cd "$package" || fatal "Package successfully cloned, but \`$package' directory unavailable" git checkout $quiet -f -b master "$repo" || fatal "Unable to checkout branch \`$repo'" --IpljlC28XhFjURzf-- --AonAANj1daC6QcQu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpgT0IACgkQVqT7+fkT8wo4tgCgtxLhb3stJlBktbcB64Z/+9mo AaoAoIBHW+oByO0ApWCY/LIEV3G0zN5L =q/Ju -----END PGP SIGNATURE----- --AonAANj1daC6QcQu--