1#!/bin/sh 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 18major=5 19minor='-0 _2' 20micro='-0 _1 -12 _0a -1a _12a' 21extra='-pre0 -rc1 _beta2a' 22git='-15-g40e406b -15-g40e406b-dirty -0-g40e406b -0-g40e406b-dirty' 23 24types=" 25major 26minor 27micro 28extra 29git 30git-hash 31extra-git 32core-version 33base-version 34full-version 35all 36everything" 37 38for 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 -- 50done 51