Merge branch 'master' of https://git.jamestechnotes.com/r/james/home/home
[james-home.git] / bin / fixups
blobe292cb5926b317f8e3ca9f032c593f258ee08eba
1 #!/bin/sh
2 set -e
3 # Can't just assume home is the current directory.
4 cd
6 [ -x $HOME/bin/fixshebang ] && ~/bin/fixshebang
7 [ -d $HOME/src/gnulib ] && ln -sf $HOME/src/gnulib/gnulib-tool $HOME/bin/gnulib-tool
9 if [ -e .cron-stage ]; then
10 "$HOME/bin/loadcron"
13 if [ -d .etc ]; then
14 .etc/fixups
15 "$HOME/bin/dircombine" '^\.' . .etc
16 "$HOME/bin/dircombine" '.*' .ssh ~/.etc/.ssh
19 if [ -d .plus ]; then
20 .plus/fixups
21 "$HOME/bin/dircombine" '^\.' . .plus
22 "$HOME/bin/dircombine" '.*' .config ~/.plus/.config
25 if [ -d .hide ]; then
26 .hide/fixups
27 "$HOME/bin/dircombine" '^\.' . .hide
28 "$HOME/bin/dircombine" '.*' .ssh ~/.hide/.ssh
31 if ! [ -d mnt ]; then
32 mkdir mnt
35 if ! [ -d tmp ]; then
36 mkdir tmp
38 chmod 700 tmp
40 if [ -d .gnupg ]; then
41 chmod 700 .gnupg
44 if [ -d Maildir ]; then
45 chmod 700 Maildir
48 if [ -d lib/gnucash ]; then
49 chmod 700 lib/gnucash
52 if [ -d mail ]; then
53 chmod 700 mail