#!/bin/bash # $Id:$ # We 'remove' these files in SVN when using autotools. AUTOTOOLS_CONFLICTS=" Makefile.in Makefile configure configure.in config.sub resiprocate/Makefile resiprocate/Makefile.in resiprocate/configure.in resiprocate/config.hxx resiprocate/config.hxx.in missing aclocal.m4 " # These are files that we care about and that # are part of the autotools generation stuff. # These files are source files in autotools/* parallel tree. # Need to add resiprocate/dum/Makefile.am resiprocate/dum/test/Makefile.am AUTOTOOLS_USED="Makefile.am resiprocate/Makefile.am resiprocate/test/Makefile.am resiprocate/dum/Makefile.am configure.ac acinclude.m4 autogen.sh " AUTOTOOLS_ARTIFACTS="config.guess config.sub ltmain.sh mkinstalldirs acinclude.m4 " makeLink () { RD=$( echo ${1} | sed 's:[^/][^/]*:..:g;s:^\.\.:.:g' )/autotools/sip/${1} echo Making link for $1 [ -e $(dirname ${1})/${RD} ] || echo missing ${RD} if [ -h ${1} ]; then echo "${1}: already exists!" >&2 else ln -s ${RD} ${1} || echo "${1}: error making link." >&2 fi } if [ "$1"x != x ]; then case "${1}" in --show-c*|-c) echo "${AUTOTOOLS_CONFLICTS}" ;; --show-u*|-u) echo "${AUTOTOOLS_USED}" ;; *) ;; esac exit 0 fi if [ ! -f use-autotools.sh ]; then cat <> ${Fd}/${ATCF} done # Make links to autotools files as needed. for B in ${AUTOTOOLS_USED}; do makeLink "${B}" done # Add artifacts (toplevel only) to ignore list. for F in ${ATCF} ${AUTOTOOLS_ARTIFACTS}; do echo ${F} >> ${ATCF} done # Propset so autotools stuff is ignored for now. for D in $( find . -name ${ATCF} -print ) ;do ( cd $(dirname $D) ; pwd ; echo ${ATCF} >> ${ATCF} ; \ cat .cvsignore ${ATCF} > /tmp/$$.atcf ;\ svn propset svn:ignore -F /tmp/$$.atcf . ;\ rm /tmp/$$.atcf) done