summaryrefslogtreecommitdiff
path: root/bin/src-register-all
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-07-29 22:40:52 +0100
committerSean Whitton <spwhitton@spwhitton.name>2019-07-29 22:53:14 +0100
commit41adf257e02082159d753aa73ae139664ef60cec (patch)
tree35935202baf84f1163b9892da48d8291a0f66d6e /bin/src-register-all
parent9f3efd212ec39b2ebf62aacd794850fcbcb2f546 (diff)
downloaddotfiles-41adf257e02082159d753aa73ae139664ef60cec.tar.gz
use normalise-mrconfig instead of a symlink
This means we can get rid of chain loading of ~/src/.mrconfig, which has various issues.
Diffstat (limited to 'bin/src-register-all')
-rwxr-xr-xbin/src-register-all5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/src-register-all b/bin/src-register-all
index 0c993097..5d5bae59 100755
--- a/bin/src-register-all
+++ b/bin/src-register-all
@@ -13,10 +13,7 @@ use File::chdir;
foreach my $f ( glob "$ENV{'HOME'}/src/*" ) {
my $short = basename($f);
next unless ( -d "$f/.git" || -d "$f/.hg" );
- unless ( (fgrep { /^\[$short\]$/ }
- "$ENV{'HOME'}/src/.mrconfig")
- || (fgrep { /^\[\$HOME\/src\/$short\]$/ }
- "$ENV{'HOME'}/.mrconfig") ) {
+ {
local $CWD = $f;
system "mr register >/dev/null";
die "failed to register ~/src/$short" unless ($? >> 8 == 0);