mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
Replaced sed with configure_ac_files, since sed may not be available.
This commit is contained in:
parent
6da1539ff9
commit
3a0b0d5339
@ -1860,6 +1860,7 @@ SET(host_cpu "${cpu}")
|
||||
SET(host_vendor "${osname}")
|
||||
SET(host_os "${osrel}")
|
||||
SET(abs_top_builddir "${CMAKE_BINARY_DIR}")
|
||||
SET(abs_top_srcdir "${CMAKE_SOURCE_DIR}")
|
||||
|
||||
SET(CC_VERSION "${CMAKE_C_COMPILER}")
|
||||
|
||||
|
@ -1442,9 +1442,10 @@ abs_top_builddir=`pwd`
|
||||
cd $srcdir
|
||||
abs_top_srcdir=`pwd`
|
||||
cd $abs_top_builddir
|
||||
#AC_CONFIG_FILES(test_common.sh.in)
|
||||
rm -f ${abs_top_builddir}/test_common.sh
|
||||
sed -e "s|@TOPSRCDIR@|${abs_top_srcdir}|" -e "s|@TOPBUILDDIR@|${abs_top_builddir}|" <${abs_top_srcdir}/test_common.in >${abs_top_builddir}/test_common.sh
|
||||
|
||||
AC_CONFIG_FILES(test_common.sh:test_common.in)
|
||||
#rm -f ${abs_top_builddir}/test_common.sh
|
||||
#sed -e "s|@TOPSRCDIR@|${abs_top_srcdir}|" -e "s|@TOPBUILDDIR@|${abs_top_builddir}|" <${abs_top_srcdir}/test_common.in >${abs_top_builddir}/test_common.sh
|
||||
|
||||
#####
|
||||
# End netcdf_meta.h definitions.
|
||||
|
@ -1,7 +1,7 @@
|
||||
set -e
|
||||
|
||||
TOPSRCDIR=@TOPSRCDIR@
|
||||
TOPBUILDDIR=@TOPBUILDDIR@
|
||||
TOPSRCDIR=@abs_top_srcdir@
|
||||
TOPBUILDDIR=@abs_top_builddir@
|
||||
|
||||
# Figure out various locations in the src/build tree.
|
||||
# This is relatively fragile code and is essentially
|
||||
|
Loading…
Reference in New Issue
Block a user