PageRenderTime 147ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/bin/old/checkdotfiles.pl

https://bitbucket.org/Ogion/dotfiles
Perl | 24 lines | 19 code | 4 blank | 1 comment | 1 complexity | 40479591889381a3f5a485c9cd44bb78 MD5 | raw file
  1. #!/usr/bin/perl
  2. use common::sense;
  3. my %filehash = (
  4. '/home/ogion/bitbucket/dotfiles/xmodmaprc' => '/home/ogion/.xmodmaprc',
  5. '/home/ogion/bitbucket/dotfiles/vimperatorrc' => '/home/ogion/.vimperatorrc',
  6. '/home/ogion/bitbucket/dotfiles/vimperatorrc.local' => '/home/ogion/.vimperatorrc.local',
  7. '/home/ogion/bitbucket/dotfiles/htoprc' => '/home/ogion/.htoprc',
  8. '/home/ogion/bitbucket/dotfiles/fonts.conf' => '/home/ogion/.fonts.conf',
  9. '/home/ogion/bitbucket/dotfiles/Xdefaults' => '/home/ogion/.Xdefaults',
  10. '/home/ogion/bitbucket/dotfiles/zshrc' => '/home/ogion/.zshrc',
  11. '/home/ogion/bitbucket/dotfiles/xinitrc' => '/home/ogion/.xinitrc',
  12. '/home/ogion/bitbucket/dotfiles/vimrc' => '/home/ogion/.vimrc',
  13. '/home/ogion/bitbucket/dotfiles/conkyrc' => '/home/ogion/.conkyrc',
  14. '/home/ogion/bitbucket/dotfiles/xmobarrc' => '/home/ogion/.xmobarrc',
  15. );
  16. my @repofiles = keys %filehash;
  17. foreach (@repofiles) {
  18. my $thisone = $_;
  19. print $thisone, " and ", $filehash{$thisone}, " do not have matching md5sums!\n" if (`md5sum $thisone | cut -d ' ' -f 1` ne `md5sum $filehash{$thisone} | cut -d ' ' -f 1`);
  20. }