]> xenbits.xensource.com Git - people/andrewcoop/hwloc.git/commitdiff
update-my-copyright.pl: update to git releases that don't prefix git status output...
authorBrice Goglin <Brice.Goglin@inria.fr>
Thu, 16 Jan 2014 13:38:10 +0000 (14:38 +0100)
committerBrice Goglin <Brice.Goglin@inria.fr>
Thu, 16 Jan 2014 14:06:19 +0000 (15:06 +0100)
contrib/update-my-copyright.pl

index 8b545957e2dff6b340164c36762fe09461ef1589..85df059f2ab14ae62ab97ce6d8444d790c04002b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 #
 # Copyright (c) 2010-2013 Cisco Systems, Inc.  All rights reserved.
-# Copyright (c) 2011-2013 Inria.  All rights reserved.
+# Copyright (c) 2011-2014 Inria.  All rights reserved.
 # $COPYRIGHT$
 #
 
@@ -83,7 +83,7 @@ print "==> Top-level hwloc dir: $top\n";
 print "==> Current directory: $start\n";
 
 my $cmd;
-$cmd = "LANG=C git status . | sed -n -e 's/^\#[        ]*modified:[    ]*/M /p' -e 's/^\#[     ]* new file:[   ]*/A /p'"
+$cmd = "LANG=C git status . | sed -n -r -e 's/^\#?[    ]*modified:[    ]*/M /p' -e 's/^\#?[    ]* new file:[   ]*/A /p'"
     if (-d "$top/.git" && ! -d "$top/.svn");
 die "Can't find git meta dir"
     if (!defined($cmd));