From 999af01b112d399c84e301f0bf65e89c57bb3ea4 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sat, 3 Dec 2011 14:04:57 +0330 Subject: [PATCH] Installation script done --- conf/dotemacs | 2 +- images/logo.svg | 57 ++++++++++++++++++++++++--------------------- install.sh | 62 +++++++++++++++++++++++++++++++++---------------- 3 files changed, 74 insertions(+), 47 deletions(-) diff --git a/conf/dotemacs b/conf/dotemacs index 964e944..d36232b 100644 --- a/conf/dotemacs +++ b/conf/dotemacs @@ -82,5 +82,5 @@ )) (global-set-key (kbd "") 'dabbrev-expand) -(load-file "--KUSOHOME--/kuso-ide.el") +(load-file "--KUSOHOME--/src/kuso-ide.el") (kuso-mode) diff --git a/images/logo.svg b/images/logo.svg index 6c6780c..65bc621 100644 --- a/images/logo.svg +++ b/images/logo.svg @@ -10,39 +10,41 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="744.09448819" - height="1052.3622047" + width="352.09" + height="95" id="svg2" version="1.1" inkscape:version="0.48.1 r9760" - sodipodi:docname="New document 1"> + sodipodi:docname="logo.svg"> + style="overflow:visible"> + d="M 0,0 5,-5 -12.5,0 5,5 0,0 z" + style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;marker-start:none" + transform="matrix(-0.8,0,0,-0.8,-10,0)" + inkscape:connector-curvature="0" /> + d="M 0,0 5,-5 -12.5,0 5,5 0,0 z" + style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;marker-start:none" + transform="matrix(0.8,0,0,0.8,10,0)" + inkscape:connector-curvature="0" /> @@ -71,14 +73,15 @@ image/svg+xml - + + id="layer1" + transform="translate(0,-957.35929)"> + id="use3001" + width="744.09448" + height="1052.3622" /> KUSO + x="8.3333349" + y="964.44897" /> diff --git a/install.sh b/install.sh index b24265b..1c110fa 100755 --- a/install.sh +++ b/install.sh @@ -1,29 +1,51 @@ #! /bin/bash -echo "Enter your full name (you can change it later in top level customization): " -read fullname -echo "Enter your mail: " -read mail -echo "Where is your workspace directory: " -read workspace -echo "Where do you want to put pyemacs.sh file: " -read addr -kusohome=`pwd` +VERSION="0.9.0" +# Gathering informations +echo -e "\n\tKuso IDE v$VERSION copyright 2010-2011 Sameer Rahmani \n\n" +echo "Enter requested informations. You can change it later in top" +echo -e "level customization.\n\n" +read -p "Enter your full name: " fullname +read -p "Enter your email address: " mail +read -p "Where is your workspace directory[~/src/]: " workspace +read -p "Where do you want to put pyemacs.sh file[~/bin/]: " addr +echo -e "\n" + +# Validating informations +if [ "$workspace" == "" ] +then + workspace="~/src/" +fi + +if [ "$addr" == "" ] +then + addr="~/bin/" +fi + +# Installing stage1 +kusohome=`pwd` mkdir -p ~/.emacs.d -if [ -x ~/.emacs ]; then +if [ -e ~/.emacs ]; then + echo "Backing up exists .emacs file . . ." cp ~/.emacs ~/.emacs.backup fi +echo "Copying files . . . " cp conf/emacs.d/* ~/.emacs.d -r -echo "Creating ~/.emacs" -mkdir -p "$addr" +mkdir -p $addr cp conf/bin/pyemacs.sh $addr/ -r -chmod u+x $addr/pyemacs.sh -v -cp conf/dotemacs ~/.emacs -echo "python ./rep.py $mail $fullname $workspace $addr $kusohome" -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 +chmod u+x $addr/pyemacs.sh + +echo "Creating ~/.emacs" +dotemacs=~/.AAA +cp conf/dotemacs $dotemacs +v="s/--EMAIL--/$fullname/" +sed "s/--EMAIL--/$mail/mg" -i $dotemacs +sed "s/--FULLNAME--/$fullname/mg" -i $dotemacs +sed "s,--WORKSPACE--,$workspace,mg" -i $dotemacs +sed "s,--ADDR--,$addr,mg" -i $dotemacs +sed "s,--KUSOHOME--,$kusohome,mg" -i $dotemacs + +echo "Installation finished." +echo "Restart the GNU/Emacs and make sure that all the requirements met." \ No newline at end of file