#!/bin/sh # # CMake Cygwin package creation script. Run this in an empty # directory from a separate CMake checkout. # CVS_TAG="-r Release-1-4" PKG=cmake VER=1.4.6 REL=1 CVSROOT=":pserver:anonymous@www.cmake.org:/cvsroot/CMake" FULLPKG="${PKG}-${VER}-${REL}" SELF_DIR=`cd \`echo "$0" | sed -n '/\//{s/\/[^\/]*$//;p;}'\`;pwd` WriteREADME() { CYGVERSION=`uname -r` cat > ${PKG}-${VER}/CYGWIN-PATCHES/cmake.README < ------------------ Cygwin port maintained by: CMake Developers EOF } WriteSetupHint() { cat > ${PKG}-${VER}/CYGWIN-PATCHES/setup.hint < "${FULLPKG}.patch") rm -rf ${PKG}-${VER} ${PKG}-${VER}-orig } CygwinScript() { cp ${SELF_DIR}/cmake-cygwin-package.sh ./${FULLPKG}.sh chmod u+x ./${FULLPKG}.sh } Package() { ./${FULLPKG}.sh all } SourceTarball && SourcePatch && CygwinScript && Package