new-words
annotate INSTALL.sh @ 64:c3adf6452eda
lingvo-en-ru.pl script moved to misc/
author | Igor Chubin <igor@chub.in> |
---|---|
date | Sat Nov 12 14:03:54 2011 +0100 (2011-11-12) |
parents | 416394a87d9f |
children |
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@57 | 11 echo Please install PyStemmer "(press ctrl-d to continue but don't forget to install PyStemmer python module)". |
igor@57 | 12 read |
igor@8 | 13 echo Installing new-words to "$DEST" |
igor@8 | 14 set -e |
igor@8 | 15 cp en.sh "${DEST}"/en |
igor@8 | 16 cp grep-sentences.pl "${DEST}"/grep-sentences |
igor@8 | 17 cp learn-words.sh "${DEST}"/learn-words |
igor@57 | 18 cp new-words.py "${DEST}"/new-words |
igor@8 | 19 chmod +x ${DEST}/grep-sentences ${DEST}/learn-words ${DEST}/new-words ${DEST}/en |
igor@8 | 20 echo Done. |
igor@8 | 21 |