Debian Codegraph @

DEBIAN/Dev/postinst.in

raw
1 #!/bin/bash
2
3 ################################################################################
4 ##
5 ## The University of Illinois/NCSA
6 ## Open Source License (NCSA)
7 ##
8 ## Copyright (c) 2020-2021, Advanced Micro Devices, Inc. All rights reserved.
9 ##
10 ## Developed by:
11 ##
12 ## AMD Research and AMD HSA Software Development
13 ##
14 ## Advanced Micro Devices, Inc.
15 ##
16 ## www.amd.com
17 ##
18 ## Permission is hereby granted, free of charge, to any person obtaining a copy
19 ## of this software and associated documentation files (the "Software"), to
20 ## deal with the Software without restriction, including without limitation
21 ## the rights to use, copy, modify, merge, publish, distribute, sublicense,
22 ## and/or sell copies of the Software, and to permit persons to whom the
23 ## Software is furnished to do so, subject to the following conditions:
24 ##
25 ## - Redistributions of source code must retain the above copyright notice,
26 ## this list of conditions and the following disclaimers.
27 ## - Redistributions in binary form must reproduce the above copyright
28 ## notice, this list of conditions and the following disclaimers in
29 ## the documentation and/or other materials provided with the distribution.
30 ## - Neither the names of Advanced Micro Devices, Inc,
31 ## nor the names of its contributors may be used to endorse or promote
32 ## products derived from this Software without specific prior written
33 ## permission.
34 ##
35 ## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
36 ## IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37 ## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
38 ## THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
39 ## OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
40 ## ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
41 ## DEALINGS WITH THE SOFTWARE.
42 ##
43 ################################################################################
44
45 set -e
46
47 case "$1" in
48 ( configure )
49 # Workaround for CPACK directory symlink handling error.
50 mkdir -p @CPACK_PACKAGING_INSTALL_PREFIX@/hsa/include
51 ln -sf ../../@CMAKE_INSTALL_INCLUDEDIR@/hsa @CPACK_PACKAGING_INSTALL_PREFIX@/hsa/include/hsa
52 ;;
53 ( * )
54 exit 0
55 ;;
56 esac