diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:36:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:36:16 +0000 |
commit | 8a88d5d1ed5308b49c5e2e6027749d6300d96121 (patch) | |
tree | 8b8bbe8826b345d4c3d4b7cf153923ce3e7dd7b8 /debian/rules | |
parent | Adding debian version 2024a-3. (diff) | |
download | tzdata-8a88d5d1ed5308b49c5e2e6027749d6300d96121.tar.xz tzdata-8a88d5d1ed5308b49c5e2e6027749d6300d96121.zip |
Adding debian version 2024a-4.debian/2024a-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index 06ceafc..50fe8c3 100755 --- a/debian/rules +++ b/debian/rules @@ -17,8 +17,10 @@ override_dh_auto_build-indep: # Replace hardlinks by symlinks grep '^L ' $(CURDIR)/tzdata.zi | while read L target name ; do \ - ln -srf $(TZGEN)/$$target $(TZGEN)/$$name ; \ - ln -srf $(TZGEN)/right/$$target $(TZGEN)/right/$$name ; \ + absolute_name="$(TZGEN)/$$name"; \ + relative_target=$$(realpath -m -s --relative-to="$${absolute_name%/*}" "$(TZGEN)/$$target"); \ + ln -sf "$$relative_target" "$(TZGEN)/$$name" ; \ + ln -sf "$$relative_target" "$(TZGEN)/right/$$name" ; \ done # Generate a posixrules file |