#! /bin/bash # Copyright 2021-2023 Alexandre Oliva # # This program is part of GNU Linux-libre, a GNU project that # publishes scripts to clean up Linux so as to make it suitable for # use in the GNU Project and in Free System Distributions. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 # USA # usage: mkgitrel [--force] 5.5.5-gnu 5.4.3-gnu 5.0.111-gnu1 ... # This is our release engineering script. It's very tied to our # internal cleaning-up repository structure, as well as to our public # git and download repositories. # It checks out upstream sources, finds and checks out cleaning-up # scripts, cleans up the sources, commits the changes, creates signed # tags for publishing, tarballs and patchfiles for publishing and for # manual verification, checks that the tarballs look clean and waits # for manual verification before preparing tags and tarballs for # publishing. force= && case $1 in --force) force=$1; shift;; esac $0.pre "$@" && $0.cln $force "$@" && echo all revs cleaned up, awaiting manual check results... && $0.pub "$@" && echo all git tagging done, now compressing... && $0.rel "$@" exit