Update install script to install to custom location
This commit is contained in:
33
install.sh
33
install.sh
@@ -1,8 +1,29 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
python3 setup.py install --optimize=1
|
prefix=
|
||||||
cp nwg-panel.svg /usr/share/pixmaps/
|
opts=()
|
||||||
cp nwg-shell.svg /usr/share/pixmaps/
|
|
||||||
cp nwg-processes.svg /usr/share/pixmaps/
|
while true; do
|
||||||
cp nwg-panel-config.desktop /usr/share/applications/
|
case "$1" in
|
||||||
cp nwg-processes.desktop /usr/share/applications/
|
--prefix=*)
|
||||||
|
opts+=("$1")
|
||||||
|
eval "prefix=${1##--prefix=}"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
opts+=("$@")
|
||||||
|
|
||||||
|
: ${prefix:="/usr"}
|
||||||
|
|
||||||
|
python3 setup.py install --optimize=1 "${opts[@]}"
|
||||||
|
mkdir -p $prefix/share/pixmaps/ $prefix/share/applications/
|
||||||
|
cp nwg-panel.svg $prefix/share/pixmaps/
|
||||||
|
cp nwg-shell.svg $prefix/share/pixmaps/
|
||||||
|
cp nwg-processes.svg $prefix/share/pixmaps/
|
||||||
|
cp nwg-panel-config.desktop $prefix/share/applications/
|
||||||
|
cp nwg-processes.desktop $prefix/share/applications/
|
||||||
|
Reference in New Issue
Block a user