Fix signed/unsigned comparisions.
[kdbg.git] / admin / cvs.sh
blob58bc25b40952d9b1802a9d05834b7898796f32c5
1 #! /bin/sh
3 # cvs.sh
5 # This file contains support code from Makefile.common
6 # It defines a shell function for each known target
7 # and then does a case to call the correct function.
9 call_and_fix_autoconf()
11 $AUTOCONF || exit 1
12 if test -r configure.in.in ; then
13 perl -pi -e "print \"if test \\\"x\\\$with_fast_perl\\\" = \\\"xyes\\\"; then\
14 \\n perl -i.bak \\\$ac_aux_dir/conf.change.pl \\\$CONFIG_STATUS\
15 \\\\\\n || mv \\\$CONFIG_STATUS.bak \\\$CONFIG_STATUS\
16 \\n rm -f \\\$CONFIG_STATUS.bak\\nfi\
17 \\n\" if /^\\s*chmod\\s+.*\\+x\\s+.*CONFIG_STATUS/; s,^#line.*LINENO.*\$,/* \$& */, ;" configure
21 strip_makefile()
23 if test ! -f $makefile_wo; then
24 perl -e '$in=0; while ( <> ) { $in = 1 if ($_ =~ m/^if / ); print $_ unless ($in || $_ =~ m/^include /); $in = 0 if ($_ =~ m/^endif/); }' < $makefile_am > $makefile_wo
28 check_autotool_versions()
30 required_autoconf_version="2.53 or newer"
31 AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1`
32 case $AUTOCONF_VERSION in
33 Autoconf*2.5* | autoconf*2.5* | autoconf*2.6* ) : ;;
34 "" )
35 echo "*** AUTOCONF NOT FOUND!."
36 echo "*** KDE requires autoconf $required_autoconf_version"
37 exit 1
39 * )
40 echo "*** YOU'RE USING $AUTOCONF_VERSION."
41 echo "*** KDE requires autoconf $required_autoconf_version"
42 exit 1
44 esac
46 AUTOHEADER_VERSION=`$AUTOHEADER --version | head -n 1`
47 case $AUTOHEADER_VERSION in
48 Autoconf*2.5* | autoheader*2.5* | autoheader*2.6* ) : ;;
49 "" )
50 echo "*** AUTOHEADER NOT FOUND!."
51 echo "*** KDE requires autoheader $required_autoconf_version"
52 exit 1
54 * )
55 echo "*** YOU'RE USING $AUTOHEADER_VERSION."
56 echo "*** KDE requires autoheader $required_autoconf_version"
57 exit 1
59 esac
61 AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1`
62 required_automake_version="1.6.1 or newer"
63 case $AUTOMAKE_STRING in
64 automake*1.5d* | automake*1.5* | automake*1.5-* )
65 echo "*** YOU'RE USING $AUTOMAKE_STRING."
66 echo "*** KDE requires automake $required_automake_version"
67 exit 1
69 automake*1.6.* | automake*1.[789]* ) : ;;
70 "" )
71 echo "*** AUTOMAKE NOT FOUND!."
72 echo "*** KDE requires automake $required_automake_version"
73 exit 1
75 unsermake* ) :
76 echo "*** YOU'RE USING UNSERMAKE."
77 echo "*** GOOD LUCK!! :)"
79 * )
80 echo "*** YOU'RE USING $AUTOMAKE_STRING."
81 echo "*** KDE requires automake $required_automake_version"
82 exit 1
84 esac
85 unset required_automake_version
88 cvs()
90 check_autotool_versions
91 acinclude_m4
93 ### Make new subdirs and configure.in.
94 ### The make calls could be optimized away here,
95 ### with a little thought.
96 if test -r configure.in.in; then
97 rm -f configure.in
98 echo "*** Creating list of subdirectories"
99 create_subdirs
101 if test -r Makefile.am.in; then
102 echo "*** Creating Makefile.am"
103 if grep '\$(top_srcdir)/Makefile.am:' $makefile_am >/dev/null; then
104 strip_makefile
105 $MAKE -f $makefile_wo top_srcdir=. ./Makefile.am || exit 1
106 else
107 Makefile_am
110 configure_files
111 echo "*** Creating configure.in"
112 if grep '\$(top_srcdir)/configure.in:' $makefile_am >/dev/null; then
113 strip_makefile
114 $MAKE -f $makefile_wo top_srcdir=. ./configure.in || exit 1
115 else
116 configure_in
120 echo "*** Creating aclocal.m4"
121 $ACLOCAL $ACLOCALFLAGS || exit 1
122 echo "*** Creating configure"
123 call_and_fix_autoconf
125 if egrep "^AM_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
126 echo "*** Creating config.h template"
127 $AUTOHEADER || exit 1
130 echo "*** Creating Makefile templates"
131 $AUTOMAKE || exit 1
132 if test -z "$UNSERMAKE"; then
133 echo "*** Postprocessing Makefile templates"
134 perl -w admin/am_edit || exit 1
137 if egrep "^cvs-local:" $makefile_am >/dev/null; then \
138 strip_makefile
139 $MAKE -f $makefile_wo cvs-local top_srcdir=. || exit 1
142 echo "*** Creating date/time stamp"
143 touch stamp-h.in
145 echo "*** Finished"
146 echo " Don't forget to run ./configure"
147 echo " If you haven't done so in a while, run ./configure --help"
150 dist()
152 check_autotool_versions
155 ### First build all of the files necessary to do just "make"
157 acinclude_m4
158 if test -r configure.in.in; then
159 rm -f configure.in
160 create_subdirs
162 if test -r Makefile.am.in; then
163 if grep '\$(top_srcdir)/Makefile.am:' $makefile_am >/dev/null; then
164 strip_makefile
165 $MAKE -f $makefile_wo top_srcdir=. ./Makefile.am || exit 1
166 else
167 Makefile_am
170 configure_files
171 if grep '\$(top_srcdir)/configure.in:' $makefile_am >/dev/null; then
172 strip_makefile
173 $MAKE -f $makefile_wo top_srcdir=. ./configure.in || exit 1
174 else
175 configure_in
178 $ACLOCAL $ACLOCALFLAGS
179 if egrep "^AM_CONFIG_HEADER" configure.in >/dev/null 2>&1; then
180 echo "*** Creating config.h template"
181 $AUTOHEADER || exit 1
183 $AUTOMAKE --foreign
184 perl -w admin/am_edit
185 call_and_fix_autoconf
186 touch stamp-h.in
187 if grep "^cvs-local:" $makefile_am >/dev/null; then
188 strip_makefile
189 $MAKE -f $makefile_wo cvs-local top_srcdir=.
193 ### Then make messages
195 if test -d po; then
196 LIST=`find ./po -name "*.po"`
197 for i in $LIST; do
198 file2=`echo $i | sed -e "s#\.po#\.gmo#"`
199 msgfmt -o $file2 $i || touch $file2
200 done
202 if grep "^cvs-dist-local:" $makefile_am >/dev/null; then
203 strip_makefile
204 $MAKE -f $makefile_wo cvs-dist-local top_srcdir=.
208 subdir_dist()
210 $ACLOCAL $ACLOCALFLAGS
211 $AUTOHEADER
212 $AUTOMAKE
213 perl -w ../admin/am_edit --path=../admin
214 call_and_fix_autoconf
215 touch stamp-h.in
218 configure_in()
220 rm -f configure.in configure.in.new
221 kde_use_qt_param=
222 test -f configure.files || { echo "need configure.files for configure.in"; exit 1; }
223 list=`fgrep -v "configure.in.bot" < configure.files | fgrep -v "configure.in.mid"`
224 : > configure.in.new
225 for file in $list; do
226 echo "dnl =======================================================" >> configure.in.new
227 echo "dnl FILE: $file" >> configure.in.new
228 echo "dnl =======================================================" >> configure.in.new
229 echo "" >> configure.in.new
230 cat $file >> configure.in.new
231 done
232 echo "KDE_CREATE_SUBDIRSLIST" >> configure.in.new
233 if test -f Makefile.am.in; then
234 subdirs=`cat subdirs`
235 for dir in $subdirs; do
236 dir=`echo $dir | sed -e "s,[-+.],_,g"`
237 echo "AM_CONDITIONAL($dir""_SUBDIR_included, test \"x\$$dir""_SUBDIR_included\" = xyes)" >> configure.in.new
238 if test -f $dir/configure.in; then
239 echo "if test \"x\$$dir""_SUBDIR_included\" = xyes; then " >> configure.in.new
240 echo " AC_CONFIG_SUBDIRS($dir)" >> configure.in.new
241 echo "fi" >> configure.in.new
243 done
246 echo "AC_CONFIG_FILES([ Makefile ])" >> configure.in.new
247 if test -n "$UNSERMAKE"; then
248 echo "AC_CONFIG_FILES([ Makefile.rules ])" >> configure.in.new
249 echo "AC_CONFIG_FILES([ Makefile.calls ])" >> configure.in.new
252 if test -f inst-apps; then
253 topleveldirs=`cat inst-apps`
254 else
255 topleveldirs=
256 for dir in `ls -1d * | sort`; do
257 if test "$dir" != "debian" && test -d $dir; then
258 topleveldirs="$topleveldirs $dir"
260 done
263 for topleveldir in $topleveldirs; do
264 if test -f $topleveldir/configure.in; then
265 continue
267 if test -f $topleveldir/Makefile.am; then :; else
268 continue
271 mfs=`find $topleveldir -name Makefile.am -print | fgrep -v "/." | \
272 sed -e 's#\./##; s#/Makefile.am$##' | sort | sed -e 's#$#/Makefile#'`
273 for i in $mfs; do
274 echo "AC_CONFIG_FILES([ $i ])" >> configure.in.new
275 if test -n "$UNSERMAKE"; then
276 echo "AC_CONFIG_FILES([ $i.rules ])" >> configure.in.new
277 echo "AC_CONFIG_FILES([ $i.calls ])" >> configure.in.new
279 done
280 done
282 files=`cat configure.files`
283 list=`egrep '^dnl AC_OUTPUT\(.*\)' $files | sed -e "s#^.*dnl AC_OUTPUT(\(.*\))#\1#"`
284 for file in $list; do
285 echo "AC_CONFIG_FILES([ $file ])" >> configure.in.new
286 done
288 if test -n "$UNSERMAKE"; then
289 echo "AC_CONFIG_FILES([ MakeVars ])" >> configure.in.new
292 midfiles=`cat configure.files | fgrep "configure.in.mid"`
293 test -n "$midfiles" && cat $midfiles >> configure.in.new
295 echo "AC_OUTPUT" >> configure.in.new
296 modulename=
297 if test -f configure.in.in; then
298 if head -n 2 configure.in.in | egrep "^#MIN_CONFIG\(.*\)$" > /dev/null; then
299 kde_use_qt_param=`cat configure.in.in | sed -n -e "s/#MIN_CONFIG(\(.*\))/\1/p"`
301 if head -n 2 configure.in.in | egrep "^#MIN_CONFIG" > /dev/null; then
302 line=`grep "^AM_INIT_AUTOMAKE(" configure.in.in`
303 if test -n "$line"; then
304 modulename=`echo $line | sed -e "s#AM_INIT_AUTOMAKE(\([^,]*\),.*#\1#"`
305 VERSION=`echo $line | sed -e "s#AM_INIT_AUTOMAKE([^,]*, *\([^)]*\)).*#\1#"`
307 sed -e "s#AM_INIT_AUTOMAKE([^@].*#dnl PACKAGE set before#" \
308 configure.in.new > configure.in && mv configure.in configure.in.new
311 if test -z "$VERSION" || test "$VERSION" = "@VERSION@"; then
312 VERSION="\"3.2.1\""
314 if test -z "$modulename" || test "$modulename" = "@MODULENAME@"; then
315 modulename=`pwd`;
316 modulename=`basename $modulename`
317 esc_VERSION=`echo $VERSION | sed -e "s#[^.0-9a-zA-Z]##g"`
318 modulename=`echo $modulename | sed -e "s#-$esc_VERSION##"`
321 if test -n "$kde_use_qt_param"; then
322 sed -e "s#^dnl KDE_USE_QT#KDE_USE_QT($kde_use_qt_param)#" \
323 configure.in.new > configure.in && mv configure.in configure.in.new
325 sed -e "s#@MODULENAME@#$modulename#" configure.in.new |
326 sed -e "s#@VERSION@#$VERSION#" > configure.in
327 botfiles=`cat configure.files | egrep "configure.in.bot"`
328 test -n "$botfiles" && cat $botfiles >> configure.in
329 cat $admindir/configure.in.bot.end >> configure.in
330 rm -f configure.in.new
333 configure_files()
335 echo "*** Creating configure.files"
336 admindir=NO
337 for i in . .. ../.. ../../..; do
338 if test -x $i/admin; then admindir=$i/admin; break; fi
339 done
340 rm -f configure.files
341 touch configure.files
342 if test -f configure.in.in && head -n 2 configure.in.in | grep "^#MIN_CONFIG" > /dev/null; then
343 echo $admindir/configure.in.min >> configure.files
345 test -f configure.in.in && echo configure.in.in >> configure.files
346 # we collect files in the subdirs and do some sorting tricks, so subsubdirs come after subdirs
347 if test -f inst-apps; then
348 inst=`cat inst-apps`
349 list=""
350 for i in $inst; do
351 list="$list `find $i/ -name "configure.in.in" -o -name "configure.in.bot" -o -name "configure.in.mid" | \
352 sed -e "s,/configure,/aaaconfigure," | sort | sed -e "s,/aaaconfigure,/configure,"`"
353 done
354 else
355 list=`find . -name "configure.in.in" -o -name "configure.in.bot" -o -name "configure.in.mid" | \
356 sed -e "s,/configure,/aaaconfigure," | sort | sed -e "s,/aaaconfigure,/configure,"`
358 for i in $list; do if test -f $i && test `dirname $i` != "." ; then
359 echo $i >> configure.files
360 fi; done
361 test -f configure.in.mid && echo configure.in.mid >> configure.files
362 test -f configure.in.bot && echo configure.in.bot >> configure.files
363 if test ! -s configure.files; then
364 echo "There are no files to build a configure. Please check your checkout."
365 exit 1
369 create_subdirs()
371 if grep '\$(top_srcdir)/subdirs:' $makefile_am >/dev/null; then
372 # as many modules contain rules to create subdirs without any
373 # dependencies make won't create it unless there is no file.
374 # so we check if that's a dummy rule or one that works
375 rm -f subdirs.cvs.sh.$$
376 if test -f subdirs; then
377 mv subdirs subdirs.cvs.sh.$$
379 strip_makefile
380 $MAKE -f $makefile_wo top_srcdir=. ./subdirs || exit 1
381 if test -f subdirs.cvs.sh.$$; then
382 if test -s subdirs; then
383 rm subdirs.cvs.sh.$$
384 else
385 mv subdirs.cvs.sh.$$ subdirs
388 else
389 subdirs
393 subdirs()
395 dirs=
396 idirs=
397 if test -f inst-apps; then
398 idirs=`cat inst-apps`
399 else
400 idirs=`ls -1 | sort`
403 compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -n 1`
404 compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -n 1`
405 for i in $idirs; do
406 if test -f $i/Makefile.am; then
407 case " $compilefirst $compilelast " in
408 *" $i "*) ;;
409 *) dirs="$dirs $i"
410 esac
412 done
414 : > ./_SUBDIRS
416 for d in $compilefirst; do
417 echo $d >> ./_SUBDIRS
418 done
420 (for d in $dirs; do
421 list=`sed -ne "s#^COMPILE_BEFORE_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1`
422 for s in $list; do
423 echo $s $d
424 done
425 list=`sed -ne "s#^COMPILE_AFTER_$d""[ ]*=[ ]*##p" $makefile_am | head -n 1`
426 for s in $list; do
427 echo $d $s
428 done
429 echo $d $d
430 done ) | tsort >> ./_SUBDIRS
432 for d in $compilelast; do
433 echo $d >> ./_SUBDIRS
434 done
436 if test -r subdirs && cmp -s subdirs _SUBDIRS; then
437 rm -f _SUBDIRS
439 test -r _SUBDIRS && mv _SUBDIRS subdirs || true
442 Makefile_am()
444 if test -f Makefile.am.in; then
445 compilefirst=`sed -ne 's#^COMPILE_FIRST[ ]*=[ ]*##p' $makefile_am | head -n 1`
446 compilelast=`sed -ne 's#^COMPILE_LAST[ ]*=[ ]*##p' $makefile_am | head -n 1`
448 idirs=
449 dirs=
450 if test -f inst-apps; then
451 idirs=`cat inst-apps`
452 else
453 idirs=`cat subdirs`
455 for i in $idirs; do
456 case " $compilefirst $compilelast " in
457 *" $i "*) ;;
458 *) dirs="$dirs $i"
459 esac
460 done
462 if test -n "$UNSERMAKE"; then
463 cat Makefile.am.in > Makefile.am
464 topsubdirs=
465 for i in $compilefirst $dirs $compilelast; do
466 vari=`echo $i | sed -e "s,[-+],_,g"`
467 echo "if $vari""_SUBDIR_included" >> Makefile.am
468 echo "$vari""_SUBDIR=$i" >> Makefile.am
469 echo "endif" >> Makefile.am
470 topsubdirs="$topsubdirs \$($vari""_SUBDIR)"
471 done
472 echo "SUBDIRS=$topsubdirs" >> Makefile.am
473 else
474 cat Makefile.am.in | \
475 sed -e 's,^\s*\(COMPILE_BEFORE.*\),# \1,' | \
476 sed -e 's,^\s*\(COMPILE_AFTER.*\),# \1,' > Makefile.am
477 echo "SUBDIRS="'$(TOPSUBDIRS)' >> Makefile.am
482 acinclude_m4()
484 echo "*** Creating acinclude.m4"
485 adds=
486 if grep '\$(top_srcdir)/acinclude.m4:' $makefile_am >/dev/null; then
487 strip_makefile
488 rm -f acinclude.m4
489 $MAKE -f $makefile_wo top_srcdir=. ./acinclude.m4 || exit 1
490 adds=`grep '\$(top_srcdir)/acinclude.m4:' $makefile_wo | sed -e 's,^[^:]*: *,,; s,\$(top_srcdir),.,g'`
491 else
492 rm -f acinclude.m4
494 # if it wasn't created up to now, then we do it better
495 if test ! -f acinclude.m4; then
496 cat admin/acinclude.m4.in admin/libtool.m4.in $adds > acinclude.m4
500 cvs_clean()
502 if test -d CVS; then :; else
503 echo "You don't have a toplevel CVS directory."
504 echo "You most certainly didn't use cvs to get these sources."
505 echo "But this function depends on cvs's information."
506 exit 1
508 perl $admindir/cvs-clean.pl
511 package_merge()
513 catalogs=$POFILES
514 for cat in $catalogs; do
515 msgmerge -o $cat.new $cat $PACKAGE.pot
516 if test -s $cat.new; then
517 grep -v "\"POT-Creation" $cat.new > $cat.new.2
518 grep -v "\"POT-Creation" $cat >> $cat.new.1
519 if diff $cat.new.1 $cat.new.2; then
520 rm $cat.new
521 else
522 mv $cat.new $cat
524 rm -f $cat.new.1 $cat.new.2
526 done
529 package_messages()
531 rm -rf po.backup
532 mkdir po.backup
534 for i in `ls -1 po/*.pot 2>/dev/null | sed -e "s#po/##"`; do
535 egrep -v '^#([^:]|$)' po/$i | egrep '^.*[^ ]+.*$' | grep -v "\"POT-Creation" > po.backup/$i
536 cat po/$i > po.backup/backup_$i
537 touch -r po/$i po.backup/backup_$i
538 rm po/$i
539 done
541 podir=${podir:-$PWD/po}
542 files=`find . -name Makefile.am | xargs egrep -l '^messages:' `
543 dirs=`for i in $files; do echo \`dirname $i\`; done`
544 tmpname="$PWD/messages.log"
545 if test -z "$EXTRACTRC"; then EXTRACTRC=extractrc ; fi
546 if test -z "$PREPARETIPS"; then PREPARETIPS=preparetips ; fi
547 export EXTRACTRC PREPARETIPS
549 for subdir in $dirs; do
550 test -z "$VERBOSE" || echo "Making messages in $subdir"
551 (cd $subdir
552 if test -n "`grep -e '^messages:.*rc.cpp' Makefile.am`"; then
553 $EXTRACTRC *.rc *.ui *.kcfg > rc.cpp
554 else
555 candidates=`ls -1 *.rc *.ui *.kcfg 2>/dev/null`
556 if test -n "$candidates"; then
557 echo "$subdir has *.rc, *.ui or *.kcfg files, but not correct messages line"
560 if test -n "`grep -r KAboutData *.c* *.C* 2>/dev/null`"; then
561 echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > _translatorinfo.cpp
562 else echo " " > _translatorinfo.cpp
564 perl -e '$mes=0; while (<STDIN>) { next if (/^(if\s|else\s|endif)/); if (/^messages:/) { $mes=1; print $_; next; } if ($mes) { if (/$\\(XGETTEXT\)/ && / -o/) { s/ -o \$\(podir\)/ _translatorinfo.cpp -o \$\(podir\)/ } print $_; } else { print $_; } }' < Makefile.am | egrep -v '^include ' > _transMakefile
566 $MAKE -s -f _transMakefile podir=$podir EXTRACTRC="$EXTRACTRC" PREPARETIPS="$PREPARETIPS" \
567 XGETTEXT="${XGETTEXT:-xgettext} -C -ki18n -ktr2i18n -kI18N_NOOP -kaliasLocale -x ${includedir:-${KDEDIR:-/usr/local/kde}/include}/kde.pot" \
568 messages
569 exit_code=$?
570 if test "$exit_code" != 0; then
571 echo "make exit code: $exit_code"
573 ) 2>&1 | grep -v '^make\[1\]' > $tmpname
574 test -s $tmpname && { echo $subdir ; cat "$tmpname"; }
575 test -f $subdir/rc.cpp && rm -f $subdir/rc.cpp
576 rm -f $subdir/_translatorinfo.cpp
577 rm -f $subdir/_transMakefile
578 done
579 rm -f $tmpname
580 for i in `ls -1 po.backup/*.pot 2>/dev/null | sed -e "s#po.backup/##" | egrep -v '^backup_'`; do
581 test -f po/$i || echo "disappeared: $i"
582 done
583 for i in `ls -1 po/*.pot 2>/dev/null | sed -e "s#po/##"`; do
584 sed -e 's,^"Content-Type: text/plain; charset=CHARSET\\n"$,"Content-Type: text/plain; charset=UTF-8\\n",' po/$i > po/$i.new && mv po/$i.new po/$i
585 msgmerge -q -o po/$i po/$i po/$i
586 egrep -v '^#([^:]|$)' po/$i | egrep '^.*[^ ]+.*$' | grep -v "\"POT-Creation" > temp.pot
587 if test -f po.backup/$i && test -n "`diff temp.pot po.backup/$i`"; then
588 echo "will update $i"
589 sed -e 's,^"Content-Type: text/plain; charset=CHARSET\\n"$,"Content-Type: text/plain; charset=UTF-8\\n",' po.backup/$backup_$i > po/$i.new && mv po/$i.new po.backup/backup_$i
590 msgmerge -q po.backup/backup_$i po/$i > temp.pot
591 mv temp.pot po/$i
592 else
593 if test -f po.backup/backup_$i; then
594 test -z "$VERBOSE" || echo "I'm restoring $i"
595 mv po.backup/backup_$i po/$i
596 rm po.backup/$i
597 else
598 echo "will add $i"
601 done
602 rm -f temp.pot
603 rm -rf po.backup
606 unset LC_ALL || :
607 unset LANG || :
608 unset LC_CTYPE || :
609 unset LANGUAGE || :
611 unset CDPATH || :
612 admindir=`echo "$0" | sed 's%[\\/][^\\/][^\\/]*$%%'`
613 test "x$admindir" = "x$0" && admindir=.
615 test "x$MAKE" = x && MAKE=make
616 makefile_am=Makefile.am
617 makefile_wo=Makefile.am.wo
618 if test -f Makefile.am.in; then
619 makefile_am=Makefile.am.in
620 makefile_wo=Makefile.am.in.wo
621 rm -f $makefile_wo
624 # Suck in the AUTOCONF detection code
625 . $admindir/detect-autoconf.sh
628 ### Main
631 arg=`echo $1 | tr '\-.' __`
632 case $arg in
633 cvs | dist | subdir_dist | configure_in | configure_files | subdirs | \
634 cvs_clean | package_merge | package_messages | Makefile_am | acinclude_m4 ) $arg ;;
635 configure ) call_and_fix_autoconf ;;
636 * ) echo "Usage: cvs.sh <target>"
637 echo "Target can be one of:"
638 echo " cvs cvs-clean dist"
639 echo " configure.in configure.files"
640 echo " package-merge package-messages"
641 echo ""
642 echo "Usage: anything but $1"
643 exit 1 ;;
644 esac
646 if test -f $makefile_wo; then
647 rm $makefile_wo
650 exit 0