On Tue, Nov 10, 2015 at 08:18:28AM +0100, Guido Günther wrote: > > > echo "dpkg-buildpackage -S -d -us -uc -r${BUILDSOURCEROOTCMD} > > > $DEBBUILDOPTS" | \ > > > perl -pe 's/(^|\s)-[AbBF](\s|$)/$1$2/g' | \ > > > + perl -pe 's/(^|\s)'\''-g'\''(\s|$)/$1$2/g' | \ > > > > I instead added 'G' and 'g' to that [AbBF] "array" :) > > If you do so you also need to allow the valus to be surrounded by single > quotes ('). That's why I added a second line, to show how the value gets > passed in.
ah, i actually missed that. I'm not that good at writing regex, but I tried to cook something that works either with the quotes or without, but I failed. perl -pe 's/(^|\s)(?:'\'')-[AbBFgG](?:'\'')(\s|$)/$1$2/g' do you have a clue about what's wrong here? worst case I can always pipe the two perl calls, one considering the quotes and the other no. -- regards, Mattia Rizzolo GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`. more about me: http://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'` Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
signature.asc
Description: PGP signature