| 1 |
#!@SHELL@ |
| 2 |
|
| 3 |
# Copyright (C) 2017 Robert Krawitz |
| 4 |
# |
| 5 |
# This program is free software; you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation; either version 2, or (at your option) |
| 8 |
# any later version. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
major=5 |
| 19 |
minor='-0 _2' |
| 20 |
micro='-0 _1 -12 _0a -1a _12a' |
| 21 |
extra='-pre0 -rc1 _beta2a' |
| 22 |
git='-15-g40e406b -15-g40e406b-dirty -0-g40e406b -0-g40e406b-dirty' |
| 23 |
|
| 24 |
types=" |
| 25 |
major |
| 26 |
minor |
| 27 |
micro |
| 28 |
extra |
| 29 |
git |
| 30 |
git-hash |
| 31 |
extra-git |
| 32 |
core-version |
| 33 |
base-version |
| 34 |
full-version |
| 35 |
all |
| 36 |
everything" |
| 37 |
|
| 38 |
for g in $types ; do |
| 39 |
(for a in $major ; do |
| 40 |
for b in $minor ; do |
| 41 |
for c in $micro ; do |
| 42 |
for d in '' $extra ; do |
| 43 |
for e in '' $git ; do |
| 44 |
echo "$a$b$c$d$e" |
| 45 |
done |
| 46 |
done |
| 47 |
done |
| 48 |
done |
| 49 |
done) | ./gversion "$g" X -- |
| 50 |
done |