install.sh 265 B

123456789101112
  1. #!/bin/sh
  2. if [ "$(id -u)" -ne 0 ]; then
  3. echo "This script must be run as root"
  4. exit 1
  5. fi
  6. install -vm 0755 spotfile "${DESTDIR}/usr/bin/spotfile"
  7. mkdir -pv "${DESTDIR}/usr/share/spotfile"
  8. install -vm 0644 spotfile.m4 "${DESTDIR}/usr/share/spotfile/spotfile.m4"