#!/bin/sh
# Top level jenkins script to build for promoted CodeXL libraries, and verify
# that the built results have all of the expected bits.
# Also generate the CodeXL-Linux[32|64].xml file for the updater to consume
#
# Usage:
#   $0 [<version number>] [scratch]
#   <version number>:
#       An optional parameter is the build number.
#       When the build number is 0 (zero) only the debug version is built
#       If no build number is passed in, do not modify the version file
#   scratch:
#       An optional parameter.  When passed in, the script will run
#       scons <stuff> -c to perform a clean prior to the normal build
#       Thus, a scratch build
#

#
# Assumptions:
# - WORKSPACE environment variable to be set
#

AMD_PERFORCE_ROOT=$WORKSPACE
AMD_BRANCH_PART=
AMD_BRANCH_ROOT=${AMD_PERFORCE_ROOT}/${AMD_BRANCH_PART}
AMD_WS_LINUX_UTIL_DIR=${AMD_BRANCH_ROOT}/CodeXL/Util/linux
CODEXL_HELP_FOLDER=${AMD_BRANCH_ROOT}/CodeXL/Help
CODEXL_COMMON_DIR=${AMD_PERFORCE_ROOT}/Common/

# Set Java_Home locally
if [ -z ${JAVA_HOME+x} ]
then
    export JAVA_HOME=/opt/java/jdk1.8.0_77
fi

# NOTE: This is used by buildCodeXLFullLinuxProjects
export AMD_CODEXL=$AMD_BRANCH_ROOT/CodeXL
export AMD_OUTPUT=$AMD_BRANCH_ROOT/

# Version Number stuff
VERSION_MAJOR=2
VERSION_MINOR=6
VERSION_BUILD=0
# VERSION_UPDATE=0
VERSIONINFO_FILE=${AMD_CODEXL}/../Common/Src/VersionInfo/VersionInfo.h

NUM_ERRORS=0
BUILD_RELEASE_RC=0
GPUP_BUILD_RC=0
IS_SCRATCH_BUILD=0

export CONFIG_FILE_BASE=CodeXLUpdate_linux

# A utility bit of code - simply does a scons -c over both builds
NukeIt()
{
    ARCHTYPE=$1
    BUILD_OPTS="--debug=time -j ${NCPUS} CXL_build=release CXL_arch=${ARCHTYPE} -c"
    BUILD_OPTS="jenkins ${BUILD_OPTS}"
    sh $AMD_WS_LINUX_UTIL_DIR/buildCodeXLFullLinuxProjects ${BUILD_OPTS} > ${WORKSPACE}/CodeXL-Linux_${ARCHTYPE}_release.log 2>&1
}

# The bulk of the work is done here
# The only parameter is the architecture name (x86 or x86_64)
RunTheBuild()
{
    ARCHTYPE=$1
    BUILDTYPE=$2

    cd $AMD_WS_LINUX_UTIL_DIR

    # BUILD RELEASE when the version is non-zero
    BUILD_OPTS="--debug=time -j ${NCPUS} CXL_build=release CXL_arch=${ARCHTYPE} CXL_build_conf=${BUILDTYPE} CXL_hsa=true"
    BUILD_OPTS="jenkins ${BUILD_OPTS}"
    echo ""
    echo "========== Timing start: `date` ============================================"
    echo "Building: sh $AMD_WS_LINUX_UTIL_DIR/buildCodeXLFullLinuxProjects ${BUILD_OPTS}"
    sh $AMD_WS_LINUX_UTIL_DIR/buildCodeXLFullLinuxProjects ${BUILD_OPTS} > ${WORKSPACE}/CodeXL-Linux_${ARCHTYPE}_release.log 2>&1
    BUILD_RELEASE_RC=$?
    echo "========== Timing end: `date` =============================================="
    checkforerror

    # BUILD RELEASE x86 when the version is non-zero
    BUILD_OPTS="x86 --debug=time -j ${NCPUS} CXL_build=release CXL_arch=${ARCHTYPE} CXL_build_conf=${BUILDTYPE}"
    BUILD_OPTS="jenkins ${BUILD_OPTS}"
    echo ""
    echo "========== Timing start: `date` ============================================"
    echo "Building: sh $AMD_WS_LINUX_UTIL_DIR/buildCodeXLFullLinuxProjects ${BUILD_OPTS}"
    sh $AMD_WS_LINUX_UTIL_DIR/buildCodeXLFullLinuxProjects ${BUILD_OPTS} > ${WORKSPACE}/CodeXL-Linux_x86_release.log 2>&1
    BUILD_RELEASE_RC=$?
    echo "========== Timing end: `date` =============================================="
    checkforerror
}

checkforerror()
{
  NUM_ERRORS=`expr ${NUM_ERRORS} + ${BUILD_RELEASE_RC}`
  if [ ${BUILD_RELEASE_RC} -ne 0 ]
  then
    echo "*** ERROR ***"
    echo "*** the build failed - see the ${WORKSPACE}/CodeXL-Linux_${ARCHTYPE}_release.log for details ***"
    exit 1
  else
   echo "*** SUCCESS ***" 
  fi
}

PackageTheBuild()

