]> Pileus Git - ~andy/sunrise/blobdiff - scripts/echangelog
sunrise/sunrise/scripts/review: die if creating new local.use.desc fails
[~andy/sunrise] / scripts / echangelog
index 4d75c98d65247323ab4c9e4513733c1ce4242432..9e4cff8ec1f16b2dd26aeb82e0e42c13ce98aa6c 100755 (executable)
@@ -36,6 +36,11 @@ my %vcs =     ( cvs => { diff => "cvs -f -U0 diff",
                         status => "git up",
                         add => "git add",
                         skip => 0,
+                        entries => "wtf" },
+               nov => { diff => "",
+                        status => "",
+                        add => "",
+                        skip => 0,
                         entries => "wtf" }
 );
 
@@ -48,7 +53,8 @@ if ( -d "CVS" ) {
 } elsif ( -d '.git' ) {
     $vcs = "git";
 } else {
-    die "No CVS, .git, .svn directories found, what kind of repo is this?";
+    print STDERR "** NOTE: No CVS, .git, .svn directories found, cannot know modifications\n";
+    $vcs = "nov";
 }
 
 # Read the current ChangeLog
@@ -93,11 +99,11 @@ while (<C>) {
 
 # Separate out the trivial files for now
 @files = grep { 
-    !/files.digest|Manifest|ChangeLog/ or do { push @trivial, $_; 0; }
+    !/files.digest|Manifest|ChangeLog|^files$|^\.$/ or do { push @trivial, $_; 0; }
 } @files;
 
 @unknown = grep { 
-    !/files.digest|Manifest|ChangeLog/ or do { push @trivial, $_; 0; }
+    !/files.digest|Manifest|ChangeLog|^files$|^\.$/ or do { push @trivial, $_; 0; }
 } @unknown;
 
 # Don't allow any conflicts
@@ -207,9 +213,9 @@ sub sortfunc($$) {
 
 # Forget ebuilds that only have changed copyrights, unless that's all
 # the changed files we have
-
-@ebuilds = grep /\.ebuild$/, @files;
-@files = grep !/\.ebuild$/, @files;
+# does not work with svn TODO
+#@ebuilds = grep /\.ebuild$/, @files;
+#@files = grep !/\.ebuild$/, @files;
 
 if (@ebuilds) {
     open C, $vcs{$vcs}{diff}.@ebuilds." 2>&1 |" or die "Can't run: ".$vcs{$vcs}{diff}."$!\n";