]> Pileus Git - ~andy/sunrise/commitdiff
make sunrise-commit avn add the files before generating the ChangeLog
authorStefan Schweizer <genstef@gentoo.org>
Mon, 17 Jul 2006 22:28:48 +0000 (22:28 +0000)
committerStefan Schweizer <genstef@gentoo.org>
Mon, 17 Jul 2006 22:28:48 +0000 (22:28 +0000)
svn path=/sunrise/; revision=644

scripts/echangelog

index 5ab9204e2c7c81784b2a57bde80158cfd13efeb9..4b4bd82698bdd47a6d01115034cf650c63642ab1 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 => "echo M $(ls -tr *.ebuild | tail -n 1)",
+                        status => "echo M $(ls -tr *.ebuild | tail -n 1)",
+                        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