Using myrepos with the team's packages

Jonas Smedegaard dr at jones.dk
Tue Jul 8 20:41:32 UTC 2014


Quoting Felipe Sateler (2014-07-08 21:26:56)
> On Tue, Jul 8, 2014 at 1:42 PM, Jonas Smedegaard <dr at jones.dk> wrote:
>> Quoting Felipe Sateler (2014-07-08 18:51:33)

>>>   sed -e 's|^\./||' -e 's/\.git$//' | \

>> | perl -nE 'm{([^/]+).git$} and say $1' \
>
> I'm not sure this part is more readable, but YMMV ;)

Right - these are equally well readable:

perl -pe 's|.*/||;s|.git$||'

sed -e 's|.*/||;s/\.git$//'

...but both are less safe: They let through files without 
leading/trailing parts altogether - which might be the result of files 
with embedded newline or other oddities.

...but those aren't handled properly by the later "read", I just was too 
lazy to rewrite your script completely.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20140708/8a15b6ff/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list