mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-09-13 09:17:20 -07:00
patchinstall.sh: Rename 'git' backend to 'git-am', add 'git-apply' backend.
This commit is contained in:
parent
4f4df208a9
commit
e01a0f00de
28
debian/tools/patchinstall.sh.in
vendored
28
debian/tools/patchinstall.sh.in
vendored
@ -30,15 +30,16 @@ usage()
|
||||
echo "using a Makefile."
|
||||
echo ""
|
||||
echo "Configuration:"
|
||||
echo " DESTDIR=path Specify the path to the wine source tree"
|
||||
echo " --all Select all patches"
|
||||
echo " --help Display this help and exit"
|
||||
echo " --no-autoupdate Do not apply patchlist and don't auto-update files"
|
||||
echo " -W patchset Exclude a specific patchset"
|
||||
echo " DESTDIR=path Specify the path to the wine source tree"
|
||||
echo " --all Select all patches"
|
||||
echo " --help Display this help and exit"
|
||||
echo " --no-autoupdate Do not apply patchlist and don't auto-update files"
|
||||
echo " -W patchset Exclude a specific patchset"
|
||||
echo ""
|
||||
echo "Backends:"
|
||||
echo " --backend=patch Use regular 'patch' utility to apply patches (default)"
|
||||
echo " --backend=git Use 'git am' to apply patches"
|
||||
echo " --backend=patch Use regular 'patch' utility to apply patches (default)"
|
||||
echo " --backend=git-am Use 'git am' to apply patches"
|
||||
echo " --backend=git-apply Use 'git apply' to apply patches"
|
||||
echo ""
|
||||
}}
|
||||
|
||||
@ -126,7 +127,7 @@ if [ "$backend" == "patch" ]; then
|
||||
}}
|
||||
|
||||
# GIT backend - apply patches using 'git am'
|
||||
elif [ "$backend" == "git" ]; then
|
||||
elif [ "$backend" == "git" -o "$backend" == "git-am" ]; then
|
||||
|
||||
patch_apply ()
|
||||
{{
|
||||
@ -136,6 +137,17 @@ elif [ "$backend" == "git" ]; then
|
||||
fi
|
||||
}}
|
||||
|
||||
# Git apply backend
|
||||
elif [ "$backend" == "git-apply" ]; then
|
||||
|
||||
patch_apply ()
|
||||
{{
|
||||
echo "Applying $1"
|
||||
if ! cat "$1" | (cd "$DESTDIR" && git apply); then
|
||||
abort "Failed to apply patch, aborting!"
|
||||
fi
|
||||
}}
|
||||
|
||||
# Stacked GIT backend - import the patches (mainly for developers)
|
||||
elif [ "$backend" == "stg" ]; then
|
||||
|
||||
|
@ -13,7 +13,7 @@ install:
|
||||
.PHONY: install-git
|
||||
install-git:
|
||||
@echo "WARNING: Using this Makefile is deprecated!" >&2
|
||||
"$(CURDIR)/patchinstall.sh" DESTDIR="$(DESTDIR)" --all --backend=git
|
||||
"$(CURDIR)/patchinstall.sh" DESTDIR="$(DESTDIR)" --all --backend=git-am
|
||||
|
||||
.PHONY: series
|
||||
series:
|
||||
|
@ -30,15 +30,16 @@ usage()
|
||||
echo "using a Makefile."
|
||||
echo ""
|
||||
echo "Configuration:"
|
||||
echo " DESTDIR=path Specify the path to the wine source tree"
|
||||
echo " --all Select all patches"
|
||||
echo " --help Display this help and exit"
|
||||
echo " --no-autoupdate Do not apply patchlist and don't auto-update files"
|
||||
echo " -W patchset Exclude a specific patchset"
|
||||
echo " DESTDIR=path Specify the path to the wine source tree"
|
||||
echo " --all Select all patches"
|
||||
echo " --help Display this help and exit"
|
||||
echo " --no-autoupdate Do not apply patchlist and don't auto-update files"
|
||||
echo " -W patchset Exclude a specific patchset"
|
||||
echo ""
|
||||
echo "Backends:"
|
||||
echo " --backend=patch Use regular 'patch' utility to apply patches (default)"
|
||||
echo " --backend=git Use 'git am' to apply patches"
|
||||
echo " --backend=patch Use regular 'patch' utility to apply patches (default)"
|
||||
echo " --backend=git-am Use 'git am' to apply patches"
|
||||
echo " --backend=git-apply Use 'git apply' to apply patches"
|
||||
echo ""
|
||||
}
|
||||
|
||||
@ -668,7 +669,7 @@ if [ "$backend" == "patch" ]; then
|
||||
}
|
||||
|
||||
# GIT backend - apply patches using 'git am'
|
||||
elif [ "$backend" == "git" ]; then
|
||||
elif [ "$backend" == "git" -o "$backend" == "git-am" ]; then
|
||||
|
||||
patch_apply ()
|
||||
{
|
||||
@ -678,6 +679,17 @@ elif [ "$backend" == "git" ]; then
|
||||
fi
|
||||
}
|
||||
|
||||
# Git apply backend
|
||||
elif [ "$backend" == "git-apply" ]; then
|
||||
|
||||
patch_apply ()
|
||||
{
|
||||
echo "Applying $1"
|
||||
if ! cat "$1" | (cd "$DESTDIR" && git apply); then
|
||||
abort "Failed to apply patch, aborting!"
|
||||
fi
|
||||
}
|
||||
|
||||
# Stacked GIT backend - import the patches (mainly for developers)
|
||||
elif [ "$backend" == "stg" ]; then
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user