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:
parent
49c3e79513
commit
d47825a88c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user