From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 28 Jun 2009 12:00:52 +0400 From: "Alexey I. Froloff" To: ALT Devel discussion list Message-ID: <20090628080052.GA27278@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VrqPEDrXMn8OVzN4" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-23) Subject: [devel] I: gear-massupdate subdir file... [-- gear-update options] 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: Sun, 28 Jun 2009 08:00:54 -0000 Archived-At: List-Archive: List-Post: --VrqPEDrXMn8OVzN4 Content-Type: multipart/mixed; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline --AqsLC8rIMeq19msA Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =F7 =C1=D4=D4=C1=DE=C5 =CD=CF=D1 =CE=C1=CB=CF=CC=C5=CE=CE=C1=D1 =D0=CF=C4= =C5=CC=CB=C1, =CB=CF=D4=CF=D2=C1=D1 =CF=C2=CE=CF=D7=CC=D1=C5=D4 =D4=C1=D2= =C2=CF=CC=D9 =C9 =D3=D4=C1=D7=C9=D4 =D4=C5=C7=C9. =F7 =CF=D4=CC=C9=DE=C9=C5 =CF=D4 gear-upd= ate, =D0=C5=D2=D7=D9=CD =C1=D2=C7=D5=CD=C5=CE=D4=CF=CD =C9=C4=A3=D4 =CB=C1=D4=C1=CC=CF=C7, =CB=CF=D4=CF=D2=D9=CA =CF=C2=CE=CF=D7=CC=D1=C5=D4=D3= =D1, =D0=CF=D4=CF=CD =D0=C5=D2=C5=DE=C9=D3=CC=D1=C0=D4=D3=D1 =D4=C1=D2=C2= =CF=CC=D9. =F7=D3=A3 =DE=D4=CF =C9=C4=A3=D4 =D0=CF=D3=CC=C5 -- =CF=D4=C4=C1=A3=D4=D3=D1 gear-upd= ate. =F5=CD=C5=C5=D4 =D7=D9=C3=C5=D0=CC=D1=D4=D8 =D7=C5=D2=D3=C9=C0 =C9=DA =C9=CD=C5=CE=C9 =C6=C1=CA=CC=C1 (=C4=CF=D7=CF=CC=D8=CE=CF =CF=C7=D2= =C1=CE=C9=DE=C5=CE=CE=CF=C5 =CB=CF=CC=C9=DE=C5=D3=D4=D7=CF =D7=C1=D2=C9=C1= =CE=D4=CF=D7, =CE=CF =DC=D4=CF =DE=D5=D4=D8 =CD=C5=CE=C5=C5 =DE=C5=CD 92.7%) =C9 =D3=D4=C1=D7=C9= =D4=D8 =D4=C5=C7. =E1 =D4=CF =D2=D5=CB=C1=CD=C9 =DC=D4=CF =C4=C5=CC=C1=D4= =D8 =CB=C1=CB-=D4=CF =D5=D4=CF=CD=C9=D4=C5=CC=D8=CE=CF. =F0=CF=C0=DA=C1=CA=D4=C5, =D0=CF=CB=D2=C9=D4=C9=CB=D5=CA=D4=C5, =D1 =DC=D4= =CF =D0=D2=C9=DE=C5=DB=D5 =C9 =C2=D5=C4=D5 =D0=D2=CF=D0=C9=C8=C9=D7=C1=D4= =D8 =D7 gear. --=20 Regards, Sir Raorn. --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=gear-massupdate #!/bin/sh -efu subdir="$1" && shift files= while [ $# -gt 0 ]; do case "$1" in --) shift; break;; *) files="$files $1" ;; esac shift done for f in $files; do case "$f" in *.tar) ext="tar";; *.tar.gz) ext="tar.gz";; *.tar.bz2) ext="tar.bz2";; *.cpio) ext="cpio";; *.cpio.gz) ext="cpio.gz";; *.cpio.bz2) ext="cpio.bz2";; *.zip) ext="zip";; *) echo "fatal!"; exit 1;; esac nv="${f%.$ext}" [ -z "${nv##*-src}" ] && nv="${nv%-src}" n="${nv%-*}" v="${nv##*-}" git clean -f -d "$subdir" gear-update "$@" -- "$f" "$subdir" faketime -r "$f" -- git commit -m "Imported $f" faketime -r "$f" -- git tag -f -m "$n $v" "$n-$v" done --AqsLC8rIMeq19msA-- --VrqPEDrXMn8OVzN4 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) iEYEARECAAYFAkpHIzQACgkQVqT7+fkT8wr1ogCaA6NsUYaqCkmxNrdP84jEgNeR A68AoMQolKsRO7/SQVDYjNVOLbplDF2y =Wvci -----END PGP SIGNATURE----- --VrqPEDrXMn8OVzN4--