mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Fixed upgrade script to work on cygwin
This commit is contained in:
parent
b7c1209744
commit
d9cc580c91
78
upgrade.sh
78
upgrade.sh
@ -1,14 +1,66 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo
|
|
||||||
echo Profanity installer... upgrading Profanity
|
linux_upgrade()
|
||||||
echo
|
{
|
||||||
./bootstrap.sh
|
echo
|
||||||
./configure
|
echo Profanity installer... upgrading Profanity
|
||||||
make clean
|
echo
|
||||||
make
|
./bootstrap.sh
|
||||||
sudo make install
|
./configure
|
||||||
echo
|
make clean
|
||||||
echo Profanity installer... upgrade complete!
|
make
|
||||||
echo
|
sudo make install
|
||||||
echo Type \'profanity\' to run.
|
echo
|
||||||
echo
|
echo Profanity installer... upgrade complete!
|
||||||
|
echo
|
||||||
|
echo Type \'profanity\' to run.
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
cygwin_upgrade()
|
||||||
|
{
|
||||||
|
echo
|
||||||
|
echo Profanity installer... upgrading Profanity
|
||||||
|
echo
|
||||||
|
export LIBRARY_PATH=/usr/local/lib
|
||||||
|
./bootstrap.sh
|
||||||
|
./configure
|
||||||
|
make clean
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
echo
|
||||||
|
echo Profanity installer... upgrade complete!
|
||||||
|
echo
|
||||||
|
echo Type \'profanity\' to run.
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
OS=`uname -s`
|
||||||
|
SYSTEM=unknown
|
||||||
|
|
||||||
|
if [ "${OS}" = "Linux" ]; then
|
||||||
|
SYSTEM=linux
|
||||||
|
else
|
||||||
|
echo $OS | grep -i cygwin
|
||||||
|
if [ "$?" -eq 0 ]; then
|
||||||
|
SYSTEM=cygwin
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$DIST" in
|
||||||
|
unknown) echo The upgrade script will not work on this OS.
|
||||||
|
echo Try a manual upgrade instead.
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
linux) fedora_prepare
|
||||||
|
install_head_unit
|
||||||
|
install_lib_strophe
|
||||||
|
install_profanity
|
||||||
|
;;
|
||||||
|
cygwin) debian_prepare
|
||||||
|
install_head_unit
|
||||||
|
install_lib_strophe
|
||||||
|
install_profanity
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user