From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 18 Oct 2005 22:35:03 +0300 From: Michael Shigorin To: ALT Devel discussion list Message-ID: <20051018193503.GK16082@osdn.org.ua> Mail-Followup-To: ALT Devel discussion list References: <20051013101150.3aa79481.pilot@altlinux.ru> <20051016180721.GY7196@osdn.org.ua> <4354CBCF.5030301@gorodmasterov.com> <200510182101.44987.mothlike@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0XMZdl/q8hSSmFeD" Content-Disposition: inline In-Reply-To: <200510182101.44987.mothlike@gmail.com> User-Agent: Mutt/1.4.2.1i Subject: [devel] rpm2specs += cvs? X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 19:35:13 -0000 Archived-At: List-Archive: List-Post: --0XMZdl/q8hSSmFeD Content-Type: multipart/mixed; boundary="J/zg8ciPNcraoWb6" Content-Disposition: inline --J/zg8ciPNcraoWb6 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 18, 2005 at 09:01:37PM +0400, Dmitry Marochko wrote: > =F3=CC=D5=DE=C1=CA=CE=CF, =DC=D4=CF =CE=C5 =C4=D7=C9=D6=CF=CB, =CE=C1 =CB= =CF=D4=CF=D2=CF=CD =D3=C4=C5=CC=C1=CE sisyphus.ru? =E5=D3=CC=C9 > =DC=D4=CF =D4=C1=CB, =D4=CF =D1 =C2=D9 =C8=CF=D4=C5=CC =D0=CF=C4=C5=CC=C9= =D4=D8=D3=D1 =C2=C1=C7=CF=CD - =D0=CF=DE=C5=CD=D5-=D4=CF =CE=C5 > =D0=CF=CB=C1=DA=D9=D7=C1=C0=D4=D3=D1 =D3=D0=C5=CB=C9 =D0=C1=CB=C5=D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=CA... =ED=CF=D6=C5=D4, =C4=C1=D7=C1=CA=D4=C5 =D0=CF=D0=D2=CF=C2=D5=C5=CD =C8=CF= =D4=D8 =D3=C5=CA=DE=C1=D3 =D3=C4=C5=CC=C1=D4=D8 =C4=CC=D1 *.spec *.patch *.diff? =EE=C5=CB=C9=CA =D4=C5=CB=D5=DD=C9=CA =D5=D6=C1=D3 (=D0=CC=C0=D3 = =D2=C1=C2=CF=DE=C9=CA =D7=C1=D2=C9=C1=CE=D4) -- =C3=C5=D0=CC=D1=C0. (=CF=D0=D1=D4=D8 =D6=C5... =D5=D6 =C5=D3=CC=C9 =D2=C1=DA=C2=C9=D2=C1=D4=D8 = =D0=C1=CB=C5=D4=D9, =C2=D9=CC=CF =C2=D9 =D2=C1=DA=D5=CD=CE=CF =C4=C5=CC=C1= =D4=D8 =DC=D4=CF =CF=C4=C9=CE =D2=C1=DA, =CE=D5 =C4=D7=C1, =D4=CF =CE=C5 =D4=D2=C9=C4=C3=C1= =D4=D8 =D4=D2=C9) --=20 ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --J/zg8ciPNcraoWb6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rpm2specs.sh+cvs" Content-Transfer-Encoding: quoted-printable #!/bin/sh #!/bin/sh -x TEMPSPECDIR=3D"/www/www.linux.kiev.ua/html/devel/RPM/SPECS/.tmp" SRPMPREFIX=3D"/var/ftp/pub/Linux/ALT/Sisyphus/SRPMS." SPECPREFIX=3D"/www/www.linux.kiev.ua/html/devel/RPM/SPECS/" LOSTSPECS=3D"$TEMPSPECDIR/__lost-specs__" #REPOS=3D"base castle contrib junior kernel master non-free" #REPOS=3D"base" REPOS=3D"classic" #REPOS=3D"test" CVSROOT=3D"/var/cvs" =20 rm -rf "$TEMPSPECDIR"/ "$SPECPREFIX"/.CVS/ #rm -rf "$SPECPREFIX" mkdir -p "$TEMPSPECDIR" cd "$TEMPSPECDIR" for repo in $REPOS; do mv "$SPECPREFIX$repo"/CVS/ "$SPECPREFIX"/.CVS #rm -rf "$SPECPREFIX$repo" mkdir -p "$SPECPREFIX$repo" for srpm in $SRPMPREFIX$repo/*.src.rpm; do rpm2cpio "$srpm" \ | cpio --quiet --extract --preserve-modification-time *.spec spec=3D"`rpmquery --qf=3D'%{NAME}' -p "$srpm"`.spec" [ -f *.spec ] && chmod 644 *.spec done #mv -f *.spec "$SPECPREFIX$repo/$spec" || echo "$srpm" rsync --delete ./ "$SPECPREFIX$repo"/ mv "$SPECPREFIX"/.CVS/ "$SPECPREFIX$repo"/CVS #(cd "$SPECPREFIX$repo"; cvs -d /var/cvs ci -m `date +%Y%m%d`) ( cd "$SPECPREFIX$repo"; cvs update \ | tee "$LOSTSPECS" \ | grep '^? .*\.spec$' \ | cut -c2- \ | xargs cvs add "" cvs ci -m $((`date +%Y%m%d` -1)) ) done --J/zg8ciPNcraoWb6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rpm2specs.sh" #!/bin/sh TEMPSPECDIR="/www/www.linux.kiev.ua/html/devel/RPM/SPECS/.tmp" SRPMPREFIX="/var/ftp/pub/Linux/ALT/Sisyphus/SRPMS." SPECPREFIX="/www/www.linux.kiev.ua/html/devel/RPM/SPECS/" #REPOS="base castle contrib junior kernel master non-free" #REPOS="base" REPOS="classic" rm -rf "$TEMPSPECDIR" rm -rf "$SPECPREFIX" mkdir -p "$TEMPSPECDIR" cd "$TEMPSPECDIR" for repo in $REPOS; do mkdir -p "$SPECPREFIX$repo" for srpm in $SRPMPREFIX$repo/*.src.rpm; do rpm2cpio "$srpm" | cpio --quiet --extract *.spec spec="`rpmquery --qf='%{NAME}' -p "$srpm"`.spec" [ -f *.spec ] && chmod 644 *.spec mv -f *.spec "$SPECPREFIX$repo/$spec" || echo "$srpm" done done --J/zg8ciPNcraoWb6-- --0XMZdl/q8hSSmFeD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFDVU5nbsPDprYMm3IRAq+FAJ0cksUgDGSoz+bg9/vxcuzEYh+s+ACffR+I A16u/dBt8And3fSuzUOyDn8= =wpL5 -----END PGP SIGNATURE----- --0XMZdl/q8hSSmFeD--