aboutsummaryrefslogtreecommitdiff
path: root/semanticscuttle-dl
blob: c4f1e500e0695bf751cf73dfbfdb6ec253e0d02f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#
# SemanticScuttle simple upgrader.
#

BASENAME="`basename $0`"
PREVIOUS="$1"
CURRENT="$2"

if [ -z "$CURRENT" ]; then
  echo "usage: $BASENAME <previous> <current>"
  exit 1
fi

wget http://downloads.sourceforge.net/project/semanticscuttle/SemanticScuttle/v0.98/SemanticScuttle-$CURRENT.zip && \
unzip SemanticScuttle-$CURRENT.zip && \
rm SemanticScuttle-$CURRENT.zip && \
cp -a SemanticScuttle-$PREVIOUS/data/config.php SemanticScuttle-$CURRENT/data/ && \
rm site && \
ln -s SemanticScuttle-$CURRENT/www site && \
echo "Audit:" && \
du -hs SemanticScuttle-$PREVIOUS && \
du -hs SemanticScuttle-$CURRENT

if [ -d "patches" ]; then
  echo "Check and apply the following patches manually:"
  find patches
fi