Makefile (327B)
1 .POSIX: 2 3 SRC = user.js 4 FIREFOXDIR = ${HOME}/.mozilla/firefox 5 PROFILE != awk '/Default=[A-z0-9][A-z0-9]+/ {sub(/.*=/, "", $$0); print $$0}' ${FIREFOXDIR}/profiles.ini 6 7 install: ${SRC} 8 cp ${SRC} ${FIREFOXDIR}/${PROFILE}/ 9 10 uninstall: 11 for f in ${SRC}; do \ 12 rm ${FIREFOXDIR}/${PROFILE}/"$$f"; \ 13 done 14 15 .PHONY: install uninstall