Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle_mod-hvp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle_mod-hvp
Commits
576530b0
Commit
576530b0
authored
1 year ago
by
Dennis Grabowski
Browse files
Options
Downloads
Patches
Plain Diff
fixup: feat(patching): initial scaffolding for the patching helper script
parent
bfd8e0b4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hsh-fork-helper.sh
+63
-0
63 additions, 0 deletions
hsh-fork-helper.sh
with
63 additions
and
0 deletions
hsh-fork-helper.sh
0 → 100644
+
63
−
0
View file @
576530b0
#! /usr/bin/env bash
# This helper script is supposed to help maintaining our fork with various
# patches applied.
# Make sure the following problems rather error than just bug out:
# * always exit with non-zero return value on error
# * let pipefails exit with non-zero return value
# * let overwriting files exit with an error too
# * let usage of unset variables exit with non-zero return value
set
-o
errexit
-o
pipefail
-o
noclobber
-o
nounset
help
()
{
script_name
=
${
0
##*/
}
echo
"
$script_name
HsH patching helper script in ease maintaining H5P versions for which we want to apply a variety of patches.
Usage:
$script_name
command
Commands:
* init sets the original repo from GitHub as a remote (called upstream)
* fetch fetches all changes from upstream into the main branch
* apply-patches create a seperate HsH-themed branch from current version and applies all available patches for it
* pack packs the current version into a zip
* help prints this text.
Omitting the command will automatically invoke help.
"
exit
1
}
init
()
{
echo
""
}
fetch
()
{
echo
""
}
apply_patches
()
{
echo
""
}
pack
()
{
echo
""
}
case
"
$1
"
in
init
)
init
"
$2
"
;;
fetch
)
fetch
"
$2
"
;;
apply-patches
)
apply_patches
"
$2
"
;;
pack
)
pack
"
$2
"
;;
help
|
*
)
help
;;
esac
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment