Installation script done
This commit is contained in:
parent
0654cf83e8
commit
999af01b11
|
@ -82,5 +82,5 @@
|
|||
))
|
||||
(global-set-key (kbd "<backtab>") 'dabbrev-expand)
|
||||
|
||||
(load-file "--KUSOHOME--/kuso-ide.el")
|
||||
(load-file "--KUSOHOME--/src/kuso-ide.el")
|
||||
(kuso-mode)
|
||||
|
|
|
@ -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">
|
||||
<defs
|
||||
id="defs4">
|
||||
<marker
|
||||
inkscape:stockid="Arrow1Lend"
|
||||
orient="auto"
|
||||
refY="0.0"
|
||||
refX="0.0"
|
||||
refY="0"
|
||||
refX="0"
|
||||
id="Arrow1Lend"
|
||||
style="overflow:visible;">
|
||||
style="overflow:visible">
|
||||
<path
|
||||
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 "
|
||||
style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;"
|
||||
transform="scale(0.8) rotate(180) translate(12.5,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" />
|
||||
</marker>
|
||||
<marker
|
||||
inkscape:stockid="Arrow1Lstart"
|
||||
orient="auto"
|
||||
refY="0.0"
|
||||
refX="0.0"
|
||||
refY="0"
|
||||
refX="0"
|
||||
id="Arrow1Lstart"
|
||||
style="overflow:visible">
|
||||
<path
|
||||
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 "
|
||||
style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none"
|
||||
transform="scale(0.8) translate(12.5,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" />
|
||||
</marker>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
|
@ -54,12 +56,12 @@
|
|||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.08"
|
||||
inkscape:cx="211.57407"
|
||||
inkscape:cy="520"
|
||||
inkscape:cy="149.62963"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1364"
|
||||
inkscape:window-height="722"
|
||||
inkscape:window-width="1278"
|
||||
inkscape:window-height="754"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="19"
|
||||
inkscape:window-maximized="1" />
|
||||
|
@ -71,14 +73,15 @@
|
|||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
id="layer1"
|
||||
transform="translate(0,-957.35929)">
|
||||
<text
|
||||
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"
|
||||
|
@ -106,19 +109,21 @@
|
|||
x="0"
|
||||
y="0"
|
||||
xlink:href="#text2985"
|
||||
id="use3001" />
|
||||
id="use3001"
|
||||
width="744.09448"
|
||||
height="1052.3622" />
|
||||
<text
|
||||
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"
|
||||
x="446.99683"
|
||||
y="500.24295"
|
||||
x="345.52621"
|
||||
y="997.30548"
|
||||
id="text3003"
|
||||
sodipodi:linespacing="0%"
|
||||
transform="scale(0.96725681,1.0338516)"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan3005"
|
||||
x="446.99683"
|
||||
y="500.24295"
|
||||
x="345.52621"
|
||||
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-weight:normal;-inkscape-font-specification:FreeSans"
|
||||
id="tspan3007">KUSO</tspan><tspan
|
||||
|
@ -129,7 +134,7 @@
|
|||
id="rect3017"
|
||||
width="336.974"
|
||||
height="80.729622"
|
||||
x="106.48148"
|
||||
y="450.56012" />
|
||||
x="8.3333349"
|
||||
y="964.44897" />
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
62
install.sh
62
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 <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
|
||||
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."
|
Loading…
Reference in New Issue