annotate kdiff3/admin/Makefile.common @ 2:53b8ecbce0cb

Initial revision
author joachim99
date Sun, 18 Aug 2002 16:23:32 +0000
parents
children 415083d043f3
rev   line source
joachim99@2 1
joachim99@2 2 SHELL=/bin/sh
joachim99@2 3
joachim99@2 4 cvs:
joachim99@2 5 @if grep '$$(top_srcdir)/acinclude.m4:' Makefile.am >/dev/null; then \
joachim99@2 6 echo "*** Creating acinclude.m4" ;\
joachim99@2 7 rm -f acinclude.m4 configure.files ;\
joachim99@2 8 $(MAKE) -f Makefile.am top_srcdir=. acinclude.m4 ;\
joachim99@2 9 fi
joachim99@2 10 @echo "!!! If you get recursion errors from autoconf, it is advisable to set the"
joachim99@2 11 @echo " environment variable M4 to something including \"--nesting-limit=500\""
joachim99@2 12 @if test -r configure.in.in; then \
joachim99@2 13 rm -f subdirs configure.in ;\
joachim99@2 14 echo "*** Creating list of subdirectories" ;\
joachim99@2 15 $(MAKE) -f Makefile.am top_srcdir=. subdirs ;\
joachim99@2 16 echo "*** Creating configure.in" ;\
joachim99@2 17 $(MAKE) -f Makefile.am top_srcdir=. configure.in ;\
joachim99@2 18 fi
joachim99@2 19 @echo "*** Creating aclocal.m4"
joachim99@2 20 @aclocal
joachim99@2 21 @echo "*** Creating configure"
joachim99@2 22 @autoconf
joachim99@2 23 @if test -r configure.in.in ; then \
joachim99@2 24 perl -pi -e 'print "if test \"x\$$with_fast_perl\" = \"xyes\" ;\
joachim99@2 25 then\n perl -i.bak \$$ac_aux_dir/conf.change.pl \$$CONFIG_STATUS\
joachim99@2 26 || mv \$$CONFIG_STATUS.bak \$$CONFIG_STATUS;\
joachim99@2 27 \n rm -f \$$CONFIG_STATUS.bak;\nfi\
joachim99@2 28 \n" if /^\s*chmod\s+.*\+x\s+.*CONFIG_STATUS/;' configure ;\
joachim99@2 29 fi
joachim99@2 30 @if grep '} \$$ac_kw foo' configure >/dev/null 2>&1; then perl -p -i -e "s/ac_kw foo/ac_kw int foo/" configure; fi
joachim99@2 31 #David's hack for autoconf bug when $INSTALL is set
joachim99@2 32 @perl -pi -e 'if (/\[\/\$$\]\*. INSTALL=/) { print $$_ ; $$_ = "\"\") ;;\n"; }' configure
joachim99@2 33 @if egrep "^AM_CONFIG_HEADER" configure.in >/dev/null 2>&1; then \
joachim99@2 34 echo "*** Creating config.h template" ;\
joachim99@2 35 autoheader ;\
joachim99@2 36 fi
joachim99@2 37 @echo "*** Creating Makefile templates"
joachim99@2 38 @automake
joachim99@2 39 @echo "*** Postprocessing Makefile templates"
joachim99@2 40 @perl admin/am_edit
joachim99@2 41 @if egrep "^cvs-local:" Makefile.am >/dev/null; then \
joachim99@2 42 $(MAKE) -f Makefile.am cvs-local ;\
joachim99@2 43 fi
joachim99@2 44 @echo "*** Creating date/time stamp"
joachim99@2 45 @touch stamp-h.in
joachim99@2 46 @echo "*** Finished"
joachim99@2 47 @echo " Don't forget to run ./configure"
joachim99@2 48 @echo " If you haven't done so in a while, run ./configure --help"
joachim99@2 49
joachim99@2 50 dist:
joachim99@2 51 @if grep -e '$$(top_srcdir)/acinclude.m4:' Makefile.am >/dev/null; then \
joachim99@2 52 $(MAKE) -f Makefile.am top_srcdir=. acinclude.m4 ;\
joachim99@2 53 fi
joachim99@2 54 @if test -r configure.in.in; then \
joachim99@2 55 $(MAKE) -f Makefile.am top_srcdir=. subdirs configure.in; \
joachim99@2 56 fi ;\
joachim99@2 57 aclocal; \
joachim99@2 58 autoheader; \
joachim99@2 59 automake --foreign --include-deps; \
joachim99@2 60 perl admin/am_edit; \
joachim99@2 61 autoconf; \
joachim99@2 62 if test -r configure.in.in ; then \
joachim99@2 63 perl -pi -e 'print "if test \"x\$$with_fast_perl\" = \"xyes\" ;\
joachim99@2 64 then\n perl -i.bak \$$ac_aux_dir/conf.change.pl \$$CONFIG_STATUS\
joachim99@2 65 || mv \$$CONFIG_STATUS.bak \$$CONFIG_STATUS;\
joachim99@2 66 \n rm -f \$$CONFIG_STATUS.bak;\nfi\
joachim99@2 67 \n" if /^\s*chmod\s+.*\+x\s+.*CONFIG_STATUS/;' configure ;\
joachim99@2 68 fi ;\
joachim99@2 69 touch stamp-h.in; \
joachim99@2 70 if grep -e "^cvs-local:" Makefile.am >/dev/null; then \
joachim99@2 71 $(MAKE) -f Makefile.am cvs-local ;\
joachim99@2 72 fi ;\
joachim99@2 73 if grep "ac_kw foo" configure >/dev/null 2>&1; then perl -p -i -e "s/ac_kw foo/ac_kw int foo/" configure; fi ;\
joachim99@2 74 if test -d po; then \
joachim99@2 75 LIST=`find ./po -name "*.po"`; \
joachim99@2 76 for i in $$LIST; do \
joachim99@2 77 file2=`echo $$i | sed -e "s#\.po#\.gmo#"`; \
joachim99@2 78 msgfmt -o $$file2 $$i || touch $$file2; \
joachim99@2 79 done ;\
joachim99@2 80 fi
joachim99@2 81 @if grep -e "^cvs-dist-local:" Makefile.am >/dev/null; then \
joachim99@2 82 $(MAKE) -f Makefile.am cvs-dist-local ;\
joachim99@2 83 fi
joachim99@2 84
joachim99@2 85 cvs-clean:
joachim99@2 86 @if test ! -d CVS; then \
joachim99@2 87 echo "You don't have a toplevel CVS directory."; \
joachim99@2 88 echo "You most certainly didn't use cvs to get these sources."; \
joachim99@2 89 echo "But this function depends on cvs's information."; \
joachim99@2 90 exit 1; \
joachim99@2 91 fi; \
joachim99@2 92 perl -e '\
joachim99@2 93 sub rmrf() \
joachim99@2 94 { \
joachim99@2 95 my $$fn = shift; \
joachim99@2 96 lstat ($$fn); \
joachim99@2 97 if (-d _) { \
joachim99@2 98 if (opendir (DIR, $$fn)) { \
joachim99@2 99 for my $$efn (grep (!/^\.\.?$$/, readdir (DIR))) { \
joachim99@2 100 &rmrf ($$fn."/".$$efn); \
joachim99@2 101 } \
joachim99@2 102 closedir (DIR); \
joachim99@2 103 rmdir ($$fn); \
joachim99@2 104 } \
joachim99@2 105 } else { \
joachim99@2 106 unlink ($$fn); \
joachim99@2 107 } \
joachim99@2 108 } \
joachim99@2 109 \
joachim99@2 110 sub newfiles() \
joachim99@2 111 { \
joachim99@2 112 my ($$indir, $$incvs) = @_; \
joachim99@2 113 for my $$n (keys (%$$incvs)) { delete $$$$indir{$$n} } \
joachim99@2 114 return sort (keys (%$$indir)); \
joachim99@2 115 } \
joachim99@2 116 \
joachim99@2 117 sub cvsclean() \
joachim99@2 118 { \
joachim99@2 119 my $$dir = shift; \
joachim99@2 120 my (%dirsdir, %filesdir, %dirscvs, %filescvs); \
joachim99@2 121 my $$dnam = $$dir ? $$dir : "."; \
joachim99@2 122 if (!opendir (DIR, $$dnam)) { \
joachim99@2 123 print STDERR "Cannot enter \"".$$dnam."\".\n"; \
joachim99@2 124 return; \
joachim99@2 125 } \
joachim99@2 126 for my $$fn (grep (!/^\.\.?$$/, readdir (DIR))) { \
joachim99@2 127 if (-d $$dir.$$fn) { \
joachim99@2 128 $$fn eq "CVS" or $$dirsdir{$$fn} = 1; \
joachim99@2 129 } else { \
joachim99@2 130 $$filesdir{$$fn} = 1; \
joachim99@2 131 } \
joachim99@2 132 } \
joachim99@2 133 closedir (DIR); \
joachim99@2 134 if (!open (FILE, "<".$$dir."CVS/Entries")) { \
joachim99@2 135 print STDERR "No CVS information in \"".$$dnam."\".\n"; \
joachim99@2 136 return; \
joachim99@2 137 } \
joachim99@2 138 while (<FILE>) { \
joachim99@2 139 m%^D/([^/]+)/.*$$% and $$dirscvs{$$1} = 1; \
joachim99@2 140 m%^/([^/]+)/.*$$% and $$filescvs{$$1} = 1; \
joachim99@2 141 } \
joachim99@2 142 close (FILE); \
joachim99@2 143 if (open (FILE, "<".$$dir."CVS/Entries.Log")) { \
joachim99@2 144 while (<FILE>) { \
joachim99@2 145 m%^A D/([^/]+)/.*$$% and $$dirscvs{$$1} = 1; \
joachim99@2 146 m%^A /([^/]+)/.*$$% and $$filescvs{$$1} = 1; \
joachim99@2 147 m%^R D/([^/]+)/.*$$% and delete $$dirscvs{$$1}; \
joachim99@2 148 m%^R /([^/]+)/.*$$% and delete $$filescvs{$$1}; \
joachim99@2 149 } \
joachim99@2 150 close (FILE); \
joachim99@2 151 } \
joachim99@2 152 for my $$fn (&newfiles (\%filesdir, \%filescvs)) { \
joachim99@2 153 print ("F ".$$dir.$$fn."\n"); \
joachim99@2 154 &rmrf ($$dir.$$fn); \
joachim99@2 155 } \
joachim99@2 156 for my $$fn (&newfiles (\%dirsdir, \%dirscvs)) { \
joachim99@2 157 print ("D ".$$dir.$$fn."\n"); \
joachim99@2 158 &rmrf ($$dir.$$fn); \
joachim99@2 159 } \
joachim99@2 160 for my $$fn (sort (keys (%dirscvs))) { \
joachim99@2 161 &cvsclean ($$dir.$$fn."/"); \
joachim99@2 162 } \
joachim99@2 163 } \
joachim99@2 164 \
joachim99@2 165 &cvsclean ("");'
joachim99@2 166
joachim99@2 167
joachim99@2 168 # The Makefiles have to be sorted for slashes, since configure creates
joachim99@2 169 # only one directory per Makefile not the whole hierarchy
joachim99@2 170 configure.in: configure.files $(shell test -f configure.files && cat configure.files) subdirs
joachim99@2 171 @rm -f configure.in configure.in.new ;\
joachim99@2 172 kde_use_qt_param= ; \
joachim99@2 173 cat `cat configure.files | egrep -v "^configure.in.bot"` >> configure.in.new ;\
joachim99@2 174 echo "KDE_CREATE_SUBDIRSLIST" >> configure.in.new ;\
joachim99@2 175 echo "AC_OUTPUT( \\" >> configure.in.new ;\
joachim99@2 176 mfs=`find . -type d -print | fgrep -v "/." | sed -e "s#\./##" -e "/^debian/d" | sort`; \
joachim99@2 177 for i in $$mfs; do \
joachim99@2 178 topleveldir=`echo $$i| sed -e "s#/.*##"`; \
joachim99@2 179 if test -f $$topleveldir/configure.in; then \
joachim99@2 180 continue; \
joachim99@2 181 fi ;\
joachim99@2 182 if test ! -f $$i/Makefile.am; then \
joachim99@2 183 continue; \
joachim99@2 184 fi ;\
joachim99@2 185 if test -s inst-apps; then \
joachim99@2 186 if test -z "`grep \"^$$topleveldir\" inst-apps`"; then \
joachim99@2 187 continue; \
joachim99@2 188 fi ;\
joachim99@2 189 fi ;\
joachim99@2 190 echo "$$i/Makefile \\" >> configure.in.new ;\
joachim99@2 191 done ;\
joachim99@2 192 egrep '^dnl AC_OUTPUT\(.*\)' `cat configure.files` | sed -e "s#^.*dnl AC_OUTPUT(\(.*\))#\1 \\\\#" >> configure.in.new ;\
joachim99@2 193 echo ")" >> configure.in.new
joachim99@2 194 @modulename= ;\
joachim99@2 195 if test -f configure.in.in; then \
joachim99@2 196 if head -2 configure.in.in | egrep "^#MIN_CONFIG\(.*\)$$" > /dev/null; then \
joachim99@2 197 line=`egrep "^#MIN_CONFIG\(" configure.in.in` ;\
joachim99@2 198 if test -n "$$line"; then \
joachim99@2 199 kde_use_qt_param=`echo $$line | sed -e "s/#MIN_CONFIG(\(.*\))/\1/"` ;\
joachim99@2 200 fi ;\
joachim99@2 201 fi ;\
joachim99@2 202 if head -2 configure.in.in | egrep "^#MIN_CONFI(G|G\(.*\))$$" > /dev/null; then \
joachim99@2 203 line=`egrep "^AM_INIT_AUTOMAKE\(" configure.in.in` ;\
joachim99@2 204 if test -n "$$line"; then \
joachim99@2 205 modulename=`echo $$line | sed -e "s#AM_INIT_AUTOMAKE(\([^,]*\),.*#\1#"` ;\
joachim99@2 206 VERSION=`echo $$line | sed -e "s#AM_INIT_AUTOMAKE([^,]*, *\([^)]*\)).*#\1#"` ;\
joachim99@2 207 fi ;\
joachim99@2 208 sed -e "s#AM_INIT_AUTOMAKE([^@].*#dnl PACKAGE set before#" configure.in.new > configure.in \
joachim99@2 209 && mv configure.in configure.in.new ;\
joachim99@2 210 fi ;\
joachim99@2 211 fi ;\
joachim99@2 212 if test -z "$$modulename" || test "$$modulename" = "@MODULENAME@"; then \
joachim99@2 213 modulename=`pwd`; modulename=`basename $$modulename`; \
joachim99@2 214 fi ;\
joachim99@2 215 if test -z "$$VERSION" || test "$$VERSION" = "@VERSION@"; then \
joachim99@2 216 VERSION="\"2.91\""; \
joachim99@2 217 fi ;\
joachim99@2 218 if test -n "$$kde_use_qt_param"; then \
joachim99@2 219 sed -e "s#^dnl KDE_USE_QT#KDE_USE_QT($$kde_use_qt_param)#" configure.in.new > configure.in \
joachim99@2 220 && mv configure.in configure.in.new ;\
joachim99@2 221 fi ; \
joachim99@2 222 sed -e "s#@MODULENAME@#$$modulename#" configure.in.new | \
joachim99@2 223 sed -e "s#@VERSION@#$$VERSION#" > configure.in
joachim99@2 224 @if test -f configure.in.bot ; then cat configure.in.bot >> configure.in ; fi
joachim99@2 225 @rm -f configure.in.new
joachim99@2 226
joachim99@2 227 configure.files: subdirs
joachim99@2 228 @admindir=NO ;\
joachim99@2 229 for i in . .. ../.. ../../..; do \
joachim99@2 230 if test -x $$i/admin; then admindir=$$i/admin; break; fi; \
joachim99@2 231 done ;\
joachim99@2 232 rm -rf configure.files ;\
joachim99@2 233 if test -f configure.in.in && head -2 configure.in.in | egrep "^#MIN_CONFI(G|G\(.*\))$$" > /dev/null; then \
joachim99@2 234 echo $$admindir/configure.in.min >> configure.files ;\
joachim99@2 235 fi
joachim99@2 236 @test -f configure.in.in && echo configure.in.in >> configure.files
joachim99@2 237 @list=`find . -name "configure.in.in" | sort`; \
joachim99@2 238 for i in $$list; do if test -f $$i && test ! `dirname $$i` = "." ; then \
joachim99@2 239 echo $$i >> configure.files ;\
joachim99@2 240 fi; done
joachim99@2 241 @if test -f configure.in.mid ; then echo configure.in.mid >> configure.files ; fi
joachim99@2 242 @if test -f configure.in.bot ; then echo configure.in.bot >> configure.files ; fi
joachim99@2 243
joachim99@2 244 subdirs:
joachim99@2 245 @files=`ls -1 | sort`; \
joachim99@2 246 dirs= ;\
joachim99@2 247 lib_dirs= ;\
joachim99@2 248 first_dirs= ;\
joachim99@2 249 last_dirs= ;\
joachim99@2 250 compilefirst=`grep '^COMPILE_FIRST[ ]*=' Makefile.am | \
joachim99@2 251 sed -e 's#^COMPILE_FIRST[ ]*=[ ]*#|#' | sed -e 's#$$#|#' | sed -e 's# #|#g'`;\
joachim99@2 252 compilelast=`grep '^COMPILE_LAST[ ]*=' Makefile.am | \
joachim99@2 253 sed -e 's#^COMPILE_LAST[ ]*=[ ]*#|#' | sed -e 's#$$#|#' | sed -e 's# #|#g'`;\
joachim99@2 254 for i in $$files; do if test -d $$i; then \
joachim99@2 255 if test -f $$i/Makefile.am; then \
joachim99@2 256 if echo $$compilefirst | grep "|$$i|" >/dev/null; then \
joachim99@2 257 first_dirs="$$first_dirs $$i" ;\
joachim99@2 258 elif echo $$compilelast | grep "|$$i|" >/dev/null; then \
joachim99@2 259 last_dirs="$$last_dirs $$i" ; \
joachim99@2 260 else dirs="$$dirs $$i" ;\
joachim99@2 261 fi ;\
joachim99@2 262 fi ;\
joachim99@2 263 fi; \
joachim99@2 264 done ;\
joachim99@2 265 rm -f _SUBDIRS ;\
joachim99@2 266 for i in $$dirs; do \
joachim99@2 267 echo $$i >> ./_SUBDIRS; \
joachim99@2 268 done
joachim99@2 269 @if test -r subdirs && diff subdirs _SUBDIRS > /dev/null; then \
joachim99@2 270 rm -f _SUBDIRS; \
joachim99@2 271 fi
joachim99@2 272 @test -r _SUBDIRS && mv _SUBDIRS subdirs || true
joachim99@2 273
joachim99@2 274 package-merge:
joachim99@2 275 @catalogs='$(POFILES)'; \
joachim99@2 276 for cat in $$catalogs; do \
joachim99@2 277 echo $$cat $$name; \
joachim99@2 278 msgmerge -o $$cat.new $$cat $(PACKAGE).pot ; \
joachim99@2 279 if test -s $$cat.new; then \
joachim99@2 280 grep -v "\"POT-Creation" $$cat.new > $$cat.new.2 ; \
joachim99@2 281 grep -v "\"POT-Creation" $$cat >> $$cat.new.1; \
joachim99@2 282 if diff $$cat.new.1 $$cat.new.2; then \
joachim99@2 283 rm $$cat.new; \
joachim99@2 284 else \
joachim99@2 285 mv $$cat.new $$cat ; \
joachim99@2 286 fi; \
joachim99@2 287 rm -f $$cat.new.1 $$cat.new.2 ;\
joachim99@2 288 fi ;\
joachim99@2 289 done
joachim99@2 290
joachim99@2 291
joachim99@2 292 package-messages:
joachim99@2 293 @rm -rf po.backup ;\
joachim99@2 294 mkdir po.backup ;\
joachim99@2 295 for i in `ls -1 po/*.pot 2>/dev/null | sed -e "s#po/##"`; do \
joachim99@2 296 egrep -v '^#([^:]|$)' po/$$i | egrep '^.*[^ ]+.*$$' | grep -v "\"POT-Creation" > po.backup/$$i ; \
joachim99@2 297 cp po/$$i po.backup/backup_$$i ; \
joachim99@2 298 touch -r po/$$i po.backup/backup_$$i ;\
joachim99@2 299 rm po/$$i ;\
joachim99@2 300 done
joachim99@2 301 @podir=$${podir:-$$PWD/po} ;\
joachim99@2 302 files=`find . -name Makefile.am | xargs egrep -l '^messages:' `; \
joachim99@2 303 dirs=`for i in $$files; do echo \`dirname $$i\`; done`; \
joachim99@2 304 tmpname="$$PWD/messages.log" ;\
joachim99@2 305 if test -z "$$EXTRACTRC"; then EXTRACTRC=extractrc ; fi ;\
joachim99@2 306 if test -z "$$PREPARETIPS"; then PREPARETIPS=preparetips ; fi ;\
joachim99@2 307 export EXTRACTRC PREPARETIPS ;\
joachim99@2 308 for subdir in $$dirs; do \
joachim99@2 309 test -z "$$VERBOSE" || echo "Making messages in $$subdir"; \
joachim99@2 310 (cd $$subdir ;\
joachim99@2 311 if test -n "`grep -e '^messages:.*rc.cpp' Makefile.am`"; then \
joachim99@2 312 $$EXTRACTRC *.rc *.ui > rc.cpp ;\
joachim99@2 313 else \
joachim99@2 314 candidates=`ls -1 *.rc *.ui 2>/dev/null` ;\
joachim99@2 315 if test -n "$$candidates"; then \
joachim99@2 316 echo "$$subdir has *.rc or *.ui files, but not correct messages line" ;\
joachim99@2 317 fi ;\
joachim99@2 318 fi ;\
joachim99@2 319 if test -n "`grep -r KAboutData *.c* *.C* 2>/dev/null`"; then \
joachim99@2 320 echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > _translatorinfo.cpp ;\
joachim99@2 321 else echo " " > _translatorinfo.cpp ;\
joachim99@2 322 fi; \
joachim99@2 323 perl -e '$$mes=0; while (<STDIN>) { if (/^messages:/) { $$mes=1; print $$_; next; } if ($$mes) { if (/$$\\(XGETTEXT\)/ && / -o/) { s/ -o \$$\(podir\)/ _translatorinfo.cpp -o \$$\(podir\)/ } print $$_; } else { print $$_; } }' < Makefile.am > _transMakefile ;\
joachim99@2 324 $(MAKE) -s -f _transMakefile podir=$$podir EXTRACTRC="$$EXTRACTRC" PREPARETIPS="$$PREPARETIPS" \
joachim99@2 325 XGETTEXT="$${XGETTEXT:-xgettext} -C -ki18n -ktr2i18n \
joachim99@2 326 -kI18N_NOOP -ktranslate -kaliasLocale \
joachim99@2 327 -x $${includedir:-$$KDEDIR/include}/kde.pot" \
joachim99@2 328 messages ) 2>&1 | grep -v '^make\[1\]' > $$tmpname; \
joachim99@2 329 test -s $$tmpname && (echo $$subdir ; cat $$tmpname) ;\
joachim99@2 330 test ! -f $$subdir/rc.cpp || rm -f $$subdir/rc.cpp ;\
joachim99@2 331 rm -f $$subdir/_translatorinfo.cpp ;\
joachim99@2 332 rm -f $$subdir/_transMakefile ;\
joachim99@2 333 done
joachim99@2 334 rm -f $$tmpname
joachim99@2 335 @for i in `ls -1 po.backup/*.pot 2>/dev/null | sed -e "s#po.backup/##" | egrep -v '^backup_'`; do \
joachim99@2 336 if test ! -f po/$$i; then echo "disappeared: $$i"; fi ;\
joachim99@2 337 done
joachim99@2 338 @for i in `ls -1 po/*.pot 2>/dev/null | sed -e "s#po/##"`; do \
joachim99@2 339 egrep -v '^#([^:]|$)' po/$$i | egrep '^.*[^ ]+.*$$' | grep -v "\"POT-Creation" > temp.pot ;\
joachim99@2 340 if test -f po.backup/$$i && test -n "`diff temp.pot po.backup/$$i`"; then \
joachim99@2 341 echo "will update $$i"; \
joachim99@2 342 msgmerge -q po.backup/backup_$$i po/$$i > temp.pot ;\
joachim99@2 343 mv temp.pot po/$$i; \
joachim99@2 344 else \
joachim99@2 345 if test -f po.backup/backup_$$i; then \
joachim99@2 346 test -z "$$VERBOSE" || echo "I'm restoring $$i" ;\
joachim99@2 347 mv po.backup/backup_$$i po/$$i; \
joachim99@2 348 rm po.backup/$$i; \
joachim99@2 349 else \
joachim99@2 350 echo "will add $$i" ;\
joachim99@2 351 fi ;\
joachim99@2 352 fi ;\
joachim99@2 353 done
joachim99@2 354 @rm -f temp.pot
joachim99@2 355 @rm -rf po.backup
joachim99@2 356
joachim99@2 357 test:
joachim99@2 358 perl -e '$$mes=0; while (<STDIN>) { if (/^messages:/) { $$mes=1; print $$_; next; } if ($$mes) { if (! /^\t/) { exit(0); } if (/$$\\(XGETTEXT\)/ && / -o/) { s/ -o/ _translatorinfo.cpp -o/ } print $$_; } }' < Makefile.am
joachim99@2 359
joachim99@2 360 .SILENT:
joachim99@2 361
joachim99@2 362 .PHONY: cvs test dist cvs-clean package-merge package-messages
joachim99@2 363