[Privoxy-devel] dealing with spaces in filenames
Christoph Gysin
christoph.gysin at gmail.com
Fri Nov 17 19:18:52 UTC 2017
On Fri, Nov 17, 2017 at 6:26 PM, Christoph Gysin
<christoph.gysin at gmail.com> wrote:
>> It seems simple enough.. but this bit for finding authors
>> for vfile in `find /home/cvs/P/PR/PROJECT -name '*,v'`; do
>> can't deal with spaces in filenames.
>
> Try:
>
> find /home/cvs/P/PR/PROJECT -name '*,v' -print0 | xargs -0 rlog | sed
> -nr 's/^date:.* author: ([^;]+).*/\1/p'
I just ran it against a cvs checkout remotely:
$ cvs log 2>/dev/null |
sed -n 's/.*author: \([^;]*\);.*/\1/p' |
sort -u |
while read -r username; do
realname=$(
curl -sSL
"https://sourceforge.net/rest/u/$username/profile" 2>/dev/null |
jq -r .name 2>/dev/null
)
if [ "$?" -ne 0 ]; then
realname=$username
fi
email="$username at users.sourceforge.net"
echo "$username = $realname <$email>"
done
agotneja = Johny Agotnes <agotneja at users.sourceforge.net>
david__schmidt = David Schmidt <david__schmidt at users.sourceforge.net>
dessent = Brian <dessent at users.sourceforge.net>
diem = Ian Silvester <diem at users.sourceforge.net>
etresoft = John Daniel <etresoft at users.sourceforge.net>
fabiankeil = Fabian Keil <fabiankeil at users.sourceforge.net>
g_sauthoff = Georg Sauthoff <g_sauthoff at users.sourceforge.net>
gjmurphy = Gerry Murphy <gjmurphy at users.sourceforge.net>
gliptak = Gábor Lipták <gliptak at users.sourceforge.net>
hal9 = Hal Burgiss <hal9 at users.sourceforge.net>
haroon = Haroon Rafique <haroon at users.sourceforge.net>
iwanttokeepanon = iWantToKeepAnon <iwanttokeepanon at users.sourceforge.net>
joergs = Jörg Strohmayer <joergs at users.sourceforge.net>
jongfoster = Jon Foster <jongfoster at users.sourceforge.net>
kick_ = Karsten Hopp <kick_ at users.sourceforge.net>
ler762 = Lee <ler762 at users.sourceforge.net>
mal0rd = Devin Bayer <mal0rd at users.sourceforge.net>
markm68k = mark miller <markm68k at users.sourceforge.net>
morcego = Rodrigo Barbosa <morcego at users.sourceforge.net>
oes = Andreas Oesterhelt <oes at users.sourceforge.net>
proactivesvcs = proactivesvcs <proactivesvcs at users.sourceforge.net>
root = root <root at users.sourceforge.net>
roro = Roland Rosenfeld <roro at users.sourceforge.net>
sarantis = Sarantis Paskalis <sarantis at users.sourceforge.net>
steudten = Thomas Steudten <steudten at users.sourceforge.net>
swa = Stefan Waldherr <swa at users.sourceforge.net>
You might want to update the email addresses to real ones.
Then ran the import:
$ git cvsimport \
-v \
-C "git/$module" \
-r cvs \
-k \
-A authors.txt \
-d :pserver:anonymous at ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa \
current
And pushed the result to github:
$ git remote add origin git at github.com:christophgysin/privoxy.git
$ git push
$ git push --tags
The result can be found here:
https://github.com/christophgysin/privoxy
Chris
--
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org at fr33z3
More information about the Privoxy-devel
mailing list