[mapguide-commits] r9740 - trunk/MgDev
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Sep 24 01:19:38 PDT 2020
Author: jng
Date: 2020-09-24 01:19:38 -0700 (Thu, 24 Sep 2020)
New Revision: 9740
Modified:
trunk/MgDev/cmake_package.sh
Log:
#2821: Add --debug switch to cmake_package.sh and don't strip binaries in debug
Modified: trunk/MgDev/cmake_package.sh
===================================================================
--- trunk/MgDev/cmake_package.sh 2020-09-20 13:31:56 UTC (rev 9739)
+++ trunk/MgDev/cmake_package.sh 2020-09-24 08:19:38 UTC (rev 9740)
@@ -11,6 +11,7 @@
PKG_OUTPUT_DIR=
DPKG_MG_RELPATH="usr/local/mapguideopensource-${MG_VER}"
THIS_DIR=$(readlink -f "$(dirname $0)")
+BUILD_CONF=Release
while [ $# -gt 0 ]; do # Until you run out of parameters...
case "$1" in
@@ -34,6 +35,9 @@
MG_TARBALL=$2
shift
;;
+ --config)
+ BUILD_CONF=Debug
+ ;;
--help)
echo "Usage: $0 (options)"
echo "Options:"
@@ -42,6 +46,7 @@
echo " --working-dir [Path to working directory]"
echo " --output-dir [Path to output directory]"
echo " --build-number [Build number]"
+ echo " --debug [Indicate that we are packaging debug binaries]"
echo " --help [Display usage]"
exit
;;
@@ -247,16 +252,20 @@
done
done
- # Symbol strip all files in the STRIPLIST
- for pat in ${STRIPLIST}
- do
- for file in `find ${DPKG_CP_ROOT} -type f | grep "${pat}"`
+ if [ "$BUILD_CONF" = "Debug" ]; then
+ echo "Skip stripping symbols as we're packaging debug binaries"
+ else
+ # Symbol strip all files in the STRIPLIST
+ for pat in ${STRIPLIST}
do
- echo "Stripping ${file}"
- strip --strip-unneeded ${file}
- chmod a-x ${file}
+ for file in `find ${DPKG_CP_ROOT} -type f | grep "${pat}"`
+ do
+ echo "Stripping ${file}"
+ strip --strip-unneeded ${file}
+ chmod a-x ${file}
+ done
done
- done
+ fi
# Call dpkg-shlibdeps to build out library dependencies
# This will create the substvars file
More information about the mapguide-commits
mailing list