Skip to content

Commit

Permalink
Updated install script
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Feb 19, 2022
1 parent c1e01d7 commit c620581
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
ROOT=$(dirname "$0")
PKGNAME=${PKGNAME:-"dots"}

rm -rf "${PKGDIR}/opt/${PKGNAME}" \
"${PKGDIR}/usr/bin/dots" \
"${PKGDIR}/usr/bin/dots-scripts" \
"${PKGDIR}/usr/share/licenses/${PKGNAME}/" \
"${PKGDIR}/usr/share/doc/${PKGNAME}/"

install -d "${PKGDIR}/opt/${PKGNAME}"
cp -Rf "${ROOT}"/* "${PKGDIR}/opt/${PKGNAME}"
install -Dm644 -t LICENSE "${PKGDIR}/usr/share/licenses/${PKGNAME}/"
install -Dm644 -t README.md "${PKGDIR}/usr/share/doc/${PKGNAME}/"
install -Dm755 -t dots "${PKGDIR}/usr/bin/"
install -Dm755 -t dots-scripts "${PKGDIR}/usr/bin/"
install -Dm644 "${ROOT}"/LICENSE -t "${PKGDIR}/usr/share/licenses/${PKGNAME}/"
install -Dm644 "${ROOT}"/README.md -t "${PKGDIR}/usr/share/doc/${PKGNAME}/"
install -Dm755 "${ROOT}"/dots -t "${PKGDIR}/usr/bin/"
install -Dm755 "${ROOT}"/dots-scripts -t "${PKGDIR}/usr/bin/"

0 comments on commit c620581

Please sign in to comment.