summary refs log tree commit diff
path: root/install.sh
blob: 72214258ec480e0a71f9fab4e969b8dbbf97e2c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# Create symlinks in ~ for files in the current directory.

set -e

error() {
  echo "$1"
  exit 1
}

paths=$(find $PWD -type f -not \( -path '*/.git/*' -o -path '*/Library/*' -o -name '.*.sw?' -o -name '.gitignore' -o -name 'README.md' -o -name '*.sh' -o -name '*.plist' \))

for source_path in $paths; do
  rel_path="${source_path#$PWD/}"
  dest_path="$HOME/$rel_path"

  [ -h "$dest_path" ] && continue
  [ -e "$dest_path" ] && error "$dest_path exists"

  mkdir -p "$(dirname $dest_path)"
  ln -s "$source_path" "$dest_path"
  echo "$rel_path"
done
zseek.3?id=a011202e9b2ca54c1f77a8257ba6aafd72f6c9aa&follow=1'>Add gztell(3) to gzseek.3June McEnroe 2018-11-13Add gzseek.3June McEnroe 2018-11-13Add gzflush.3June McEnroe 2018-11-13Fix spacing after parenthetical sentencesJune McEnroe 2018-11-13Add gzungetc.3June McEnroe 2018-11-13Add gzgetc.3June McEnroe 2018-11-13Add gzputc.3June McEnroe 2018-11-13Add gzgets.3June McEnroe 2018-11-13Add gzputs.3June McEnroe 2018-11-13Add gzprintf.3June McEnroe 2018-11-13Add gzfwrite.3June McEnroe 2018-11-13Add gzwrite.3June McEnroe 2018-11-12Add gzfread.3June McEnroe 2018-11-12Add gzread.3June McEnroe 2018-11-12Add gzsetparams.3June McEnroe 2018-11-12Add gzbuffer.3June McEnroe 2018-11-12Add gzdopen to gzopen.3June McEnroe 2018-11-12Add gzopen.3June McEnroe 2018-11-12Add inflateBackEnd.3June McEnroe 2018-11-12Add inflateBack.3June McEnroe 2018-11-12Add inflateBackInit.3June McEnroe 2018-11-11Add inflateGetHeader.3June McEnroe 2018-11-11Add inflateMark.3June McEnroe 2018-11-11Add inflatePrime.3June McEnroe 2018-11-11Add inflateReset.3June McEnroe 2018-11-11Add inflateCopy.3June McEnroe 2018-11-11Add inflateSync.3June McEnroe 2018-11-11Add inflateGetDictionary.3June McEnroe 2018-11-11Add inflateSetDictionary.3June McEnroe 2018-11-11Add inflateInit2.3June McEnroe