123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- #!/bin/bash
- privilege_escalation="sudo "
- if [ ! -d "/usr/lib/xoronos" ]; then
- cmd="$privilege_escalation mkdir /usr/lib/xoronos"
- echo "$cmd" ; eval "$cmd"
- fi
- if [ ! -d "/usr/lib/xoronos/py" ]; then
- cmd="$privilege_escalation mkdir /usr/lib/xoronos/py"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./auxiliary_tools/xrnconv-cli
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/local/bin"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./auxiliary_tools/xrnserver-cli
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/local/bin"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./auxiliary_tools/xrnarchive-cli
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/local/bin"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./auxiliary_tools/xrntranslate-cli
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/local/bin"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./auxiliary_tools/xrngen-cli
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/local/bin"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=../build/bin/xrnlib-cli
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/local/bin"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=../build/bin/xrnlib-128-cli
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/local/bin"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=../build/bin/xrnlib-256-cli
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/local/bin"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=../build/sharedlib/xrnlib-128.so
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/lib/xoronos"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=../build/sharedlib/xrnlib-256.so
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /usr/lib/xoronos"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./backend/xrnserver-cli-autocomplete.sh
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /etc/bash_completion.d"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./backend/xrnarchive-cli-autocomplete.sh
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /etc/bash_completion.d"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./backend/xrnlib-cli-autocomplete.sh
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /etc/bash_completion.d"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./backend/xrnconv-cli-autocomplete.sh
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /etc/bash_completion.d"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path=./backend/xrngen-cli-automplete.sh
- if [ -e "$file_path" ]; then
- cmd="$privilege_escalation cp $file_path /etc/bash_completion.d"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path1=../build/py/_xrnlib256.so
- file_path2=../build/py/xrnlib256.py
- if [ -e "$file_path1" ] && [ -e "$file_path2" ]; then
- cmd="$privilege_escalation cp $file_path1 $file_path2 /usr/lib/xoronos/py"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path1=../build/py/_xrnlib128.so
- file_path2=../build/py/xrnlib128.py
- if [ -e "$file_path1" ] && [ -e "$file_path2" ]; then
- cmd="$privilege_escalation cp $file_path1 $file_path2 /usr/lib/xoronos/py"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path1=./source.sh
- if [ -e "$file_path1" ] ; then
- cmd="cp $file_path1 $HOME/.local/xoronos"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path1=./unsource.sh
- if [ -e "$file_path1" ] ; then
- cmd="cp $file_path1 $HOME/.local/xoronos"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path1=../archives/resources/miscellaneus/xoronos.tex
- if [ -e "$file_path1" ] ; then
- if [ -d /usr/share/pandoc/data/templates ] ; then
- cmd="$privilege_escalation cp $file_path1 /usr/share/pandoc/data/templates"
- echo "$cmd" ; eval "$cmd"
- fi
- fi
- file_path=../build/py/splitjoin.cpython*
- if [ -e $file_path ] ; then
- cmd="$privilege_escalation cp $file_path /usr/lib/xoronos/py"
- echo "$cmd" ; eval "$cmd"
- fi
- file_path1=../archives/resources/miscellaneus/xoronos.tex
- if [ -e "$file_path1" ] ; then
- if [ -d /usr/share/pandoc/data/templates ] ; then
- cmd="$privilege_escalation cp $file_path1 /usr/share/pandoc/data/templates"
- echo "$cmd" ; eval "$cmd"
- fi
- fi
- file_path1=./backend/xrntools_description.json
- if [ -e "$file_path1" ] ; then
- if [ -d /usr/lib/xoronos/py ] ; then
- cmd="$privilege_escalation cp $file_path1 /usr/lib/xoronos/py"
- echo "$cmd" ; eval "$cmd"
- fi
- fi
|