# USA
-# usage: mkgitrel 5.5.5-gnu 5.4.3-gnu 5.0.111-gnu1 ...
+# 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
# for manual verification before preparing tags and tarballs for
# publishing.
+force= && case $1 in --force) force=$1; shift;; esac
+
$0.pre "$@" &&
-$0.cln "$@" &&
+$0.cln $force "$@" &&
echo all revs cleaned up, awaiting manual check results... &&
scriptdir=$(dirname "$0")
. $scriptdir/mkgitrel.gcfg
+force= && case $1 in --force) force=$1; shift;; esac
+
success=:
for rel
do
(cd logs/v$rel && git rm -f linux-*) &&
-if (cd sources/v$rel && ../../scripts/v$rel/deblob-$cbr) \
+if (cd sources/v$rel && ../../scripts/v$rel/deblob-$cbr $force) \
>& logs/v$rel/linux-libre-$rel.log; then
:
else
> linux-libre-$rel.check ||
{ success=false; continue; }; } &&
+if test -n "$force"; then
+ echo --force is for testing only >> linux-libre-$rel.check
+ success=false
+fi &&
+
continue
echo something went wrong > linux-libre-$rel.check