Annotation of researchv8dc/cmd/wwb/spelladd.sh, revision 1.1.1.1

1.1       root        1: # NOTICE-NOT TO BE DISCLOSED OUTSIDE BELL SYS EXCEPT UNDER WRITTEN AGRMT
                      2: trap 'rm -f /tmp/$$spadd; trap 0;exit' 0 1 2 3 15
                      3: for i in $*
                      4:        do case $i in
                      5:        -ver) echo $0 version 2.0;exit;;
                      6:        -flags) echo $0 \[-ver\] \[-flags\] word1 word2 ... wordn;exit;;
                      7:        -*) echo unknown spelladd flag $i;exit;;
                      8:        esac
                      9: done
                     10: if [ -f $HOME/lib ]
                     11: then echo "Spelladd can't make the directory $HOME/lib for you 
                     12: because you already have a file named $HOME/lib.
                     13: 
                     14: Change the name of the file to something else and run the program again."
                     15:        exit 1
                     16: else   if [ ! -d $HOME/lib ]
                     17:        then echo spelladd is making a directory: $HOME/lib for you.
                     18:        mkdir $HOME/lib
                     19:        fi
                     20: fi
                     21: if test -r $HOME/lib/spelldict
                     22: then if test ! -w $HOME/lib/spelldict
                     23:        then echo Can\'t write on the file $HOME/lib/spelldict, check your permissions.
                     24:                exit 1
                     25:        fi
                     26: fi
                     27: echo $* >>$HOME/lib/spelldict
                     28: deroff -w $HOME/lib/spelldict | sort -u >/tmp/$$spadd
                     29: mv /tmp/$$spadd $HOME/lib/spelldict

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.