Fixed building of Debian-native packages without any 'orig-*' archive.
[macros.git] / AutoGen.pm
index 1ebee43..09e2744 100644 (file)
@@ -296,6 +296,7 @@ my($class,%args)=@_;
                @subdirs=glob $glob;
                confess "Invalid glob $glob: ".join(",",@subdirs) if 1!=@subdirs;
                }
+       $base||=$subdirs[0];
        rename $subdirs[0],$base or confess "$!";
        _system(join(" ","cd ".$base.";dpkg-buildpackage",
                        "-rfakeroot",
@@ -886,7 +887,13 @@ Include both B<debian/changelog.in> and B<debian/changelog> to B<Makefile.am>.
 
 =item
 
-Use B<@VERSION_BASE@> in B<debian/changelog.in>.
+Include B<debian/changelog> to B<clean> field in B<autogen.pl>.
+
+=item
+
+Use B<@VERSION@> in B<debian/changelog.in>. Package will be built as
+Debian-native package (no I<.diff> file) as the patches are not just for Debian
+packages, it is a new package (read: dpkg does not support branch patches).
 
 =back