new-words
annotate INSTALL.sh @ 46:bf0aa8e3c1ce
misc scripts added: categorized.pl; mw-shell; zubrator.py
author | Igor Chubin <igor@chub.in> |
---|---|
date | Fri Feb 04 06:39:25 2011 +0100 (2011-02-04) |
parents | 0ff259b8b6a3 |
children | 04b0280aa883 |
rev | line source |
---|---|
igor@8 | 1 #!/bin/sh |
igor@8 | 2 |
igor@19 | 3 if [ "$UID" = 0 ] |
igor@8 | 4 then |
igor@8 | 5 DEST=/usr/local/bin/ |
igor@8 | 6 else |
igor@8 | 7 DEST=~/bin/ |
igor@8 | 8 mkdir -p ~/bin/ |
igor@8 | 9 fi |
igor@8 | 10 |
igor@8 | 11 echo Installing new-words to "$DEST" |
igor@8 | 12 set -e |
igor@8 | 13 cp en.sh "${DEST}"/en |
igor@8 | 14 cp grep-sentences.pl "${DEST}"/grep-sentences |
igor@8 | 15 cp learn-words.sh "${DEST}"/learn-words |
igor@8 | 16 cp new-words.sh "${DEST}"/new-words |
igor@8 | 17 chmod +x ${DEST}/grep-sentences ${DEST}/learn-words ${DEST}/new-words ${DEST}/en |
igor@8 | 18 echo Done. |
igor@8 | 19 |