1
1

Script for generating a Windows specific patch.

This commit was SVN r16131.
Этот коммит содержится в:
George Bosilca 2007-09-14 21:25:56 +00:00
родитель cf5a38af5e
Коммит 71393fdfd9

27
contrib/platform/win32/generate_windows_patch.sh Исполняемый файл
Просмотреть файл

@ -0,0 +1,27 @@
#! /usr/bin/bash
VERSION_FILES="opal/include/opal/version.h orte/include/orte/version.h ompi/include/ompi/version.h"
CONFIG_FILES="opal/include/opal_config.h orte/include/orte_config.h ompi/include/ompi_config.h"
MISC_FILES="opal/mca/installdirs/config/install_dirs.h generate_windows_patch.sh ompi_install.sh"
MPI_FILES="ompi/include/mpi.h ompi/include/mpif-common.h ompi/include/mpif.h"
STATIC_COMP_FILES=`find . -name static-components.h`
ALL_FILES="${VERSION_FILES} ${CONFIG_FILES} ${MISC_FILES} ${MPI_FILES} ${STATIC_COMP_FILES}"
OUTPUT="../ompi_patch`date +'%m%d%y'`"
rm -f ${OUTPUT}
echo Preparing SVN diffs
svn diff > ompi_patch
echo "Preparing the tar file ${OUTPUT}.tar"
tar -c `svn status | grep ".vcproj$" | awk '{print $2}'` ompi_patch ompi-trunk.sln ${ALL_FILES} > ${OUTPUT}.tar
echo "Compressing the tar file"
bzip2 -9 ${OUTPUT}.tar
echo "Cleaning up ..."
rm -f ompi_patch
echo "Done"