done an install script :3
This commit is contained in:
parent
361a68b85f
commit
103fdafe60
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
lexicon.sh
|
||||||
|
uninstall.sh
|
20
install.sh
Executable file
20
install.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
if [ $(whoami) == "root" ] ; then
|
||||||
|
insobjective=/usr/bin
|
||||||
|
else
|
||||||
|
echo "Not root, asuming instalation will go on local bin"
|
||||||
|
insobjective=$HOME/.local/bin
|
||||||
|
fi
|
||||||
|
|
||||||
|
installdir=$PWD
|
||||||
|
|
||||||
|
lexiconsh="#!/bin/sh\ncd $installdir/\n$installdir/lexicon \$@"
|
||||||
|
uninstall="#!/bin/sh\nrm $installdir/lexicon.sh\nrm $insobjective/lexicon\nrm $insobjective/heonian\nrm $installdir/uninstall.sh"
|
||||||
|
|
||||||
|
echo -e $lexiconsh > $installdir/lexicon.sh
|
||||||
|
echo -e $uninstall > $installdir/uninstall.sh
|
||||||
|
chmod +x $installdir/lexicon.sh $installdir/uninstall.sh
|
||||||
|
ln -s $installdir/lexicon.sh $insobjective/heonian
|
||||||
|
ln -s $installdir/lexicon.sh $insobjective/lexicon
|
||||||
|
|
||||||
|
echo "DONE :3"
|
Loading…
Reference in New Issue
Block a user