Cleanup symlink to header files and folders

Due to a CPACK bug the package needs to remove header file
symlinks.  Cleanup is required for uninstall and upgrade
since each release installs to a different folder.

Change-Id: I5ec378b21e69235404781c7bce3c0203eb38eed1
Tá an tiomantas seo le fáil i:
Freddy Paul údaraithe agus Sean Keely tiomanta 2021-10-12 14:56:02 -05:00
1 tuismitheoir 19c1e92b4c
tiomantas ca899ea429
2 comhad athraithe
+6 -2

Níor tháinig aon chomhaid le do chuardach

+3 -1
Féach ar an gComhad
@@ -45,8 +45,10 @@
set -e
case "$1" in
( remove )
( remove | upgrade )
# Workaround for CPACK directory symlink handling error.
# Needed for remove and upgrade scenarios since
# upgrade installs to new folder and old folders need to be cleaned
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/hsa
;;
( * )
+3 -1
Féach ar an gComhad
@@ -40,7 +40,9 @@
##
################################################################################
if [ $1 -eq 0 ]; then
if [ $1 -le 1 ]; then
# Workaround for CPACK directory symlink handling error.
# Needed for uninstall and upgrade scenarios since
# upgrade install to new folder and old folders need to be cleaned
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/hsa
fi