FG42/install.sh

30 lines
797 B
Bash
Raw Normal View History

2011-07-22 14:48:30 +01:00
#! /bin/bash
2011-07-22 15:16:56 +01:00
echo "Enter your full name (you can change it later in top level customization): "
2011-07-29 14:32:31 +01:00
read fullname
2011-07-22 15:16:56 +01:00
echo "Enter your mail: "
2011-07-29 14:32:31 +01:00
read mail
2011-07-22 15:16:56 +01:00
echo "Where is your workspace directory: "
2011-07-29 14:32:31 +01:00
read workspace
2011-07-22 15:16:56 +01:00
echo "Where do you want to put pyemacs.sh file: "
2011-07-29 14:32:31 +01:00
read addr
2011-07-22 15:16:56 +01:00
kusohome=`pwd`
2011-07-29 12:37:34 +01:00
2011-07-22 14:48:30 +01:00
mkdir -p ~/.emacs.d
if [ -x ~/.emacs ]; then
cp ~/.emacs ~/.emacs.backup
fi
2011-07-29 14:32:31 +01:00
cp conf/emacs.d/* ~/.emacs.d -r
2011-07-22 15:16:56 +01:00
echo "Creating ~/.emacs"
2011-07-29 14:32:31 +01:00
mkdir -p "$addr"
cp conf/bin/pyemacs.sh $addr/ -r
chmod u+x $addr/pyemacs.sh -v
2011-07-29 12:37:34 +01:00
cp conf/dotemacs ~/.emacs
2011-07-29 14:32:31 +01:00
echo "python ./rep.py $mail $fullname $workspace $addr $kusohome"
2011-12-03 08:32:27 +00:00
sed "s/--EMAIL--/$mail/" -i ~/.emacs
sed "s/--FULLNAME--/$fullname/" -i ~/.emacs
sed "s/--WORKSPACE--/$workspace/" -i ~/.emacs
sed "s/--ADDR--/$addr/" -i ~/.emacs
sed "s/--KUSOHOME--/$kusohome/" -i ~/.emacs