mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
patchinstall.sh: Introduce a new '--upstream-commit' function to obtain the commit in raw format.
This commit is contained in:
parent
5aa6e7afe4
commit
074eae4371
16
debian/tools/patchinstall.sh.in
vendored
16
debian/tools/patchinstall.sh.in
vendored
@ -36,7 +36,8 @@ 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 " --upstream-commit Print the upstream Wine commit SHA1 and exit"
|
||||
echo " --version Show version information and exit"
|
||||
echo " -W patchset Exclude a specific patchset"
|
||||
echo ""
|
||||
echo "Backends:"
|
||||
@ -48,6 +49,12 @@ usage()
|
||||
echo ""
|
||||
}}
|
||||
|
||||
# Get the upstream commit sha
|
||||
upstream_commit()
|
||||
{{
|
||||
echo "{latest_wine_commit}"
|
||||
}}
|
||||
|
||||
# Show version information
|
||||
version()
|
||||
{{
|
||||
@ -55,7 +62,7 @@ version()
|
||||
echo "Copyright (C) 2014-2015 the Wine Staging project authors."
|
||||
echo ""
|
||||
echo "Patchset to be applied on upstream Wine:"
|
||||
echo " commit {latest_wine_commit}"
|
||||
echo " commit $(upstream_commit)"
|
||||
echo ""
|
||||
}}
|
||||
|
||||
@ -134,6 +141,11 @@ while test "$#" -gt 0; do
|
||||
shift
|
||||
;;
|
||||
|
||||
--upstream-commit)
|
||||
upstream_commit
|
||||
exit 0
|
||||
;;
|
||||
|
||||
--version)
|
||||
version
|
||||
exit 0
|
||||
|
@ -36,7 +36,8 @@ 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 " --upstream-commit Print the upstream Wine commit SHA1 and exit"
|
||||
echo " --version Show version information and exit"
|
||||
echo " -W patchset Exclude a specific patchset"
|
||||
echo ""
|
||||
echo "Backends:"
|
||||
@ -48,6 +49,12 @@ usage()
|
||||
echo ""
|
||||
}
|
||||
|
||||
# Get the upstream commit sha
|
||||
upstream_commit()
|
||||
{
|
||||
echo "bdaa571c5d7dd59dd28fd1f25cdad5761bfaf4dd"
|
||||
}
|
||||
|
||||
# Show version information
|
||||
version()
|
||||
{
|
||||
@ -55,7 +62,7 @@ version()
|
||||
echo "Copyright (C) 2014-2015 the Wine Staging project authors."
|
||||
echo ""
|
||||
echo "Patchset to be applied on upstream Wine:"
|
||||
echo " commit bdaa571c5d7dd59dd28fd1f25cdad5761bfaf4dd"
|
||||
echo " commit $(upstream_commit)"
|
||||
echo ""
|
||||
}
|
||||
|
||||
@ -1057,6 +1064,11 @@ while test "$#" -gt 0; do
|
||||
shift
|
||||
;;
|
||||
|
||||
--upstream-commit)
|
||||
upstream_commit
|
||||
exit 0
|
||||
;;
|
||||
|
||||
--version)
|
||||
version
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user