Include glade-2(1) --write-source support.
[macros.git] / AutoGen.pm
index 0947a21..fcd9374 100644 (file)
@@ -59,6 +59,9 @@ Beware: '.basename($0).' is a tool only for maintainers!
 Supported parameters:
  --rpm       Build RPM packages locally (needs /usr/src/(redhat|packages)/ access)
  --rpmtest   Build RPM like "rpm" but w/o gpg/pgp signing
+ --deb       Build DEB packages locally
+ --debtest   Build DEB like "deb" but w/o gpg/pgp signing
+ --dist      Prepare all build files but do not run the final "./configure"
  --clean     Standard cleanup method
  --fullclean Like clean but even the .cvsignore files are removed
  --copy      Behave exactly like in default mode but copy all instead of symlinks
@@ -270,7 +273,7 @@ my($class,%args)=@_;
        _system "make distdir";
        # Copy 'orig' archive after &_prepdist which would delete it.
        my @origs;
-       for my $glob ("orig-$name-*.tar.{gz,Z}") {
+       for my $glob ("orig-$name-*.tar.{gz,Z,bz2}") {
                @origs=glob $glob;
                if (@origs) {
                        confess "Invalid glob $glob: ".join(",",@origs) if 1!=@origs;
@@ -344,6 +347,7 @@ sub _cleanfiles
                                                ./debian/tmp ./debian/<name>
                                                ./<name>*_[0-9]*
                                                ./macros/macros.dep
+                                               ./macros/glade-w.sh
                                                ./po/Makefile.in.in ./po/POTFILES* ./po/cat-id-tbl.c ./po/cat-id-tbl.tmp
                                                ./po/*.gmo ./po/*.mo ./po/stamp-cat-id ./po/<name>.pot ./po/ChangeLog
                                                ./po/Makevars ./po/Makevars.template ./po/Rules-quot ./po/*.sed ./po/*.sin ./po/*.header
@@ -588,6 +592,7 @@ my($class,%options)=@_;
      cat $tmp/out
      rm -f $tmp/out
 CONFIGURE_SUBST_X_EOF
+       _remove "nocheck","./configure.orig";   # It is usually produced by 'CONFIGURE_SUBST_X'.
        # Why it is left there after RedHat autoconf-2.53-8 ?
        _remove "nocheck",\1,"autom4te-*.cache";