{
    # Using "set -e" instructs the script to fail if it can't locate one of the required files for the package
    # There is a corresponding "+e" at the end of the function
    #set -e
    BUILDTYPE=$1

    echo "---- TIMING: Packaging start: `date`"

    cd $AMD_BRANCH_ROOT

    # First: clean out object files and other build artifacts which should not go into
    # the final tarball
    rm -rf Output_x86_64/release/obj

    # Future enhancement:
    # This is a good point to split in the future.  Generate the CodeXL tarball bits
    # and do not bother with other components until some other repackaging step.
    # This will keep the overhead and complexity lower here.

    # Extract the user guide html files from their archive into the expected output folder
    cd $AMD_BRANCH_ROOT/Output_x86_64/release/bin
    mkdir -p webhelp
    cd $CODEXL_HELP_FOLDER
    tar -xvf "./CodeXL_User_Guide_HTML.tar.gz" -C $AMD_BRANCH_ROOT/Output_x86_64/release/bin/webhelp
    chmod +x $AMD_BRANCH_ROOT/Output_x86_64/release/bin/webhelp/icons
    chmod +x $AMD_BRANCH_ROOT/Output_x86_64/release/bin/webhelp/images
    chmod +x $AMD_BRANCH_ROOT/Output_x86_64/release/bin/webhelp/pages
    chmod +x $AMD_BRANCH_ROOT/Output_x86_64/release/bin/webhelp/pages/doc_files

    cd $AMD_BRANCH_ROOT

	if [ ${BUILDTYPE} = "PUBLIC" ]

	then
		################################################################################################
		# Copy the files for the CodeXL Public version
		################################################################################################
		PKG_NAME=CodeXL_Linux_x86_64_${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD}
		mkdir -p ${PKG_NAME}
		cp ${AMD_CODEXL}/../CodeXL/Installer-Linux/debian/main/amdcodexlicon.desktop ${PKG_NAME}
		cp ${AMD_CODEXL}/../CodeXL/Installer-Linux/debian/main/amdremoteagenticon.desktop ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXL_Release_Notes.pdf             ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CXLRemoteDebuggingServer                ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXL                                   ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXL-bin                               ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXLRemoteAgent-bin                    ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CXLSystemInformationHelper-x64          ${PKG_NAME}
		#cp -f Output_x86/release/bin/CXLSystemInformationHelper                 ${PKG_NAME}
		cp ${AMD_CODEXL}/Remote/AMDTRemoteAgent/CodeXLRemoteAgentConfig.xml      ${PKG_NAME}
		cp ${AMD_CODEXL}/Remote/AMDTRemoteAgent/CodeXLRemoteAgent                ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAnalysisBackend.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAnalyzer.so                      ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAPIClasses.so                    ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApiFunctions.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApplicationComponents.so         ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApplicationFramework.so          ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApplication.so                   ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAssertionHandlers.so             ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLBaseTools.so                     ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLGpuDebuggingComponents.so        ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLGpuDebugging.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLGpuProfiling.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLOSWrappers.so                    ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLOSAPIWrappers.so                 ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLProcessDebugger.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLRemoteClient.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLServerUtilities.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLSharedProfiling.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_filesystem.so.1.59.0           ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_program_options.so.1.59.0      ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_regex.so.1.59.0                ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_system.so.1.59.0               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_chrono.so.1.59.0               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_date_time.so.1.59.0            ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_thread.so.1.59.0               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_wave.so.1.59.0                 ${PKG_NAME}
		#cp -df Output_x86_64/release/bin/libGLEW.so                              ${PKG_NAME}
		#cp -df Output_x86_64/release/bin/libGLEW.so.1.9                          ${PKG_NAME}
		#cp -df Output_x86_64/release/bin/libGLEW.so.1.9.0                        ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqcustomplot.so                       ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so                        ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so.11                     ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so.11.0                   ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so.11.0.0                 ${PKG_NAME}
		cp  -f ${AMD_CODEXL}/../CodeXL/Setup/Legal/Readme.txt                    ${PKG_NAME}

		mkdir -p ${PKG_NAME}/RuntimeLibs
		mkdir -p ${PKG_NAME}/RuntimeLibs/x86
		mkdir -p ${PKG_NAME}/RuntimeLibs/x86_64
		cp -df Output_x86_64/release/bin/libstdc++.so*                              ${PKG_NAME}/RuntimeLibs/x86_64
#		cp -df Output_x86_64/release/bin/libstdc++.so.6                             ${PKG_NAME}/RuntimeLibs/x86_64
#		cp -df Output_x86_64/release/bin/libstdc++.so.6.0.16                        ${PKG_NAME}/RuntimeLibs/x86_64
		cp -df Output_x86/release/bin/libstdc++.so*                                 ${PKG_NAME}/RuntimeLibs/x86
#		cp -df Output_x86/release/bin/libstdc++.so.6                                ${PKG_NAME}/RuntimeLibs/x86
#		cp -df Output_x86/release/bin/libstdc++.so.6.0.16                           ${PKG_NAME}/RuntimeLibs/x86

		mkdir -p ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicudata.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicudata.so.56                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicudata.so.56.1                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicui18n.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicui18n.so.56                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicui18n.so.56.1                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuio.so                             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuio.so.56                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuio.so.56.1                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuuc.so                             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuuc.so.56                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuuc.so.56.1                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so.5                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so.5.9                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so.5.9.5                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so.5                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so.5.9                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so.5.9.5                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so.5.9                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so.5.9.5               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so              ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so.5            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so.5.9          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so.5.9.5        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so.5.9                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so.5.9.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so.5                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so.5.9                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so.5.9.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so.5.9                ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so.5.9.5              ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so.5                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so.5.9               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so.5.9.5             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so.5                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so.5.9                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so.5.9.5                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so.5                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so.5.9               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so.5.9.5             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so.5.9                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so.5.9.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so.5.9                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so.5.9.5               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so.5                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so.5.9                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so.5.9.5                ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so.5                ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so.5.9              ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so.5.9.5            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so.5             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so.5.9           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so.5.9.5         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so.5.9                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so.5.9.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so.5                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so.5.9                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so.5.9.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT

		cp -df Output_x86_64/release/bin/qt.conf                                                ${PKG_NAME}
		cp -df Output_x86_64/release/bin/QtWebEngineProcess                                     ${PKG_NAME}
		cp -df Output_x86_64/release/bin/qwebengine_convert_dict                                ${PKG_NAME}

		mkdir -p ${PKG_NAME}/platforms
		cp -f Output_x86_64/release/bin/platforms/libqxcb.so                                    ${PKG_NAME}/platforms

		mkdir -p ${PKG_NAME}/plugins
		mkdir -p ${PKG_NAME}/plugins/xcbglintegrations
		cp -f Output_x86_64/release/bin/plugins/xcbglintegrations/libqxcb-egl-integration.so    ${PKG_NAME}/plugins/xcbglintegrations
		cp -f Output_x86_64/release/bin/plugins/xcbglintegrations/libqxcb-glx-integration.so    ${PKG_NAME}/plugins/xcbglintegrations

		mkdir -p ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/icudtl.dat                                    ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_devtools_resources.pak            ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_resources.pak                     ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_resources_100p.pak                ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_resources_200p.pak                ${PKG_NAME}/resources

		mkdir -p ${PKG_NAME}/qtwebengine_locales
		cp -f Output_x86_64/release/bin/qtwebengine_locales/*                                   ${PKG_NAME}/qtwebengine_locales

		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/CXLActivityLogger/bin/x86/libCXLActivityLogger.so ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86/
		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86_64
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/CXLActivityLogger/bin/x86_64/libCXLActivityLogger.so ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86_64/
		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/doc
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/CXLActivityLogger/doc/AMDTActivityLogger.pdf ${PKG_NAME}/SDK/CXLActivityLogger/doc/
		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/include
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/CXLActivityLogger/include/CXLActivityLogger.h ${PKG_NAME}/SDK/CXLActivityLogger/include/

		mkdir -p ${PKG_NAME}/examples/Teapot
		cp -f Output_x86_64/release/bin/examples/Teapot/CXLTeapotLicense.txt 									${PKG_NAME}/examples/Teapot
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/AMDTTeaPot.cpp 											${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/AMDTTeaPot.h 											${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/Makefile 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/resource.h 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/Sconstruct 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/targetver.h 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/AMDTDebug.h	 						${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/AMDTMainWin.h						${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/AMDTMisc.h							${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/GLWindow.h							${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/src/AMDTMainWin.cpp									${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/src/GLWindow.cpp										${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/src/Teapot.cpp										${PKG_NAME}/examples/Teapot/AMDTTeaPot/src

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/Makefile                                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/SConscript                                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/Sconstruct						      	 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTFluidGrid.h				       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTImage.h                          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTOpenCLHelper.h                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTOpenGLHelper.h                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTOpenGLMath.h                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotConstants.h                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotOCLSmokeSystem.h           ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotOGLCanvas.h                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotOGLCanvasStressTest.h      ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotRenderState.h              ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTimer.h                          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_ext.h                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_gl_ext.h              ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_gl.h                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl.h                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_icd.h                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_platform.h            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/GRemedyCLExtensions.h    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/GL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/GL/glext.h  				  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/GL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/GL/GRemedyGLExtensions.h	  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/GL

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapot.icns						 	${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationClamp.h     	 	${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationGen.h       	 	${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulation.h               ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationIndex.h          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationScalarField.h    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationVecField.h       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationVec.h            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationVecLength.h      ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpAdvectFieldScalar.cl                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpAdvectFieldVelocity.cl                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyBuoyancy.cl                        ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyPressureBoundaryCondition.cl       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplySources.cl                         ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyVelocityBoundaryCondition.cl       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyVorticity.cl                       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpCalculateCurlU.cl                       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpComputeFieldPressureIter.cl             ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpComputeFieldPressurePrep.cl             ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpCreateDensityTexture.cl                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugDensity.cl                         ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugFieldPressure.cl                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugTemperature.cl                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugVelocityLength.cl                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugVelocityVector.cl                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDissipateDensity.cl                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDissipateTemperature.cl                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpFragmentShader.catchMeIfYouCan.glsl     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpFragmentShader.glsl                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpLogo-white.bmp                          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpProjectFieldVelocity.cl                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpSmokeSimulation.cl                      ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpVertexShader.glsl                       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpVolumeSlicing.cl                        ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTFluidGrid.cpp						    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTImage.cpp	                            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTOpenCLHelper.cpp	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTOpenGLHelper.cpp	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTOpenGLMath.cpp	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotData.dat	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotOCLSmokeSystem.cpp	            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotOGLCanvas.cpp	                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotRenderState.cpp	                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		mkdir -p ${PKG_NAME}/examples/Teapot/LinuxResource/LinuxResources
		cp -f Output_x86_64/release/bin/examples/Teapot/LinuxResource/LinuxResources/AMDTTeapotApp					${PKG_NAME}/examples/Teapot/LinuxResource/LinuxResources/
		mkdir -p ${PKG_NAME}/examples/Teapot/release/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/CXLTeaPot-bin							${PKG_NAME}/examples/Teapot/release
		cp -f Output_x86_64/release/bin/examples/Teapot/release/libCXLTeaPot.a							${PKG_NAME}/examples/Teapot/release
		mkdir -p ${PKG_NAME}/examples/Teapot/release/res
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapot.icns							${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationClamp.h         ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationGen.h           ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulation.h              ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationIndex.h         ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationScalarField.h   ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationVecField.h      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationVec.h           ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationVecLength.h     ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpAdvectFieldScalar.cl                   ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpAdvectFieldVelocity.cl                 ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyBuoyancy.cl                       ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyPressureBoundaryCondition.cl      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplySources.cl                        ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyVelocityBoundaryCondition.cl      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyVorticity.cl                      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpCalculateCurlU.cl                      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpComputeFieldPressureIter.cl            ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpComputeFieldPressurePrep.cl            ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpCreateDensityTexture.cl                ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugDensity.cl                        ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugFieldPressure.cl                  ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugTemperature.cl                    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugVelocityLength.cl                 ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugVelocityVector.cl                 ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDissipateDensity.cl                    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDissipateTemperature.cl                ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpFragmentShader.catchMeIfYouCan.glsl    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpFragmentShader.glsl                    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpLogo-white.bmp                         ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpProjectFieldVelocity.cl                ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpSmokeSimulation.cl                     ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpVertexShader.glsl                      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpVolumeSlicing.cl                       ${PKG_NAME}/examples/Teapot/release/res/
		mkdir -p ${PKG_NAME}/examples/Teapot/release/src
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTFluidGrid.cpp                        ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTImage.cpp                            ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTOpenCLHelper.cpp                     ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTOpenGLHelper.cpp                     ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTOpenGLMath.cpp                       ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotData.dat                       ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotOCLSmokeSystem.cpp             ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotOGLCanvas.cpp                  ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotRenderState.cpp                ${PKG_NAME}/examples/Teapot/release/src/


		mkdir -p ${PKG_NAME}/Help
		cp -f Output_x86_64/release/bin/Help/CodeXL_Quick_Start_Guide.pdf									   ${PKG_NAME}/Help/
		mkdir -p ${PKG_NAME}/HTML
		cp -f Output_x86_64/release/bin/HTML/welcome.css                                                    ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/Welcome.html                                                   ${PKG_NAME}/HTML/
        	cp -f Output_x86_64/release/bin/HTML/WelcomeAnalyzeNA.html                                          ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_debug.png                                          ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_debug_large.png                                    ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_debug_selected.png                                 ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_profile.png                                        ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_profile_large.png                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_profile_selected.png                               ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_analyze.png                                        ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_analyze_large.png                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_analyze_selected.png                               ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/analyze_add.png                                                ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/analyze_new.png                                                ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/arrow.png                                                      ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/debug_new.png                                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/empty.png                                                      ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/profile_attach.png                                             ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/profile_new.png                                                ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/profile_system.png                                             ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/recent_projects.png                                            ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/samples.png                                                    ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/StartupPage_CodeXLLogo.png                                     ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_frame_analyze.png                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_frame_analyze_large.png                            ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_frame_analyze_selected.png                         ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/frame_analyze_new.png                                     	    ${PKG_NAME}/HTML/
		mkdir -p ${PKG_NAME}/Images
		cp -f Output_x86_64/release/bin/Images/CodeXLAboutLogo.png                  ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/CodeXLDialogSmallLogo.png            ${PKG_NAME}/Images/
		cp ${AMD_CODEXL}/AMDTApplicationFramework/Include/res/icons/ApplicationIcon_64.ico ${PKG_NAME}/Images
		cp -f Output_x86_64/release/bin/Images/back.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/cancel.png                           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/CheckForUpdates.png                  ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/CodeXLSplashScreen.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/DefaultFontTexture.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/detailMode.png                       ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/file.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/folder.png                           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/forward.png                          ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/GRSourceCodeIcon.png                 ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/InformationIcon.png                  ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/InformationIconSmall.png             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/LightBulbIconSmall.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/listMode.png                         ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/newFolder.png                        ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/open.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/save.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/ShadingProgramIcon.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/StartupPage_CodeXLLogo.png           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/StartupPage_Documentation.png        ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/StartupPage_Recent.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/toParent.png                         ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconOrange.png                ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconOrangeSmall.png           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconRed.png                   ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconRedSmall.png              ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconYellow.png                ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconYellowSmall.png           ${PKG_NAME}/Images/
		mkdir -p ${PKG_NAME}/jqPlot
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/excanvas.min.js						  ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jqplot.canvasAxisLabelRenderer.min.js    ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jqplot.canvasTextRenderer.min.js         ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jqplot.highlighter.min.js                ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jquery.jqplot.min.css                    ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jquery.jqplot.min.js                     ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jquery.min.js                            ${PKG_NAME}/jqPlot/
		mkdir -p ${PKG_NAME}/Legal
		cp -f Output_x86_64/release/bin/Legal/Boost_Software_License.txt                       ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/Public/CodeXLEndUserLicenseAgreement-Linux.htm 	 ${PKG_NAME}/Legal
		cp -f Output_x86_64/release/bin/Legal/GNU_LESSER_GENERAL_PUBLIC_LICENSE2_1.pdf         ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/jqPlot.txt                                       ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/LibDwarf.txt                                     ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/QScintilla_COMMERCIAL_LICENSE_AGREEMENT.txt      ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/Readme.txt                                       ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/zlibdoc.txt										 ${PKG_NAME}/Legal/
		mkdir -p ${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libGL.so		${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libGL.so.1      ${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libOpenCL.so    ${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libOpenCL.so.1	${PKG_NAME}/spies
		mkdir -p ${PKG_NAME}/webhelp
		cp -drf Output_x86_64/release/bin/webhelp/*	${PKG_NAME}/webhelp

		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLOccupancyAgent32.so         ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLProfileAgent32.so           ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLTraceAgent32.so             ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPPreloadXInitThreads32.so      ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/rcprof32                            ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICL32.so                ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICounters32.so          ${PKG_NAME}

		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLOccupancyAgent.so        ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLProfileAgent.so          ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLTraceAgent.so            ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPHSAProfileAgent.so         ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPHSATraceAgent.so           ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPPreloadXInitThreads.so     ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/rcprof                           ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/VkStableClocks                   ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICL.so               ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICounters.so         ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPIHSA.so              ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPProfileDataParser.so       ${PKG_NAME}
   
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/amdspv               ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/spvgen.so            ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/VirtualContext       ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/shae                 ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/rga                  ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/rga-bin              ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/RGAThirdPartyLicenses.txt              ${PKG_NAME}/Legal
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/License.txt              ${PKG_NAME}/Legal/RGALicense.txt

		tar czf ${PKG_NAME}.tar.gz ${PKG_NAME}


		elif [ ${BUILDTYPE} = "INTERNAL" ]

	then

		################################################################################################
		# Copy the files for the CodeXL Internal version
		################################################################################################
		PKG_NAME=CodeXL_Internal_Only_Linux_x86_64_${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD}

		mkdir -p ${PKG_NAME}
		cp ${AMD_CODEXL}/../CodeXL/Installer-Linux/debian/main/amdcodexlicon.desktop ${PKG_NAME}
		cp ${AMD_CODEXL}/../CodeXL/Installer-Linux/debian/main/amdremoteagenticon.desktop ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXL_Release_Notes.pdf             ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CXLRemoteDebuggingServer                ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXL                                   ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXL-bin                               ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXLRemoteAgent-bin                    ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CXLSystemInformationHelper-x64          ${PKG_NAME}
		#cp -f Output_x86/release/bin/CXLSystemInformationHelper                 ${PKG_NAME}
		cp ${AMD_CODEXL}/Remote/AMDTRemoteAgent/CodeXLRemoteAgentConfig.xml      ${PKG_NAME}
		cp ${AMD_CODEXL}/Remote/AMDTRemoteAgent/CodeXLRemoteAgent                ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAnalysisBackend.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAnalyzer.so                      ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAPIClasses.so                    ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApiFunctions.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApplicationComponents.so         ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApplicationFramework.so          ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApplication.so                   ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAssertionHandlers.so             ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLBaseTools.so                     ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLGpuDebuggingComponents.so        ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLGpuDebugging.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLGpuProfiling.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLOSWrappers.so                    ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLOSAPIWrappers.so                 ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLProcessDebugger.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLRemoteClient.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLServerUtilities.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLSharedProfiling.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_filesystem.so.1.59.0           ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_program_options.so.1.59.0      ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_regex.so.1.59.0                ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_system.so.1.59.0               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_chrono.so.1.59.0               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_date_time.so.1.59.0            ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_thread.so.1.59.0               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_wave.so.1.59.0                 ${PKG_NAME}
		#cp -df Output_x86_64/release/bin/libGLEW.so                              ${PKG_NAME}
		#cp -df Output_x86_64/release/bin/libGLEW.so.1.9                          ${PKG_NAME}
		#cp -df Output_x86_64/release/bin/libGLEW.so.1.9.0                        ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqcustomplot.so                       ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so                        ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so.11                     ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so.11.0                   ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so.11.0.0                 ${PKG_NAME}
		cp  -f ${AMD_CODEXL}/../CodeXL/Setup/Legal/Readme.txt 							${PKG_NAME}

		mkdir -p ${PKG_NAME}/RuntimeLibs
		mkdir -p ${PKG_NAME}/RuntimeLibs/x86
		mkdir -p ${PKG_NAME}/RuntimeLibs/x86_64
		cp -df Output_x86_64/release/bin/libstdc++.so                               ${PKG_NAME}/RuntimeLibs/x86_64
		cp -df Output_x86_64/release/bin/libstdc++.so.6                             ${PKG_NAME}/RuntimeLibs/x86_64
		cp -df Output_x86_64/release/bin/libstdc++.so.6.0.16                        ${PKG_NAME}/RuntimeLibs/x86_64
		cp -df Output_x86/release/bin/libstdc++.so                                  ${PKG_NAME}/RuntimeLibs/x86
		cp -df Output_x86/release/bin/libstdc++.so.6                                ${PKG_NAME}/RuntimeLibs/x86
		cp -df Output_x86/release/bin/libstdc++.so.6.0.16                           ${PKG_NAME}/RuntimeLibs/x86

		mkdir -p ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicudata.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicudata.so.54                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicudata.so.54.1                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicui18n.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicui18n.so.54                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicui18n.so.54.1                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuio.so                             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuio.so.54                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuio.so.54.1                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuuc.so                             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuuc.so.54                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuuc.so.54.1                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so.5                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so.5.9                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so.5.9.5                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so.5                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so.5.9                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so.5.9.5                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so.5.9                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so.5.9.5               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so              ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so.5            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so.5.9          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so.5.9.5        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so.5.9                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so.5.9.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so.5                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so.5.9                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so.5.9.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so.5.9                ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so.5.9.5              ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so.5                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so.5.9               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so.5.9.5             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so.5                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so.5.9                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so.5.9.5                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so.5                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so.5.9               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so.5.9.5             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so.5.9                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so.5.9.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so.5.9                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so.5.9.5               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so.5                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so.5.9                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so.5.9.5                ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so.5                ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so.5.9              ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so.5.9.5            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so.5             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so.5.9           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so.5.9.5         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so.5.9                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so.5.9.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so.5                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so.5.9                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so.5.9.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT

		cp -df Output_x86_64/release/bin/QtWebEngineProcess                                     ${PKG_NAME}
		cp -df Output_x86_64/release/bin/qwebengine_convert_dict                                ${PKG_NAME}

		mkdir -p ${PKG_NAME}/platforms
		cp -f Output_x86_64/release/bin/platforms/libqxcb.so                                    ${PKG_NAME}/platforms

		mkdir -p ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/icudtl.dat                                    ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_devtools_resources.pak            ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_resources.pak                     ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_resources_100p.pak                ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_resources_200p.pak                ${PKG_NAME}/resources

		mkdir -p ${PKG_NAME}/qtwebengine_locales
		cp -f Output_x86_64/release/bin/qtwebengine_locales/*                                   ${PKG_NAME}/qtwebengine_locales

		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/CXLActivityLogger/bin/x86/libCXLActivityLogger.so ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86/
		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86_64
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/CXLActivityLogger/bin/x86_64/libCXLActivityLogger.so ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86_64/
		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/doc
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/CXLActivityLogger/doc/AMDTActivityLogger.pdf ${PKG_NAME}/SDK/CXLActivityLogger/doc/
		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/include
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/CXLActivityLogger/include/CXLActivityLogger.h ${PKG_NAME}/SDK/CXLActivityLogger/include/

		mkdir -p ${PKG_NAME}/examples/Teapot
		cp -f Output_x86_64/release/bin/examples/Teapot/CXLTeapotLicense.txt 									${PKG_NAME}/examples/Teapot
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/AMDTTeaPot.cpp 											${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/AMDTTeaPot.h 											${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/Makefile 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/resource.h 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/Sconstruct 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/targetver.h 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/AMDTDebug.h	 						${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/AMDTMainWin.h						${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/AMDTMisc.h							${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/GLWindow.h							${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/src/AMDTMainWin.cpp									${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/src/GLWindow.cpp										${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/src/Teapot.cpp										${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/Makefile                                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/SConscript                                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/Sconstruct						      	 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTFluidGrid.h				       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTImage.h                          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTOpenCLHelper.h                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTOpenGLHelper.h                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTOpenGLMath.h                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotConstants.h                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotOCLSmokeSystem.h           ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotOGLCanvas.h                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotOGLCanvasStressTest.h      ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotRenderState.h              ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTimer.h                          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_ext.h                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_gl_ext.h              ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_gl.h                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl.h                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_icd.h                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_platform.h            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/GRemedyCLExtensions.h    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/GL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/GL/glext.h  				  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/GL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/GL/GRemedyGLExtensions.h	  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/GL

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapot.icns						 	${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationClamp.h     	 	${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationGen.h       	 	${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulation.h               ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationIndex.h          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationScalarField.h    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationVecField.h       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationVec.h            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationVecLength.h      ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpAdvectFieldScalar.cl                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpAdvectFieldVelocity.cl                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyBuoyancy.cl                        ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyPressureBoundaryCondition.cl       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplySources.cl                         ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyVelocityBoundaryCondition.cl       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyVorticity.cl                       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpCalculateCurlU.cl                       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpComputeFieldPressureIter.cl             ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpComputeFieldPressurePrep.cl             ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpCreateDensityTexture.cl                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugDensity.cl                         ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugFieldPressure.cl                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugTemperature.cl                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugVelocityLength.cl                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugVelocityVector.cl                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDissipateDensity.cl                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDissipateTemperature.cl                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpFragmentShader.catchMeIfYouCan.glsl     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpFragmentShader.glsl                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpLogo-white.bmp                          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpProjectFieldVelocity.cl                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpSmokeSimulation.cl                      ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpVertexShader.glsl                       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpVolumeSlicing.cl                        ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTFluidGrid.cpp						    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTImage.cpp	                            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTOpenCLHelper.cpp	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTOpenGLHelper.cpp	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTOpenGLMath.cpp	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotData.dat	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotOCLSmokeSystem.cpp	            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotOGLCanvas.cpp	                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotRenderState.cpp	                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		mkdir -p ${PKG_NAME}/examples/Teapot/LinuxResource/LinuxResources
		cp -f Output_x86_64/release/bin/examples/Teapot/LinuxResource/LinuxResources/AMDTTeapotApp					${PKG_NAME}/examples/Teapot/LinuxResource/LinuxResources/
		mkdir -p ${PKG_NAME}/examples/Teapot/release/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/CXLTeaPot-bin							${PKG_NAME}/examples/Teapot/release
		cp -f Output_x86_64/release/bin/examples/Teapot/release/libCXLTeaPot.a							${PKG_NAME}/examples/Teapot/release
		mkdir -p ${PKG_NAME}/examples/Teapot/release/res
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapot.icns							${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationClamp.h         ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationGen.h           ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulation.h              ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationIndex.h         ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationScalarField.h   ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationVecField.h      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationVec.h           ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationVecLength.h     ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpAdvectFieldScalar.cl                   ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpAdvectFieldVelocity.cl                 ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyBuoyancy.cl                       ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyPressureBoundaryCondition.cl      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplySources.cl                        ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyVelocityBoundaryCondition.cl      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyVorticity.cl                      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpCalculateCurlU.cl                      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpComputeFieldPressureIter.cl            ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpComputeFieldPressurePrep.cl            ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpCreateDensityTexture.cl                ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugDensity.cl                        ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugFieldPressure.cl                  ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugTemperature.cl                    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugVelocityLength.cl                 ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugVelocityVector.cl                 ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDissipateDensity.cl                    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDissipateTemperature.cl                ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpFragmentShader.catchMeIfYouCan.glsl    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpFragmentShader.glsl                    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpLogo-white.bmp                         ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpProjectFieldVelocity.cl                ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpSmokeSimulation.cl                     ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpVertexShader.glsl                      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpVolumeSlicing.cl                       ${PKG_NAME}/examples/Teapot/release/res/
		mkdir -p ${PKG_NAME}/examples/Teapot/release/src
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTFluidGrid.cpp                        ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTImage.cpp                            ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTOpenCLHelper.cpp                     ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTOpenGLHelper.cpp                     ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTOpenGLMath.cpp                       ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotData.dat                       ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotOCLSmokeSystem.cpp             ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotOGLCanvas.cpp                  ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotRenderState.cpp                ${PKG_NAME}/examples/Teapot/release/src/

		mkdir -p ${PKG_NAME}/Help
		cp -f Output_x86_64/release/bin/Help/CodeXL_Quick_Start_Guide.pdf									   ${PKG_NAME}/Help/
		mkdir -p ${PKG_NAME}/HTML
		cp -f Output_x86_64/release/bin/HTML/welcome.css                                                    ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/Welcome.html                                                   ${PKG_NAME}/HTML/
        cp -f Output_x86_64/release/bin/HTML/WelcomeAnalyzeNA.html                                          ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_debug.png                                          ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_debug_large.png                                    ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_debug_selected.png                                 ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_profile.png                                        ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_profile_large.png                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_profile_selected.png                               ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_analyze.png                                        ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_analyze_large.png                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_analyze_selected.png                               ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/analyze_add.png                                                ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/analyze_new.png                                                ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/arrow.png                                                      ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/debug_new.png                                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/empty.png                                                      ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/profile_attach.png                                             ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/profile_new.png                                                ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/profile_system.png                                             ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/recent_projects.png                                            ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/samples.png                                                    ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/StartupPage_CodeXLLogo.png                                     ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_frame_analyze.png                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_frame_analyze_large.png                            ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_frame_analyze_selected.png                         ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/frame_analyze_new.png                                     	    ${PKG_NAME}/HTML/
		mkdir -p ${PKG_NAME}/Images
		cp -f Output_x86_64/release/bin/Images/CodeXLAboutLogo.png                  ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/CodeXLDialogSmallLogo.png            ${PKG_NAME}/Images/
		cp ${AMD_CODEXL}/AMDTApplicationFramework/Include/res/icons/ApplicationIcon_64.ico ${PKG_NAME}/Images
		cp -f Output_x86_64/release/bin/Images/back.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/cancel.png                           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/CheckForUpdates.png                  ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/CodeXLSplashScreen.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/DefaultFontTexture.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/detailMode.png                       ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/file.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/folder.png                           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/forward.png                          ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/GRSourceCodeIcon.png                 ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/InformationIcon.png                  ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/InformationIconSmall.png             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/LightBulbIconSmall.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/listMode.png                         ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/newFolder.png                        ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/open.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/save.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/ShadingProgramIcon.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/StartupPage_CodeXLLogo.png           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/StartupPage_Documentation.png        ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/StartupPage_Recent.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/toParent.png                         ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconOrange.png                ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconOrangeSmall.png           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconRed.png                   ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconRedSmall.png              ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconYellow.png                ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconYellowSmall.png           ${PKG_NAME}/Images/
		mkdir -p ${PKG_NAME}/jqPlot
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/excanvas.min.js						   ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jqplot.canvasAxisLabelRenderer.min.js    ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jqplot.canvasTextRenderer.min.js         ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jqplot.highlighter.min.js                ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jquery.jqplot.min.css                    ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jquery.jqplot.min.js                     ${PKG_NAME}/jqPlot/
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/jqPlot/jquery.min.js                            ${PKG_NAME}/jqPlot/
		mkdir -p ${PKG_NAME}/Legal
		cp -f Output_x86_64/release/bin/Legal/Boost_Software_License.txt                       ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/Public/CodeXLEndUserLicenseAgreement-Linux.htm 	 ${PKG_NAME}/Legal
		cp -f Output_x86_64/release/bin/Legal/GNU_LESSER_GENERAL_PUBLIC_LICENSE2_1.pdf         ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/jqPlot.txt                                       ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/LibDwarf.txt                                     ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/QScintilla_COMMERCIAL_LICENSE_AGREEMENT.txt      ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/Readme.txt                                       ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/zlibdoc.txt										 ${PKG_NAME}/Legal/
		mkdir -p ${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libGL.so		${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libGL.so.1      ${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libOpenCL.so    ${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libOpenCL.so.1	${PKG_NAME}/spies
		mkdir -p ${PKG_NAME}/webhelp
		cp -drf Output_x86_64/release/bin/webhelp/*	${PKG_NAME}/webhelp

		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLOccupancyAgent32.so         ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLProfileAgent32.so           ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLTraceAgent32.so             ${PKG_NAME}		
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPPreloadXInitThreads32.so      ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/rcprof32                            ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICL32.so                ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICounters32.so          ${PKG_NAME}

		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLOccupancyAgent.so           ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLProfileAgent.so             ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLTraceAgent.so               ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPHSAProfileAgent.so            ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPHSATraceAgent.so              ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPPreloadXInitThreads.so        ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/rcprof                              ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/VkStableClocks                      ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICL.so                  ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICounters.so            ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPIHSA.so                 ${PKG_NAME}

		cp -f ${AMD_CODEXL}/../Common/Lib/AMD/Vulkan/rev_1_0_0/Release/lnx64/amdspv               ${PKG_NAME}
		cp -f ${AMD_CODEXL}/../Common/Lib/AMD/Vulkan/rev_1_0_0/Release/lnx64/spvgen.so            ${PKG_NAME}
		cp -f ${AMD_CODEXL}/../Common/Lib/AMD/OpenGL/VirtualContext/Release/lnx64/VirtualContext  ${PKG_NAME}
		
		tar czf ${PKG_NAME}.tar.gz ${PKG_NAME}

	elif [ ${BUILDTYPE} = "NDA" ]

	then

		################################################################################################
		# Copy the files for the CodeXL NDA version
		################################################################################################
		PKG_NAME=CodeXL_NDA_Only_Linux_x86_64_${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD}
		mkdir -p ${PKG_NAME}
		cp ${AMD_CODEXL}/../CodeXL/Installer-Linux/debian/main/amdcodexlicon.desktop ${PKG_NAME}
		cp ${AMD_CODEXL}/../CodeXL/Installer-Linux/debian/main/amdremoteagenticon.desktop ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXL_Release_Notes.pdf                ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CXLRemoteDebuggingServer                ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXL                                  ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXL-bin                              ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CodeXLRemoteAgent-bin                   ${PKG_NAME}
		cp -f Output_x86_64/release/bin/CXLSystemInformationHelper-x64          ${PKG_NAME}
		#cp -f Output_x86/release/bin/CXLSystemInformationHelper                 ${PKG_NAME}
		cp ${AMD_CODEXL}/Remote/AMDTRemoteAgent/CodeXLRemoteAgentConfig.xml     ${PKG_NAME}
		cp ${AMD_CODEXL}/Remote/AMDTRemoteAgent/CodeXLRemoteAgent               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAnalysisBackend.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAnalyzer.so                      ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAPIClasses.so                    ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApiFunctions.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApplicationComponents.so         ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApplicationFramework.so          ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLApplication.so                   ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLAssertionHandlers.so             ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLBaseTools.so                     ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLGpuDebuggingComponents.so        ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLGpuDebugging.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLGpuProfiling.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLOSWrappers.so                    ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLOSAPIWrappers.so                 ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLProcessDebugger.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLRemoteClient.so                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLServerUtilities.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libCXLSharedProfiling.so               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_filesystem.so.1.59.0          ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_program_options.so.1.59.0     ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_regex.so.1.59.0               ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_system.so.1.59.0              ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_chrono.so.1.59.0              ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_date_time.so.1.59.0           ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_thread.so.1.59.0              ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libboost_wave.so.1.59.0                ${PKG_NAME}
		#cp -df Output_x86_64/release/bin/libGLEW.so                             ${PKG_NAME}
		#cp -df Output_x86_64/release/bin/libGLEW.so.1.9                         ${PKG_NAME}
		#cp -df Output_x86_64/release/bin/libGLEW.so.1.9.0                       ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqcustomplot.so                      ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so                       ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so.11                    ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so.11.0                  ${PKG_NAME}
		cp -df Output_x86_64/release/bin/libqscintilla.so.11.0.0                ${PKG_NAME}
		cp  -f ${AMD_CODEXL}/../CodeXL/Setup/Legal/Readme.txt                   ${PKG_NAME}

		mkdir -p ${PKG_NAME}/RuntimeLibs
		mkdir -p ${PKG_NAME}/RuntimeLibs/x86
		mkdir -p ${PKG_NAME}/RuntimeLibs/x86_64
		cp -df Output_x86_64/release/bin/libstdc++.so*                          ${PKG_NAME}/RuntimeLibs/x86_64
#		cp -df Output_x86_64/release/bin/libstdc++.so.6                         ${PKG_NAME}/RuntimeLibs/x86_64
#		cp -df Output_x86_64/release/bin/libstdc++.so.6.0.16                    ${PKG_NAME}/RuntimeLibs/x86_64
		cp -df Output_x86/release/bin/libstdc++.so*                             ${PKG_NAME}/RuntimeLibs/x86
#		cp -df Output_x86/release/bin/libstdc++.so.6                            ${PKG_NAME}/RuntimeLibs/x86
#		cp -df Output_x86/release/bin/libstdc++.so.6.0.16                       ${PKG_NAME}/RuntimeLibs/x86

		mkdir -p ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicudata.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicudata.so.54                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicudata.so.54.1                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicui18n.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicui18n.so.54                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicui18n.so.54.1                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuio.so                             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuio.so.54                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuio.so.54.1                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuuc.so                             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuuc.so.54                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libicuuc.so.54.1                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so.5                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so.5.9                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Core.so.5.9.5                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so                           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so.5                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so.5.9                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5DBus.so.5.9.5                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Gui.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so.5.9                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Multimedia.so.5.9.5               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so              ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so.5            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so.5.9          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5MultimediaWidgets.so.5.9.5        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so.5.9                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Network.so.5.9.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so.5                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so.5.9                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5OpenGL.so.5.9.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so.5.9                ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Positioning.so.5.9.5              ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so.5                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so.5.9               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5PrintSupport.so.5.9.5             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Qml.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so.5                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so.5.9                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Quick.so.5.9.5                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so.5                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so.5.9               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5QuickWidgets.so.5.9.5             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so.5.9                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sensors.so.5.9.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Sql.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so.5.9                 ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebChannel.so.5.9.5               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so.5                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so.5.9                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngine.so.5.9.5                ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so.5                ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so.5.9              ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineCore.so.5.9.5            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so               ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so.5             ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so.5.9           ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5WebEngineWidgets.so.5.9.5         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so.5                      ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so.5.9                    ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Widgets.so.5.9.5                  ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so                         ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so.5                       ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so.5.9                     ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5XcbQpa.so.5.9.5                   ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so                            ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so.5                          ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so.5.9                        ${PKG_NAME}/RuntimeLibs/QT
		cp -df Output_x86_64/release/bin/RuntimeLibs/QT/libQt5Xml.so.5.9.5                      ${PKG_NAME}/RuntimeLibs/QT

		cp -df Output_x86_64/release/bin/QtWebEngineProcess                                     ${PKG_NAME}
		cp -df Output_x86_64/release/bin/qwebengine_convert_dict                                ${PKG_NAME}

		mkdir -p ${PKG_NAME}/platforms
		cp -f Output_x86_64/release/bin/platforms/libqxcb.so                                    ${PKG_NAME}/platforms

		mkdir -p ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/icudtl.dat                                    ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_devtools_resources.pak            ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_resources.pak                     ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_resources_100p.pak                ${PKG_NAME}/resources
		cp -f Output_x86_64/release/bin/resources/qtwebengine_resources_200p.pak                ${PKG_NAME}/resources

		mkdir -p ${PKG_NAME}/qtwebengine_locales
		cp -f Output_x86_64/release/bin/qtwebengine_locales/*                                   ${PKG_NAME}/qtwebengine_locales

		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86
		cp -f Output_x86_64/release/bin/CXLActivityLogger/bin/x86/libCXLActivityLogger.so    ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86/
		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86_64
		cp -f Output_x86_64/release/bin/CXLActivityLogger/bin/x86_64/libCXLActivityLogger.so ${PKG_NAME}/SDK/CXLActivityLogger/bin/x86_64/
		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/doc
		cp -f Output_x86_64/release/bin//CXLActivityLogger/doc/AMDTActivityLogger.pdf        ${PKG_NAME}/SDK/CXLActivityLogger/doc/
		mkdir -p ${PKG_NAME}/SDK/CXLActivityLogger/include
		cp -f Output_x86_64/release/bin/CXLActivityLogger/include/CXLActivityLogger.h        ${PKG_NAME}/SDK/CXLActivityLogger/include/

		mkdir -p ${PKG_NAME}/examples/Teapot
		cp -f Output_x86_64/release/bin/examples/Teapot/CXLTeapotLicense.txt 									${PKG_NAME}/examples/Teapot
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/AMDTTeaPot.cpp 											${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/AMDTTeaPot.h 											${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/Makefile 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/resource.h 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/Sconstruct 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/targetver.h 												${PKG_NAME}/examples/Teapot/AMDTTeaPot/
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/AMDTDebug.h	 						${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/AMDTMainWin.h						${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/AMDTMisc.h							${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/inc/GLWindow.h							${PKG_NAME}/examples/Teapot/AMDTTeaPot/inc
		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/src/AMDTMainWin.cpp									${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/src/GLWindow.cpp										${PKG_NAME}/examples/Teapot/AMDTTeaPot/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPot/src/Teapot.cpp										${PKG_NAME}/examples/Teapot/AMDTTeaPot/src

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/Makefile                                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/SConscript                                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/Sconstruct						      	 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTFluidGrid.h				       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTImage.h                          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTOpenCLHelper.h                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTOpenGLHelper.h                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTOpenGLMath.h                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotConstants.h                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotOCLSmokeSystem.h           ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotOGLCanvas.h                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotOGLCanvasStressTest.h      ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTeapotRenderState.h              ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/AMDTTimer.h                          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_ext.h                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_gl_ext.h              ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_gl.h                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl.h                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_icd.h                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/cl_platform.h            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/CL/GRemedyCLExtensions.h    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/CL

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/GL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/GL/glext.h  				  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/GL
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/inc/GL/GRemedyGLExtensions.h	  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/inc/GL

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapot.icns						 	${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationClamp.h     	 	${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationGen.h       	 	${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulation.h               ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationIndex.h          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationScalarField.h    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationVecField.h       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationVec.h            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/AMDTTeapotSmokeSimulationVecLength.h      ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpAdvectFieldScalar.cl                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpAdvectFieldVelocity.cl                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyBuoyancy.cl                        ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyPressureBoundaryCondition.cl       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplySources.cl                         ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyVelocityBoundaryCondition.cl       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpApplyVorticity.cl                       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpCalculateCurlU.cl                       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpComputeFieldPressureIter.cl             ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpComputeFieldPressurePrep.cl             ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpCreateDensityTexture.cl                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugDensity.cl                         ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugFieldPressure.cl                   ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugTemperature.cl                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugVelocityLength.cl                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDebugVelocityVector.cl                  ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDissipateDensity.cl                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpDissipateTemperature.cl                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpFragmentShader.catchMeIfYouCan.glsl     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpFragmentShader.glsl                     ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpLogo-white.bmp                          ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpProjectFieldVelocity.cl                 ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpSmokeSimulation.cl                      ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpVertexShader.glsl                       ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/res/tpVolumeSlicing.cl                        ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/res/

		mkdir -p ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTFluidGrid.cpp						    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTImage.cpp	                            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTOpenCLHelper.cpp	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTOpenGLHelper.cpp	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTOpenGLMath.cpp	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotData.dat	                    ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotOCLSmokeSystem.cpp	            ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotOGLCanvas.cpp	                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/AMDTTeaPotLib/src/AMDTTeapotRenderState.cpp	                ${PKG_NAME}/examples/Teapot/AMDTTeaPotLib/src/
		mkdir -p ${PKG_NAME}/examples/Teapot/LinuxResource/LinuxResources
		cp -f Output_x86_64/release/bin/examples/Teapot/LinuxResource/LinuxResources/AMDTTeapotApp					${PKG_NAME}/examples/Teapot/LinuxResource/LinuxResources/
		mkdir -p ${PKG_NAME}/examples/Teapot/release/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/CXLTeaPot-bin							${PKG_NAME}/examples/Teapot/release
		cp -f Output_x86_64/release/bin/examples/Teapot/release/libCXLTeaPot.a							${PKG_NAME}/examples/Teapot/release
		mkdir -p ${PKG_NAME}/examples/Teapot/release/res
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapot.icns							${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationClamp.h         ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationGen.h           ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulation.h              ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationIndex.h         ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationScalarField.h   ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationVecField.h      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationVec.h           ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/AMDTTeapotSmokeSimulationVecLength.h     ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpAdvectFieldScalar.cl                   ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpAdvectFieldVelocity.cl                 ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyBuoyancy.cl                       ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyPressureBoundaryCondition.cl      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplySources.cl                        ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyVelocityBoundaryCondition.cl      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpApplyVorticity.cl                      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpCalculateCurlU.cl                      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpComputeFieldPressureIter.cl            ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpComputeFieldPressurePrep.cl            ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpCreateDensityTexture.cl                ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugDensity.cl                        ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugFieldPressure.cl                  ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugTemperature.cl                    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugVelocityLength.cl                 ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDebugVelocityVector.cl                 ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDissipateDensity.cl                    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpDissipateTemperature.cl                ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpFragmentShader.catchMeIfYouCan.glsl    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpFragmentShader.glsl                    ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpLogo-white.bmp                         ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpProjectFieldVelocity.cl                ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpSmokeSimulation.cl                     ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpVertexShader.glsl                      ${PKG_NAME}/examples/Teapot/release/res/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/res/tpVolumeSlicing.cl                       ${PKG_NAME}/examples/Teapot/release/res/
		mkdir -p ${PKG_NAME}/examples/Teapot/release/src
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTFluidGrid.cpp                        ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTImage.cpp                            ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTOpenCLHelper.cpp                     ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTOpenGLHelper.cpp                     ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTOpenGLMath.cpp                       ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotData.dat                       ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotOCLSmokeSystem.cpp             ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotOGLCanvas.cpp                  ${PKG_NAME}/examples/Teapot/release/src/
		cp -f Output_x86_64/release/bin/examples/Teapot/release/src/AMDTTeapotRenderState.cpp                ${PKG_NAME}/examples/Teapot/release/src/

		mkdir -p ${PKG_NAME}/Help
		cp -f Output_x86_64/release/bin/Help/CodeXL_Quick_Start_Guide.pdf									   ${PKG_NAME}/Help/
		mkdir -p ${PKG_NAME}/HTML
		cp -f Output_x86_64/release/bin/HTML/welcome.css                                                    ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/Welcome.html                                                   ${PKG_NAME}/HTML/
        	cp -f Output_x86_64/release/bin/HTML/WelcomeAnalyzeNA.html                                          ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_debug.png                                          ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_debug_large.png                                    ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_debug_selected.png                                 ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_profile.png                                        ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_profile_large.png                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_profile_selected.png                               ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_analyze.png                                        ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_analyze_large.png                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_analyze_selected.png                               ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/analyze_add.png                                                ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/analyze_new.png                                                ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/arrow.png                                                      ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/debug_new.png                                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/empty.png                                                      ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/profile_attach.png                                             ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/profile_new.png                                                ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/profile_system.png                                             ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/recent_projects.png                                            ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/samples.png                                                    ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/StartupPage_CodeXLLogo.png                                     ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_frame_analyze.png                                  ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_frame_analyze_large.png                            ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/welcomepage_frame_analyze_selected.png                         ${PKG_NAME}/HTML/
		cp -f Output_x86_64/release/bin/HTML/frame_analyze_new.png                                     	    ${PKG_NAME}/HTML/
		mkdir -p ${PKG_NAME}/Images
		cp -f Output_x86_64/release/bin/Images/CodeXLAboutLogo.png                  ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/CodeXLDialogSmallLogo.png            ${PKG_NAME}/Images/
		cp ${AMD_CODEXL}/AMDTApplicationFramework/Include/res/icons/ApplicationIcon_64.ico ${PKG_NAME}/Images
		cp -f Output_x86_64/release/bin/Images/back.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/cancel.png                           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/CheckForUpdates.png                  ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/CodeXLSplashScreen.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/DefaultFontTexture.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/detailMode.png                       ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/file.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/folder.png                           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/forward.png                          ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/GRSourceCodeIcon.png                 ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/InformationIcon.png                  ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/InformationIconSmall.png             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/LightBulbIconSmall.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/listMode.png                         ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/newFolder.png                        ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/open.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/save.png                             ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/ShadingProgramIcon.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/StartupPage_CodeXLLogo.png           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/StartupPage_Documentation.png        ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/StartupPage_Recent.png               ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/toParent.png                         ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconOrange.png                ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconOrangeSmall.png           ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconRed.png                   ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconRedSmall.png              ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconYellow.png                ${PKG_NAME}/Images/
		cp -f Output_x86_64/release/bin/Images/WarningIconYellowSmall.png           ${PKG_NAME}/Images/
		mkdir -p ${PKG_NAME}/jqPlot
		cp -f Output_x86_64/release/bin/jqPlot/excanvas.min.js						  ${PKG_NAME}/jqPlot/
		cp -f Output_x86_64/release/bin/jqPlot/jqplot.canvasAxisLabelRenderer.min.js    ${PKG_NAME}/jqPlot/
		cp -f Output_x86_64/release/bin/jqPlot/jqplot.canvasTextRenderer.min.js         ${PKG_NAME}/jqPlot/
		cp -f Output_x86_64/release/bin/jqPlot/jqplot.highlighter.min.js                ${PKG_NAME}/jqPlot/
		cp -f Output_x86_64/release/bin/jqPlot/jquery.jqplot.min.css                    ${PKG_NAME}/jqPlot/
		cp -f Output_x86_64/release/bin/jqPlot/jquery.jqplot.min.js                     ${PKG_NAME}/jqPlot/
		cp -f Output_x86_64/release/bin/jqPlot/jquery.min.js                            ${PKG_NAME}/jqPlot/
		mkdir -p ${PKG_NAME}/Legal
		cp -f Output_x86_64/release/bin/Legal/Boost_Software_License.txt                       ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/NDA/CodeXLEndUserLicenseAgreement-Linux.htm 	 ${PKG_NAME}/Legal
		cp -f Output_x86_64/release/bin/Legal/GNU_LESSER_GENERAL_PUBLIC_LICENSE2_1.pdf         ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/jqPlot.txt                                       ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/LibDwarf.txt                                     ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/QScintilla_COMMERCIAL_LICENSE_AGREEMENT.txt      ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/Readme.txt                                       ${PKG_NAME}/Legal/
		cp -f Output_x86_64/release/bin/Legal/zlibdoc.txt										 ${PKG_NAME}/Legal/
		mkdir -p ${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libGL.so		${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libGL.so.1      ${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libOpenCL.so    ${PKG_NAME}/spies
		cp -df Output_x86_64/release/bin/spies/libOpenCL.so.1	${PKG_NAME}/spies
		mkdir -p ${PKG_NAME}/webhelp
		cp -drf Output_x86_64/release/bin/webhelp/*	${PKG_NAME}/webhelp

		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLOccupancyAgent32.so         ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLProfileAgent32.so           ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLTraceAgent32.so             ${PKG_NAME}		
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPPreloadXInitThreads32.so      ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/rcprof32                            ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICL32.so                ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICounters32.so          ${PKG_NAME}

		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLOccupancyAgent.so        ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLProfileAgent.so          ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPCLTraceAgent.so            ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPHSAProfileAgent.so         ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPHSATraceAgent.so           ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libRCPPreloadXInitThreads.so     ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/rcprof                           ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/VkStableClocks                   ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICL.so               ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPICounters.so         ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RCP/bin/libGPUPerfAPIHSA.so              ${PKG_NAME}

		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/amdspv               ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/spvgen.so            ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/VirtualContext       ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/shae                 ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/rga                  ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/rga-bin              ${PKG_NAME}
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/RGAThirdPartyLicenses.txt              ${PKG_NAME}/Legal
		cp -f ${CODEXL_COMMON_DIR}/Lib/AMD/RGA/rga-2.0.1.69/License.txt              ${PKG_NAME}/Legal/RGALicense.txt

		tar czf ${PKG_NAME}.tar.gz ${PKG_NAME}

	fi

    # Using "set -e" instructs the script to fail if it can't locate one of the required files for the package
    # This is a corresponding "+e" at the end of the function
    #set +e

    # And finally, create the xml files for the updater to use
    # Only a 64-bit version
    FULL_CONFIG_FILE=${CONFIG_FILE_BASE}64.xml
    echo "sh ${AMD_BRANCH_ROOT}/CodeXL/Installer-Linux/generateConfigXML.sh ${VERSION_MAJOR} ${VERSION_MINOR} ${VERSION_BUILD} ${ARCHTYPE} > ${AMD_OUTPUT}/${FULL_CONFIG_FILE}"
    sh -x ${AMD_BRANCH_ROOT}/CodeXL/Installer-Linux/generateConfigXML.sh ${VERSION_MAJOR} ${VERSION_MINOR} ${VERSION_BUILD} ${ARCHTYPE} > ${AMD_OUTPUT}/${FULL_CONFIG_FILE}

    echo "---- TIMING: Packaging end: `date`"

}

UsageAndExit()
{
    echo "Usage: $0 [quick] [build-num BUILDNUM] [scratch] [build-type BUILD_TYPE] [help]"
    echo "If quick is specified a compile-only (x86_64, debug) build is performed."
    echo "    No packaging of the debug content is performed"
    echo "If BUILDNUM is 0 (zero) a quick build is performed."
    echo "If scratch is specified, the build is from scratch (not the default)"
    echo "If build-type should be (PUBLIC,NDA,INTERNAL) the default is PUBLIC"
    echo "If help is specified, then this message is displayed"

    exit 1
}

########################## MAIN #############################

NARGS=$#
FOUND_VERNO=0
if [ ${NARGS} -eq 0 ]
then
    UsageAndExit
fi

if [ ${NARGS} -gt 7 ]
then
    UsageAndExit
fi

while [ "$*" != "" ]
do
   if [ "$1" = "scratch" ]
   then
      IS_SCRATCH_BUILD=1
   elif [ "$1" = "quick" ]
   then
      FOUND_VERNO=1
      VERSION_BUILD=0
   elif [ "$1" = "build-num" ]
   then
      shift
      FOUND_VERNO=1
      VERSION_BUILD=$1
   elif [ "$1" = "build-type" ]
   then
    shift
      FOUND_VERNO=1
      if [ "$1" = "" ]
      then
        BUILD_TYPE="PUBLIC"
      else
      BUILD_TYPE=$1
      fi
   elif [ "$1" = "help" ]
   then
      UsageAndExit
   else
      UsageAndExit
   fi
   shift
done

if [ "${BUILD_TYPE}" = "" ]
    then
      BUILD_TYPE="PUBLIC"
fi

# FOUND_VERNO and IS_SCRATCH_BUILD have the correct (boolean) values
# at this point
if [ ${FOUND_VERNO} -eq 1 ]
then

    # Edit the version file - in situ.  A different approach would be to
    # dynamically generate said file (perhaps in the future)
    chmod 666 ${VERSIONINFO_FILE}
    CHM_RC=$?
    NUM_ERRORS=`expr ${NUM_ERRORS} + ${CHM_RC}`
    if [ ${CHM_RC} -ne 0 ]
    then
        echo "*** ERROR ***"
        echo "*** Unable to modify ${VERSIONINFO_FILE} ***"
        echo "*** The default version numbers will be used ***"
    else
        # The pattern to match on in the file is 1,0,0,0
        # meaning major,minor,build,update
        OLDPAT=${VERSION_MAJOR},${VERSION_MINOR},0,0
        NEWPAT=${VERSION_MAJOR},${VERSION_MINOR},${VERSION_BUILD},0
        # And mangle
        sed -i "s/${OLDPAT}/${NEWPAT}/g" ${VERSIONINFO_FILE}
        SED_RC=$?
        NUM_ERRORS=`expr ${NUM_ERRORS} + ${SED_RC}`
        if [ ${SED_RC} -ne 0 ]
        then
            echo "*** ERROR ***"
            echo "*** Unable to modify fields in ${VERSIONINFO_FILE} ***"
            echo "*** The build may fail due to compile errors ***"
        fi
    fi
fi

# Figure out how much parallelism we can use.  2x cores on a really fast system
# The build system is pretty heavily used - both for tests and builds, so dial
# this back to be just the number of cores
NCPUS=`grep processor /proc/cpuinfo | wc | awk '{print $1}'`
if [ $? -ne 0 ]
then
    echo "Warning - Unable to determine the number of CPU cores - assuming one core"
    NCPUS=1
fi
# If the system is capable of more cores, re-enable this
NCPUS=`expr ${NCPUS} \* 2`
echo "Building with -j ${NCPUS}"

#
# BUILDING
#

# Clean up everything from past builds if this is a scratch build
if [ ${IS_SCRATCH_BUILD} -ne 0 ]
then
    NukeIt x86_64
fi
RunTheBuild x86_64 ${BUILD_TYPE}

if [ ${NUM_ERRORS} -ne 0 ]
then
    echo "*** The build failed ***"
    exit 1
else
    PackageTheBuild ${BUILD_TYPE}
    echo "*** The build succeeded ***"
    exit 0
fi
