Add .fluxbox/keys.
[dotfiles-framework.git] / bin / dotfiles.sh
1 #!/bin/bash
2
3 if [ -z "${DOTFILES_DIR}" ]; then
4     echo 'DOTFILES_DIR is not set.  Bailing out.'
5     exit 1
6 fi
7
8 cd "${DOTFILES_DIR}" || exit 1
9
10 # Update once a week from our remote repository.  Mark updates by
11 # touching this file.
12 UPDATE_FILE="updated.$(date +%U)"
13
14 if [ ! -e "${UPDATE_FILE}" ]; then
15     echo "update dotfiles"
16     rm -f updated.* 2>/dev/null
17     touch "${UPDATE_FILE}"
18     ./bin/fetch.sh || exit 1
19     ./bin/patch.sh || exit 1
20     ./bin/link.sh || exit 1
21     echo "dotfiles updated"
22 fi