28
28
trap "rm svnignore.tmp" 1 2 15
29
if test -f Makefile.am; then
30
if test -f CMakeLists.txt; then
31
if test $recurse -eq 1; then
36
addignore cmake_install.cmake
37
addignore DartTestfile.txt
38
addignore install_icons.cmake
39
addignore progress.make
40
grep -q kde4_automoc CMakeLists.txt && addignore "*.moc"
41
grep -q kde4_add_dcop_skels CMakeLists.txt && addignore "*.kidl"
42
grep -q kde4_add_dcop_skels CMakeLists.txt && addignore "*_skel.c*"
43
grep -q kde4_add_dcop_stubs CMakeLists.txt && addignore "*_stub.cpp"
46
elif test -f Makefile.am; then
30
47
if test $recurse -eq 1; then
34
51
addignore Makefile.in
36
bins=`perl -p -e 's/\\\s*\n/ /g' Makefile.am | egrep '_PROGRAMS|_LTLIBRARIES|_LIBRARIES' | sed -e 's/.*=\s*//;s/#.*//;s/\$([^)]*)//'`
53
bins=`perl -p -e 's/\\\s*\n/ /g' Makefile.am | grep _PROGRAMS | sed -e 's/.*=\s*//;s/#.*//;s/\$([^)]*)//'`
37
54
if test -n "$bins"; then
46
63
fgrep -q .skel Makefile.am && addignore "*.kidl"
47
64
fgrep -q .skel Makefile.am && addignore "*_skel.c*"
48
65
fgrep -q .stub Makefile.am && addignore "*_stub.cpp"
49
if fgrep -q .ui Makefile.am; then
50
uis=`ls -1 *.ui 2>/dev/null`
52
addignore ${ui/.ui/.h}
53
addignore ${ui/.ui/.cpp}
57
67
grep -q "^include.*/Doxyfile.am$" Makefile.am && addignore "Doxyfile"
59
if test "$addedsomething" = 1; then
60
svn propset svn:ignore -F svnignore.tmp .
69
qmakefiles=`ls -1 *.pro 2>/dev/null`
70
if test -n "$qmakefiles"; then
71
if test $recurse -eq 1; then
78
for f in `ls -1 *.pro`; do
79
if fgrep -q debug_and_release $f; then
80
addignore "Makefile.Debug"
81
addignore "Makefile.Release"
83
template=`grep ^TEMPLATE $f | sed -e 's/.*=[ \t]*//'`
84
if test -z "$template" -o "$template" = "app"; then
85
target=`grep ^TARGET $f | sed -e 's/.*=[ \t]*//'`
86
test -z "$target" && target=`echo $f | sed -e 's/\.pro$//'`
89
# addignore $target.app # Mac OSX, but only gui apps (grep for CONFIG?)
91
# RESOURCES = foo.qrc -> addignore qrc_foo.cpp
92
for resource in `perl -p -e 's/\\\s*\n/ /g' $f | grep ^RESOURCES | sed -e 's/.*=\s*//;s/#.*//;s/\$([^)]*)//'`; do
93
addignore qrc_`echo $resource | sed -e 's/\.qrc$/\.cpp/'`
95
# FORMS = foo.ui -> addignore ui_foo.h
96
for form in `perl -p -e 's/\\\s*\n/ /g' $f | grep ^FORMS | sed -e 's/.*=\s*//;s/#.*//;s/\$([^)]*)//'`; do
97
addignore ui_`echo $form | sed -e 's/\.ui$/\.h/'`
104
if test "$addedsomething" = 1; then
105
svn propset svn:ignore -F svnignore.tmp .
70
if test -f Makefile.am; then
111
qmakefiles=`ls -1 *.pro 2>/dev/null`
112
if test -f Makefile.am -o -n "$qmakefiles" -o -f CMakeLists.txt; then
71
113
if test $recurse -eq 1; then
72
114
find . -type d | egrep -v 'CVS|.svn' | sed -e 's,/$,,' | \
73
115
while read dir; do