mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Merge branch 'master' into development
This commit is contained in:
commit
c0f53cc1b4
46
upgrade.sh
46
upgrade.sh
@ -1,4 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
linux_upgrade()
|
||||
{
|
||||
echo
|
||||
echo Profanity installer... upgrading Profanity
|
||||
echo
|
||||
@ -12,3 +15,46 @@ 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
|
||||
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 "$SYSTEM" in
|
||||
unknown) echo The upgrade script will not work on this OS.
|
||||
echo Try a manual upgrade instead.
|
||||
exit
|
||||
;;
|
||||
linux) linux_upgrade
|
||||
;;
|
||||
cygwin) cygwin_upgrade
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user