Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
1aa82c3e
Kaydet (Commit)
1aa82c3e
authored
Mar 18, 2017
tarafından
Colomban Wendling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a script to fixup copyright years translations
üst
be91746d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
update-year-in-po.sh
scripts/update-year-in-po.sh
+29
-0
No files found.
scripts/update-year-in-po.sh
0 → 100755
Dosyayı görüntüle @
1aa82c3e
#!/bin/sh
set
-e
# prevent sed from doing stupid things in case the locale encoding doesn't
# match the files'. Unlikely, but doesn't hurt.
export
LANG
=
C
year
=
$(
grep
-Po
'(?<="Copyright \(c\) 2005-)20[0-9][0-9](?=\\n)'
src/about.c
)
echo
"new years are:
$years
"
for
f
in
po/
*
.po
;
do
echo
"processing
$f
..."
sed
-f
/dev/stdin
-i
"
$f
"
<<
EOF
/^"Copyright (c) 2005-20[0-9][0-9]\\\\n"\
$/
{
s/\\(2005-\\)20[0-9][0-9]/\\1
$year
/
n
:loop
/^msgstr/{
n
# in case the range uses something else than the ASCII dash
s/\\(2005.*\\)20[0-9][0-9]/\\1
$year
/
b done
}
n
b loop
:done
}
EOF
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment