Message ID | 20250122-update-release-v2-2-d01529db3aa5@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Update release.sh | expand |
On Wed, Jan 22, 2025 at 04:01:28PM +0100, Andrey Albershteyn wrote: > Add kup support so that the maintainer can push the newly formed > release tarballs to kernel.org. > > Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org> Looks good now, Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> --D > --- > release.sh | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/release.sh b/release.sh > index b15ed610082f34928827ab0547db944cf559cef4..b036c3241b3f67bfb2435398e6a17ea4c6a6eebe 100755 > --- a/release.sh > +++ b/release.sh > @@ -16,6 +16,30 @@ set -e > version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION} > date=`date +"%-d %B %Y"` > > +KUP=0 > + > +help() { > + echo "$(basename) - create xfsprogs release" > + printf "\t[--kup|-k] upload final tarball with KUP\n" > +} > + > +while [ $# -gt 0 ]; do > + case "$1" in > + --kup|-k) > + KUP=1 > + ;; > + --help|-h) > + help > + exit 0 > + ;; > + *) > + >&2 printf "Error: Invalid argument\n" > + exit 1 > + ;; > + esac > + shift > +done > + > echo "Cleaning up" > make realclean > rm -rf "xfsprogs-${version}.tar" \ > @@ -52,4 +76,11 @@ gpg \ > > mv "xfsprogs-${version}.tar.asc" "xfsprogs-${version}.tar.sign" > > +if [ $KUP -eq 1 ]; then > + kup put \ > + xfsprogs-${version}.tar.gz \ > + xfsprogs-${version}.tar.sign \ > + pub/linux/utils/fs/xfs/xfsprogs/ > +fi; > + > echo "Done. Please remember to push out tags using \"git push origin v${version}\"" > > -- > 2.47.0 > >
diff --git a/release.sh b/release.sh index b15ed610082f34928827ab0547db944cf559cef4..b036c3241b3f67bfb2435398e6a17ea4c6a6eebe 100755 --- a/release.sh +++ b/release.sh @@ -16,6 +16,30 @@ set -e version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION} date=`date +"%-d %B %Y"` +KUP=0 + +help() { + echo "$(basename) - create xfsprogs release" + printf "\t[--kup|-k] upload final tarball with KUP\n" +} + +while [ $# -gt 0 ]; do + case "$1" in + --kup|-k) + KUP=1 + ;; + --help|-h) + help + exit 0 + ;; + *) + >&2 printf "Error: Invalid argument\n" + exit 1 + ;; + esac + shift +done + echo "Cleaning up" make realclean rm -rf "xfsprogs-${version}.tar" \ @@ -52,4 +76,11 @@ gpg \ mv "xfsprogs-${version}.tar.asc" "xfsprogs-${version}.tar.sign" +if [ $KUP -eq 1 ]; then + kup put \ + xfsprogs-${version}.tar.gz \ + xfsprogs-${version}.tar.sign \ + pub/linux/utils/fs/xfs/xfsprogs/ +fi; + echo "Done. Please remember to push out tags using \"git push origin v${version}\""
Add kup support so that the maintainer can push the newly formed release tarballs to kernel.org. Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org> --- release.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)