-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into release-0.14
- Loading branch information
Showing
9 changed files
with
867 additions
and
18 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- Makefile 2021-12-14 12:24:30.857292020 +0000 | ||
+++ Makefile 2021-12-14 12:24:44.637400564 +0000 | ||
@@ -201,7 +201,7 @@ update_package_db: install_bin install_lib | ||
@echo "$(PKG_CONFS)" | ||
@echo "Updating the package DB" | ||
$(foreach p, $(PKG_CONFS),\ | ||
- $(call patchpackageconf,$(shell echo $(notdir $p) | sed 's/-\([0-9]*[0-9]\.\)*conf//g'),$(shell echo "$p" | sed 's:xxx: :g'),$(docdir),$(shell realpath --relative-to="$(ActualLibsDir)" "$(docdir)"))) | ||
+ $(call patchpackageconf,$(shell echo $(notdir $p) | sed 's/-\([0-9]*[0-9]\.\)*conf//g'),$(shell echo "$p" | sed 's:xxx: :g'),$(docdir),$(shell mk/relpath.sh "$(ActualLibsDir)" "$(docdir)"))) | ||
'$(WrapperBinsDir)/ghc-pkg' recache | ||
|
||
install_mingw: |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/sh | ||
|
||
# POSIX shell implementation of `realpath --relative-to=$1 $2. | ||
# This is an adaptation of the implementation from | ||
# <https://github.com/Offirmo/offirmo-shell-lib>. | ||
|
||
# returns relative path to $2=$target from $1=$source | ||
## NOTE : path are compared in text only. They don’t have to exist | ||
## and they WONT be normalized/escaped | ||
## Result in "$return_value"# both $1 and $2 are absolute paths beginning with / | ||
|
||
src="$1" | ||
target="$2" | ||
|
||
common_part="$src" | ||
result="" | ||
|
||
while test "${target#$common_part}" = "${target}" ; do | ||
#echo "common_part is now : \"$common_part\"" | ||
#echo "result is now : \"$result\"" | ||
#echo "target#common_part : \"${target#$common_part}\"" | ||
# no match, means that candidate common part is not correct | ||
# go up one level (reduce common part) | ||
common_part="$(dirname "$common_part")" | ||
# and record that we went back | ||
if test -z "$result" ; then | ||
result=".." | ||
else | ||
result="../$result" | ||
fi | ||
done | ||
|
||
#echo "common_part is : \"$common_part\"" | ||
|
||
if test "$common_part" = "/" ; then | ||
# special case for root (no common path) | ||
result="$result/" | ||
fi | ||
|
||
# since we now have identified the common part, | ||
# compute the non-common part | ||
forward_part="${target#$common_part}" | ||
#echo "forward_part = \"$forward_part\"" | ||
|
||
if test -n "$result" && test -n "$forward_part" ; then | ||
#echo "(simple concat)" | ||
result="$result$forward_part" | ||
elif test -n "$forward_part" ; then | ||
#echo "(concat with slash removal)" | ||
result="$(printf "%s" "$forward_part" | cut -c 1-)" | ||
fi | ||
|
||
printf "%s" "$result" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters