[commit: ghc] master: Do not use basename() (33350ea)

git at git.haskell.org git at git.haskell.org
Sat Apr 19 14:15:39 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/33350eab727a24440ee583b854c6643d334eb75d/ghc

>---------------------------------------------------------------

commit 33350eab727a24440ee583b854c6643d334eb75d
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Sat Apr 19 16:14:38 2014 +0200

    Do not use basename()


>---------------------------------------------------------------

33350eab727a24440ee583b854c6643d334eb75d
 sync-all |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sync-all b/sync-all
index ba80cfe..e43a6f6 100755
--- a/sync-all
+++ b/sync-all
@@ -1002,7 +1002,7 @@ END {
         );
     for (@obsolete_dirs) {
         my ($dir, $hash) = $_;
-        my $name = basename $dir;
+        my $name = $dir =~ m!/([^/]+)$!;
         message "== Checking for old $name repo";
         if (-d "$dir/.git") {
             chdir($dir);



More information about the ghc-commits mailing list