Installation script done

This commit is contained in:
Sameer Rahmani 2011-12-03 14:04:57 +03:30
parent 0654cf83e8
commit 999af01b11
3 changed files with 74 additions and 47 deletions

View File

@ -82,5 +82,5 @@
)) ))
(global-set-key (kbd "<backtab>") 'dabbrev-expand) (global-set-key (kbd "<backtab>") 'dabbrev-expand)
(load-file "--KUSOHOME--/kuso-ide.el") (load-file "--KUSOHOME--/src/kuso-ide.el")
(kuso-mode) (kuso-mode)

View File

@ -10,39 +10,41 @@
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="744.09448819" width="352.09"
height="1052.3622047" height="95"
id="svg2" id="svg2"
version="1.1" version="1.1"
inkscape:version="0.48.1 r9760" inkscape:version="0.48.1 r9760"
sodipodi:docname="New document 1"> sodipodi:docname="logo.svg">
<defs <defs
id="defs4"> id="defs4">
<marker <marker
inkscape:stockid="Arrow1Lend" inkscape:stockid="Arrow1Lend"
orient="auto" orient="auto"
refY="0.0" refY="0"
refX="0.0" refX="0"
id="Arrow1Lend" id="Arrow1Lend"
style="overflow:visible;"> style="overflow:visible">
<path <path
id="path3793" id="path3793"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " d="M 0,0 5,-5 -12.5,0 5,5 0,0 z"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;" style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;marker-start:none"
transform="scale(0.8) rotate(180) translate(12.5,0)" /> transform="matrix(-0.8,0,0,-0.8,-10,0)"
inkscape:connector-curvature="0" />
</marker> </marker>
<marker <marker
inkscape:stockid="Arrow1Lstart" inkscape:stockid="Arrow1Lstart"
orient="auto" orient="auto"
refY="0.0" refY="0"
refX="0.0" refX="0"
id="Arrow1Lstart" id="Arrow1Lstart"
style="overflow:visible"> style="overflow:visible">
<path <path
id="path3790" id="path3790"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " d="M 0,0 5,-5 -12.5,0 5,5 0,0 z"
style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none" style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt;marker-start:none"
transform="scale(0.8) translate(12.5,0)" /> transform="matrix(0.8,0,0,0.8,10,0)"
inkscape:connector-curvature="0" />
</marker> </marker>
</defs> </defs>
<sodipodi:namedview <sodipodi:namedview
@ -54,12 +56,12 @@
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="1.08" inkscape:zoom="1.08"
inkscape:cx="211.57407" inkscape:cx="211.57407"
inkscape:cy="520" inkscape:cy="149.62963"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:current-layer="layer1" inkscape:current-layer="layer1"
showgrid="false" showgrid="false"
inkscape:window-width="1364" inkscape:window-width="1278"
inkscape:window-height="722" inkscape:window-height="754"
inkscape:window-x="0" inkscape:window-x="0"
inkscape:window-y="19" inkscape:window-y="19"
inkscape:window-maximized="1" /> inkscape:window-maximized="1" />
@ -71,14 +73,15 @@
<dc:format>image/svg+xml</dc:format> <dc:format>image/svg+xml</dc:format>
<dc:type <dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title> <dc:title />
</cc:Work> </cc:Work>
</rdf:RDF> </rdf:RDF>
</metadata> </metadata>
<g <g
inkscape:label="Layer 1" inkscape:label="Layer 1"
inkscape:groupmode="layer" inkscape:groupmode="layer"
id="layer1"> id="layer1"
transform="translate(0,-957.35929)">
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:40px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:end;line-height:0%;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Webdings;-inkscape-font-specification:Webdings Bold" style="font-size:40px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:end;line-height:0%;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Webdings;-inkscape-font-specification:Webdings Bold"
@ -106,19 +109,21 @@
x="0" x="0"
y="0" y="0"
xlink:href="#text2985" xlink:href="#text2985"
id="use3001" /> id="use3001"
width="744.09448"
height="1052.3622" />
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:38.69027328px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:end;line-height:0%;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans Bold" style="font-size:38.69027328px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:end;line-height:0%;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans Bold"
x="446.99683" x="345.52621"
y="500.24295" y="997.30548"
id="text3003" id="text3003"
sodipodi:linespacing="0%" sodipodi:linespacing="0%"
transform="scale(0.96725681,1.0338516)"><tspan transform="scale(0.96725681,1.0338516)"><tspan
sodipodi:role="line" sodipodi:role="line"
id="tspan3005" id="tspan3005"
x="446.99683" x="345.52621"
y="500.24295" y="997.30548"
style="font-size:69.6424942px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:FreeSans;-inkscape-font-specification:FreeSans Bold"><tspan style="font-size:69.6424942px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:FreeSans;-inkscape-font-specification:FreeSans Bold"><tspan
style="font-weight:normal;-inkscape-font-specification:FreeSans" style="font-weight:normal;-inkscape-font-specification:FreeSans"
id="tspan3007">KUSO</tspan><tspan id="tspan3007">KUSO</tspan><tspan
@ -129,7 +134,7 @@
id="rect3017" id="rect3017"
width="336.974" width="336.974"
height="80.729622" height="80.729622"
x="106.48148" x="8.3333349"
y="450.56012" /> y="964.44897" />
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -1,29 +1,51 @@
#! /bin/bash #! /bin/bash
echo "Enter your full name (you can change it later in top level customization): " VERSION="0.9.0"
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`
# Gathering informations
echo -e "\n\tKuso IDE v$VERSION copyright 2010-2011 Sameer Rahmani <lxsameer@gnu.org>\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 mkdir -p ~/.emacs.d
if [ -x ~/.emacs ]; then if [ -e ~/.emacs ]; then
echo "Backing up exists .emacs file . . ."
cp ~/.emacs ~/.emacs.backup cp ~/.emacs ~/.emacs.backup
fi fi
echo "Copying files . . . "
cp conf/emacs.d/* ~/.emacs.d -r cp conf/emacs.d/* ~/.emacs.d -r
echo "Creating ~/.emacs" mkdir -p $addr
mkdir -p "$addr"
cp conf/bin/pyemacs.sh $addr/ -r cp conf/bin/pyemacs.sh $addr/ -r
chmod u+x $addr/pyemacs.sh -v chmod u+x $addr/pyemacs.sh
cp conf/dotemacs ~/.emacs
echo "python ./rep.py $mail $fullname $workspace $addr $kusohome" echo "Creating ~/.emacs"
sed "s/--EMAIL--/$mail/" -i ~/.emacs dotemacs=~/.AAA
sed "s/--FULLNAME--/$fullname/" -i ~/.emacs cp conf/dotemacs $dotemacs
sed "s/--WORKSPACE--/$workspace/" -i ~/.emacs v="s/--EMAIL--/$fullname/"
sed "s/--ADDR--/$addr/" -i ~/.emacs sed "s/--EMAIL--/$mail/mg" -i $dotemacs
sed "s/--KUSOHOME--/$kusohome/" -i ~/.emacs 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."