FG42/install.sh

29 lines
737 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): "
fullname=`read`
echo "Enter your mail: "
mail=`read`
echo "Where is your workspace directory: "
workspace=`read`
echo "Where do you want to put pyemacs.sh file: "
addr=`read`
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
cp conf/emacs.d/* ~/.emacs.d -rv
2011-07-22 15:16:56 +01:00
echo "Creating ~/.emacs"
mkdir -p $addr
cp conf/bin/pyemacs.sh $addr/ -rv
chmod u+x $addr/pyemacs.sh
2011-07-29 12:37:34 +01:00
cp conf/dotemacs ~/.emacs
sed "s/--EMAIL--/$mail/" -i ~/.emacs
sed "s/--FULLNAME--/$fullname/" -i ~/.emacs
sed "s/--WORKSPACE--/$workspace/" -i ~/.emacs
sed "s/--ADDR--/$addrcp/" -i ~/.emacs
sed "s/--KUSOHOME--/$kusohome/" > ~/.emacs