aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoronefang2025-05-23 11:54:38 +1000
committeronefang2025-05-23 11:54:38 +1000
commitb3213f1e654c5c9d0e98efb105cfaf6e0cb5d984 (patch)
treeb28ed6614192ca032263979cede33930dcfec166
parentZita claims these are higher quality, but I'm getting some crap sound, and no... (diff)
downloadJackOnAllDevices-b3213f1e654c5c9d0e98efb105cfaf6e0cb5d984.zip
JackOnAllDevices-b3213f1e654c5c9d0e98efb105cfaf6e0cb5d984.tar.gz
JackOnAllDevices-b3213f1e654c5c9d0e98efb105cfaf6e0cb5d984.tar.bz2
JackOnAllDevices-b3213f1e654c5c9d0e98efb105cfaf6e0cb5d984.tar.xz
Don't bother intalling links if they are there already.
Plus re-arrange things a little.
-rwxr-xr-xaataaj.lua15
1 files changed, 10 insertions, 5 deletions
diff --git a/aataaj.lua b/aataaj.lua
index 8b991c1..72bf096 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -77,13 +77,16 @@ local options =
77 else 77 else
78 print('INSTALLING!!!') 78 print('INSTALLING!!!')
79 __[[#!/bin/bash 79 __[[#!/bin/bash
80 __[=[#!/bin/bash
80 echo "Installing aataaj" 81 echo "Installing aataaj"
81 ./PolygLua.lua -vvvv install 82 ./PolygLua.lua -vvvv install
82 ln -s `pwd`/aataaj.lua /usr/local/bin/aataaj.lua 83 if [[ ! -h /usr/local/bin/aataaj.lua ]]; then
83 ln -s /usr/local/bin/aataaj.lua /etc/init.d/aataaj.lua 84 ln -s `pwd`/aataaj.lua /usr/local/bin/aataaj.lua
84 update-rc.d aataaj.lua defaults 85 fi
86 if [[ ! -h /etc/init.d/aataaj.lua ]]; then
87 ln -s /usr/local/bin/aataaj.lua /etc/init.d/aataaj.lua
88 fi
85 mkdir -p /usr/local/share/doc/aataaj 89 mkdir -p /usr/local/share/doc/aataaj
86 ln -s `pwd`/*.md /usr/local/share/doc/aataaj/
87 pushd /usr/local/share/doc/aataaj 90 pushd /usr/local/share/doc/aataaj
88 espeak-ng -w your.wav "Your " 91 espeak-ng -w your.wav "Your "
89 espeak-ng -w devices.wav " audio devices are - " 92 espeak-ng -w devices.wav " audio devices are - "
@@ -108,7 +111,9 @@ local options =
108 espeak-ng -w sixteen.wav "sixteen" 111 espeak-ng -w sixteen.wav "sixteen"
109 espeak-ng -w best.wav "Please type the device number you heard best - " 112 espeak-ng -w best.wav "Please type the device number you heard best - "
110 popd 113 popd
111 ]]:log():show():Do() 114 ln -s `pwd`/*.md /usr/local/share/doc/aataaj/
115 update-rc.d aataaj.lua defaults
116 ]=]:log():show():Do()
112 end 117 end
113 os.exit(0) 118 os.exit(0)
114 end 119 end