]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tools: allow to update specific files on kernel.org
authorKarel Zak <kzak@redhat.com>
Tue, 1 Jun 2021 09:45:16 +0000 (11:45 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 1 Jun 2021 09:45:16 +0000 (11:45 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tools/ko-release-gen

index 9f904d1b1fcd06d012e91b11d962b77e9720fbda..b3afc3981bdd07daee49df0b975be3f5617d2741 100755 (executable)
@@ -2,7 +2,7 @@
 #
 # Copyright (C) 2012 Karel Zak <kzak@redhat.com>
 #
-# Usage: ko-release-gen [<directory>]
+# Usage: ko-release-gen [<directory> [<file>]]
 #
 # This script prepares a new release for publishing on kernel.org. The
 # hierarchy of release files is created in the <directory> (default directory
@@ -80,6 +80,17 @@ rm -rf $DISTDIR
 
 eval $(gpg-agent --daemon)
 
+# Add just specified files only
+if [ -f "$2" ]; then
+       shift
+       while (( "$#" )); do
+               add_file "$1"
+               shift
+       done
+       killall gpg-agent
+       exit 0
+fi
+
 add_file       util-linux-${VERSION}.tar.xz
 add_file       v${VERSION}-ChangeLog
 add_file       Documentation/releases/v${VERSION_DOCS}-ReleaseNotes