git » fontconfig.git » main » tree

[main] / 40-fontconfig-config.script

#!/bin/bash

while read -r f; do
  link="${1:?}/${f##*/}"
  if [[ -e $f && ! -e $link ]]; then
    ln -sT "/$f" "$link"
  elif [[ ! -e $f && -L $link ]]; then
    rm -f "$link"
  fi
done

# vim:set sw=2 et: