distcheck
This commit is contained in:
parent
4090e2cbbe
commit
050abcc19f
@ -81,7 +81,7 @@ SET(CPACK_RESOURCE_FILE_README ${CMAKE_SOURCE_DIR}/README)
|
|||||||
SET(CPACK_PACKAGE_EXECUTABLES medit medit)
|
SET(CPACK_PACKAGE_EXECUTABLES medit medit)
|
||||||
|
|
||||||
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "medit-${MOO_VERSION}")
|
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "medit-${MOO_VERSION}")
|
||||||
SET(CPACK_SOURCE_IGNORE_FILES "/build/;/[.]hg;/[.]git;/junk/;/vs/;/ugly/")
|
SET(CPACK_SOURCE_IGNORE_FILES "/build/;/[.]hg;/[.]git;/junk/;/vs/;/ugly/;/_build/;/_install/;.*[.]orig$")
|
||||||
|
|
||||||
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "medit")
|
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "medit")
|
||||||
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "medit")
|
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "medit")
|
||||||
@ -107,3 +107,8 @@ ELSE(WIN32)
|
|||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
INCLUDE(CPack)
|
INCLUDE(CPack)
|
||||||
|
|
||||||
|
IF(NOT WIN32)
|
||||||
|
CONFIGURE_FILE(${MOO_SOURCE_DIR}/dist/distcheck.in distcheck)
|
||||||
|
ADD_CUSTOM_TARGET(distcheck ${MOO_BINARY_DIR}/distcheck)
|
||||||
|
ENDIF(NOT WIN32)
|
||||||
|
38
dist/distcheck.in
vendored
Executable file
38
dist/distcheck.in
vendored
Executable file
@ -0,0 +1,38 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
docmd() {
|
||||||
|
echo "$@"
|
||||||
|
"$@" || exit $!
|
||||||
|
}
|
||||||
|
|
||||||
|
top_builddir=`pwd`
|
||||||
|
top_testdir=`mktemp --tmpdir -d medit-distcheck-XXXXXXXX`
|
||||||
|
package=medit-${MOO_VERSION}
|
||||||
|
|
||||||
|
docmd make package_source
|
||||||
|
docmd cp $package.tar.bz2 $top_testdir/
|
||||||
|
|
||||||
|
docmd cd $top_testdir
|
||||||
|
docmd tar xjf $package.tar.bz2
|
||||||
|
docmd mkdir _install
|
||||||
|
docmd cd $package
|
||||||
|
docmd cmake -D CMAKE_INSTALL_PREFIX=$top_testdir/_install .
|
||||||
|
docmd make -j 3 all
|
||||||
|
docmd make install
|
||||||
|
docmd cd $top_testdir
|
||||||
|
docmd rm -fr $package _install
|
||||||
|
|
||||||
|
docmd cd $top_testdir
|
||||||
|
docmd tar xjf $package.tar.bz2
|
||||||
|
docmd mkdir _install
|
||||||
|
docmd mkdir _build
|
||||||
|
docmd cd _build
|
||||||
|
docmd cmake -D CMAKE_INSTALL_PREFIX=$top_testdir/_install $top_testdir/$package
|
||||||
|
docmd make -j 3 all
|
||||||
|
docmd make install clean
|
||||||
|
docmd make all install
|
||||||
|
docmd cd $top_testdir
|
||||||
|
docmd rm -fr $package _install _build
|
||||||
|
|
||||||
|
docmd rm -fr $top_testdir
|
||||||
|
echo " *** SUCCESS *** "
|
Loading…
x
Reference in New Issue
Block a user