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
a4990e9d
Kaydet (Commit)
a4990e9d
authored
Kas 13, 2016
tarafından
Colomban Wendling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a script to make the version bump
üst
5241f40d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
version-bump
scripts/version-bump
+40
-0
No files found.
scripts/version-bump
0 → 100755
Dosyayı görüntüle @
a4990e9d
#!/bin/sh
set
-e
if
[
$#
-ne
2
]
;
then
echo
"USAGE:
$0
VERSION CODENAME"
>
&2
exit
1
fi
VER
=
$1
FULLVER
=
$VER
CODENAME
=
$2
[
"
$(
echo
"
$FULLVER
"
|
grep
-o
-F
.
|
wc
-c
)
"
-lt
3
]
&&
FULLVER
=
"
$FULLVER
.0"
# update the files
sed
-e
's/^\(.. |(version)| replace:: \).*$/\1'
"
$VER
"
'/'
-i
doc/geany.txt
sed
-e
's/^\([ ]*version="\)[^"]*\("\)/\1'
"
$FULLVER
"
'.0\2/'
-i
geany.exe.manifest
sed
-e
'
s/^\(#define VER_FILEVERSION *\)[^ ].*$/\1'
"
$(
echo
"
$FULLVER
"
|
tr
.
,
)
"
',0/
s/^\(#define VER_FILEVERSION_STR *\)[^ ].*$/\1"'
"
$VER
"
'"/
'
-i
geany_private.rc
sed
-e
's/^\(AC_INIT([^,]*, *\[\)[^]]*\(\],\)/\1'
"
$VER
"
'\2/'
-i
configure.ac
sed
-e
's/^\(#define GEANY_CODENAME[ ]*"\)[^"]*\("\)/\1'
"
$CODENAME
"
'\2/'
-i
src/geany.h
sed
-e
'
1i Geany '
"
$VER
"
' (unreleased)\n\n
'
-i
NEWS
# show commit message to use
cat
<<
EOF
Message for the commit, after you have checked the changes:
-----------------------------------------------------------
Post release version bump
Say hello to Geany
$VER
"
$CODENAME
"!
EOF
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