From e80c5def541cefdf21af7a4073d6e3bf3f852fe8 Mon Sep 17 00:00:00 2001 From: kili Date: Tue, 10 Sep 2019 20:55:26 +0000 Subject: [PATCH] fixup-hs-plist is no longer needed. --- lang/ghc/files/fixup-hs-plist | 37 ----------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 lang/ghc/files/fixup-hs-plist diff --git a/lang/ghc/files/fixup-hs-plist b/lang/ghc/files/fixup-hs-plist deleted file mode 100755 index 67007a0ebda..00000000000 --- a/lang/ghc/files/fixup-hs-plist +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# -# $OpenBSD: fixup-hs-plist,v 1.1 2015/09/01 09:58:00 kili Exp $ -# -# usage: fixup-hs-plist [plist ...] -# -# Fixes the given plists (default if no file given: pkg/PLIST) for -# hs-ports by -# -# - replacing all occurences of ${FULLPKGNAME[^}*]} by hs-${DISTNAME}, -# i.e. repair the broken backward substution made by update-plist, -# - ensures that the @exec .../register.sh, @unexec .../unregister.sh -# and the lib/ghc/${DISTNAME}/unregister.sh come at the end of -# the plist file, to stop the warnings about non-existing .haddock -# files. - -if [ $# -eq 0 ]; then - set pkg/PLIST -fi - -for plist; do - cp -p "$plist" "$plist~" - ed -s "$plist" <<- 'EOF' - g/\${FULLPKGNAME[^}]*}/s/\${FULLPKGNAME[^}]*}/hs-${DISTNAME}/g - g/^@exec .*%D\/lib\/ghc\/\${DISTNAME}\/register\.sh/d - g/^@unexec .*%D\/lib\/ghc\/\${DISTNAME}\/unregister\.sh/d - g/^lib\/ghc\/\${DISTNAME}\/unregister\.sh$/d - $a - @exec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/register.sh -v0 - @unexec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/unregister.sh -v0 --force - lib/ghc/${DISTNAME}/unregister.sh - . - wq - EOF - [ $? -eq 0 ] || cat "$plist~" > "$plist" - rm -f "$plist~" -done