patchinstall.sh: Implement 'stg' (stacked git) backend.

This commit is contained in:
Sebastian Lackner 2015-01-08 15:41:25 +01:00
parent e01a0f00de
commit d4fa1d1816
2 changed files with 20 additions and 2 deletions

View File

@ -151,8 +151,17 @@ elif [ "$backend" == "git-apply" ]; then
# Stacked GIT backend - import the patches (mainly for developers)
elif [ "$backend" == "stg" ]; then
# Only import the regular patches, no autogenerated ones -
# moreover, don't run autoreconf or ./tools/make_requests.
enable_autoupdate=0
abort "Not implemented."
patch_apply ()
{{
echo "Applying $1"
if ! echo "staging/$1" | cat - "$1" | (cd "$DESTDIR" && stg import); then
abort "Failed to apply patch, aborting!"
fi
}}
else
abort "Selected backend $backend not supported."

View File

@ -693,8 +693,17 @@ elif [ "$backend" == "git-apply" ]; then
# Stacked GIT backend - import the patches (mainly for developers)
elif [ "$backend" == "stg" ]; then
# Only import the regular patches, no autogenerated ones -
# moreover, don't run autoreconf or ./tools/make_requests.
enable_autoupdate=0
abort "Not implemented."
patch_apply ()
{
echo "Applying $1"
if ! echo "staging/$1" | cat - "$1" | (cd "$DESTDIR" && stg import); then
abort "Failed to apply patch, aborting!"
fi
}
else
abort "Selected backend $backend not supported."