feat(haskell build system): remove unwanted files/dirs before packaging

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>

fix(termux_step_massage): add `-r` option to `rm` command to delete dir

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>

wip
This commit is contained in:
Aditya Alok 2022-03-10 00:26:10 +05:30 committed by Henrik Grimler
parent 49c3e79513
commit d47825a88c
No known key found for this signature in database
GPG Key ID: B0076E490B71616B

View File

@ -86,6 +86,9 @@ termux_step_massage() {
termux_create_pacman_subpackages
fi
# Remove unnecessary files in haskell pacakges:
test -d ./lib/ghc-* && rm -rf ./lib/ghc-* 2>/dev/null # Remove full ghc-* dir since cross compiler installs packages in "./lib/${TERMUX_ARCH}-android-ghc-X.Y.Z"
# .. remove empty directories (NOTE: keep this last):
find . -type d -empty -delete
}