File tree Expand file tree Collapse file tree 4 files changed +35
-0
lines changed
Expand file tree Collapse file tree 4 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ echo "Checking out Sanoid version \"${SANOID_VERSION}\""
4343pushd sanoid_source > /dev/null
4444git -c advice.detachedHead=false checkout " v${SANOID_VERSION} "
4545git log -1
46+
47+ echo ' Applying custom patches to sanoid scripts to support bundling in APPerl binary...'
48+ for tool in sanoid syncoid findoid; do
49+ patch < " ${repo_root} /patches/${tool} .patch"
50+ done
4651popd > /dev/null
4752echo ' '
4853
Original file line number Diff line number Diff line change 1+ diff --git a/findoid b/findoid
2+ index 0bb5e5f..d481c66 100755
3+ --- a/findoid
4+ +++ b/findoid
5+ @@ -1,4 +1,5 @@
6+ #!/usr/bin/perl
7+ + $ENV{APPERL_SCRIPTNAME} = 'perl';
8+
9+ # this software is licensed for use under the Free Software Foundation's GPL v3.0 license, as retrieved
10+ # from http://www.gnu.org/licenses/gpl-3.0.html on 2014-11-17. A copy should also be available in this
Original file line number Diff line number Diff line change 1+ diff --git a/sanoid b/sanoid
2+ index 5150f3b..1a382f1 100755
3+ --- a/sanoid
4+ +++ b/sanoid
5+ @@ -1,4 +1,5 @@
6+ #!/usr/bin/perl
7+ + $ENV{APPERL_SCRIPTNAME} = 'perl';
8+
9+ # this software is licensed for use under the Free Software Foundation's GPL v3.0 license, as retrieved
10+ # from http://www.gnu.org/licenses/gpl-3.0.html on 2014-11-17. A copy should also be available in this
Original file line number Diff line number Diff line change 1+ diff --git a/syncoid b/syncoid
2+ index 5ed00f0..1791ee6 100755
3+ --- a/syncoid
4+ +++ b/syncoid
5+ @@ -1,4 +1,5 @@
6+ #!/usr/bin/perl
7+ + $ENV{APPERL_SCRIPTNAME} = 'perl';
8+
9+ # this software is licensed for use under the Free Software Foundation's GPL v3.0 license, as retrieved
10+ # from http://www.gnu.org/licenses/gpl-3.0.html on 2014-11-17. A copy should also be available in this
You can’t perform that action at this time.
0 commit comments