patchupdate.py: Add '--version' command to show staging/wine version.

This commit is contained in:
Sebastian Lackner
2015-05-06 21:52:06 +02:00
parent aa817e83cf
commit 1143708578
3 changed files with 50 additions and 11 deletions

View File

@@ -36,6 +36,7 @@ usage()
echo " --help Display this help and exit"
echo " --no-patchlist Do not apply patchlist (needed for 'wine --patches')"
echo " --no-autoconf Do not run autoreconf and tools/make_requests"
echo " --version Show version information"
echo " -W patchset Exclude a specific patchset"
echo ""
echo "Backends:"
@@ -47,6 +48,17 @@ usage()
echo ""
}
# Show version information
version()
{
echo "Wine Staging 1.7.43 (unreleased)"
echo "Copyright (C) 2014-2015 the Wine Staging project authors."
echo ""
echo "Patchset to be applied on upstream Wine:"
echo " commit 3599f956e2bfe3dd76d7134ddd06b1e5cf5be4d5"
echo ""
}
# Critical error, abort
abort()
{
@@ -930,6 +942,11 @@ while test "$#" -gt 0; do
shift
;;
--version)
version
exit 0
;;
-W)
enable=2
shift