Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
178
Issues
178
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
a6aca885
Commit
a6aca885
authored
Mar 06, 2013
by
mathieui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade update.sh to stop when an update fails
(and tell what is failing)
parent
370cc874
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
update.sh
update.sh
+11
-5
No files found.
update.sh
View file @
a6aca885
...
...
@@ -6,8 +6,14 @@
# Use launch.sh to start poezio directly from here
function
error
()
{
echo
-e
"
\0
33[1;31mThe script failed to update
$1
.
\0
33[0m"
echo
-e
"
\0
33[1;31mPlease investigate.
\0
33[0m"
exit
1
}
echo
'Updating poezio'
git pull origin master
git pull origin master
||
error poezio
make
if
[
$?
-ne
0
]
...
...
@@ -23,18 +29,18 @@ then
echo
"Removing the old SleekXMPP"
rm
-rf
SleekXMPP
rm
src/sleekxmpp
git clone https://github.com/fritzy/SleekXMPP.git Sleek
git clone https://github.com/fritzy/SleekXMPP.git Sleek
||
error SleekXMPP
fi
if
[
-e
"Sleek"
]
then
echo
"Updating SleekXMPP"
cd
Sleek
git pull
git pull
||
error SleekXMPP
cd
..
else
echo
"Downloading SleekXMPP"
git clone https://github.com/fritzy/SleekXMPP.git Sleek
git clone https://github.com/fritzy/SleekXMPP.git Sleek
||
error SleekXMPP
fi
if
[
-e
".dnspython.tgz"
]
...
...
@@ -49,7 +55,7 @@ then
fi
else
echo
"Downloading dnspython"
wget
-c
-q
-O
.dnspython.tgz http://www.dnspython.org/kits3/1.10.0/dnspython3-1.10.0.tar.gz
wget
-c
-q
-O
.dnspython.tgz http://www.dnspython.org/kits3/1.10.0/dnspython3-1.10.0.tar.gz
||
error dnspython
rm
-fr
dnspython
tar
xfz .dnspython.tgz
mv
dnspython3-1.10.0 dnspython
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment