#!/bin/sh # User-config--------------------------- PACKAGE_FILE="packages" EXCLUDE_FILES="${0#??}|$PACKAGE_FILE|.*.md$|.*README.org$|.git|screenshot.png" # -------------------------------------- if [ "$(dirname "$0")" != "." ]; then echo "Please run this script from the directory it resides." exit fi FILES="$(find . -type f \ | awk -v e="^($EXCLUDE_FILES)" 'substr($0, 3) !~ e { print $0 }')" help() { B=$(tput bold) U=$(tput smul) N=$(tput sgr0) cat << EOF ${B}NAME${N} dotfiles - file copy script for the dotfiles repository ${B}SYNOPSIS${N} ./dotfiles.sh