Skip to content

Commit 570c6a8

Browse files
authored
Merge pull request #98 from coderholic/s-n-g-macOs-Catalina-installation-fix
version 0.8.7.2 - macOS Catalina installation fix
2 parents b9c2af3 + 1fc60e5 commit 570c6a8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Changelog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2020-03-16 s-n-g
2+
* Version 0.8.7.2
3+
* Fixing macOS Catalina installation
4+
15
2020-01-31 s-n-g
26
* Version 0.8.7.1
37
* Fixing mpv playlist option (for mpv 0.32.0)

devel/build_install_pyradio

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ uninstall(){
2929
else
3030
sudo rm -rf /usr/local/share/doc/pyradio 2>/dev/null
3131
fi
32-
sudo rm -f /usr/share/man/man1/pyradio.1.gz 2>/dev/null
32+
sudo rm -f /usr/share/man/man1/pyradio.1.gz 2>/dev/null || sudo rm -f /usr/local/share/man/man1/pyradio.1.gz 2>/dev/null
3333
echo "PyRadio successfully uninstalled"
3434
}
3535

@@ -98,7 +98,7 @@ descr=$(git describe --long --tags 2>/dev/null || echo not_from_git)
9898
echo -n "s/git_description = ''/git_description = '" > sed.$$
9999
echo -n "${descr}" >> sed.$$
100100
echo "'/" >> sed.$$
101-
sed -f sed.$$ pyradio/radio.py > tmp-radio.py && mv tmp-radio.py pyradio/radio.py || {
101+
sed -f sed.$$ pyradio/radio.py > tmp-radio.py && mv -f tmp-radio.py pyradio/radio.py || {
102102
# failed... restore radio.py
103103
# and build without revision info
104104
git checkout pyradio/radio.py
@@ -112,7 +112,7 @@ python"${TO_PYTHON}" setup.py build && {
112112
echo "***** installing..."
113113
sudo python"${TO_PYTHON}" setup.py install && {
114114
gzip -k pyradio.1
115-
sudo mv pyradio.1.gz /usr/share/man/man1
115+
sudo mv -f pyradio.1.gz /usr/share/man/man1 2>/dev/null || sudo mv -f pyradio.1.gz /usr/local/share/man/man1
116116
DOC=/usr/share/doc/pyradio
117117
sudo mkdir "$DOC" 2>/dev/null
118118
if [ ! -d "$DOC" ];then
@@ -138,7 +138,7 @@ python"${TO_PYTHON}" setup.py build && {
138138
[ -z "$descr" ] || {
139139
echo "s/git_description = '[^']*'/git_description = ''/" > sed.$$
140140
sed -f sed.$$ pyradio/radio.py > tmp-radio.py
141-
mv tmp-radio.py pyradio/radio.py
141+
mv -f tmp-radio.py pyradio/radio.py
142142
#git checkout pyradio/radio.py
143143
}
144144
rm sed.$$ 2>/dev/null

pyradio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" pyradio -- Console radio player. "
22

3-
version_info = (0, 8, 7, 1)
3+
version_info = (0, 8, 7, 2)
44

55
__version__ = version = '.'.join(map(str, version_info))
66
__project__ = __name__

0 commit comments

Comments
 (0)