3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
61 lines
2.3 KiB
Bash
Executable File
61 lines
2.3 KiB
Bash
Executable File
#! /bin/sh
|
|
#-----------------------------------------------------------------------------
|
|
#-- Name: distrib/mac/pbsetup-sh
|
|
#-- Purpose: Copy setup.h for ProjectBuilder
|
|
#-- Author: Gilles Depeyrot
|
|
#-- Modified by:
|
|
#-- Created: 12.09.2003
|
|
#-- Copyright: (c) 2003 Gilles Depeyrot
|
|
#-- Licence: wxWindows licence
|
|
#-----------------------------------------------------------------------------
|
|
#
|
|
# Usage: $0 SRCROOT SYMROOT
|
|
#
|
|
# Display errors/warnings in the correct format for ProjectBuilder parsing
|
|
#
|
|
if [ $# -ne 2 ] ; then
|
|
echo "${0}:${LINENO}: error: Usage: ${0} SRCROOT SYMROOT"
|
|
exit 1
|
|
fi
|
|
#
|
|
# Create wx include directory if necessary
|
|
#
|
|
if [ ! -d "${2}/include/wx" ]; then
|
|
mkdir -p "${2}/include/wx"
|
|
if [ ! -d "${2}/include/wx" ] ; then
|
|
echo "${0}:${LINENO}: error: unable to create directory \"${2}/include/wx\""
|
|
exit 1
|
|
fi
|
|
fi
|
|
#
|
|
# Copy stock setup0.h to setup.h if it doesn't exist
|
|
# preserve user modifications made to setup.h
|
|
#
|
|
if [ ! -f "${1}/../include/wx/osx/setup.h" ]; then
|
|
echo "${0}:${LINENO}: warning: copying \"include/wx/osx/setup0.h\" to \"include/wx/osx/setup.h\""
|
|
echo "${0}:${LINENO}: warning: edit \"include/wx/osx/setup.h\" to choose the features you would like to compile wxWindows with[out]"
|
|
cp "${1}/../include/wx/osx/setup0.h" "${1}/../include/wx/osx/setup.h"
|
|
if [ ! -f "${1}/../include/wx/osx/setup.h" ]; then
|
|
echo "${0}:${LINENO}: error: unable to create setup file \"${1}/../include/wx/osx/setup.h\""
|
|
exit 1
|
|
fi
|
|
fi
|
|
#
|
|
# Check that stock setup0.h is not newer than user setup.h
|
|
#
|
|
if [ "${1}/../include/wx/osx/setup0.h" -nt "${1}/../include/wx/osx/setup.h" ] ; then
|
|
echo "${0}:${LINENO}: warning: \"include/wx/osx/setup0.h\" is more recent than \"include/wx/osx/setup.h\""
|
|
echo "${0}:${LINENO}: warning: edit or replace \"include/wx/osx/setup.h\" to integrate changes"
|
|
fi
|
|
#
|
|
# Copy user setup.h to build setup.h if the latter doesn't exist or is older
|
|
#
|
|
if [ ! -f "${2}/include/wx/setup.h" -o \
|
|
"${1}/../include/wx/osx/setup.h" -nt "${2}/include/wx/setup.h" ] ; then
|
|
cp "${1}/../include/wx/osx/setup.h" "${2}/include/wx/setup.h"
|
|
if [ ! -f "${2}/include/wx/setup.h" ] ; then
|
|
echo "${0}:${LINENO}: error: unable to create target setup file \"${2}/include/wx/setup.h\""
|
|
exit 1
|
|
fi
|
|
fi
|