Project

General

Profile

Download (1.35 KB) Statistics
| Branch: | Tag: | Revision:
1 0ef4745a Andreas Kohlbecker
#!/bin/bash
2
3
if [ -z $1 ]
4
then
5
  echo "USAGE: update-to.sh <VERSION NUMBER>"
6 757ed0a5 Andreas Kohlbecker
  echo "       - VERSION NUMBER e.g. '1.3.1'"
7
  echo "       - 'trunk' can also be used to refer to the trunk version"
8
  echo ""
9 0ef4745a Andreas Kohlbecker
  echo "  e.g.: update-to.sh 3.0.6 to install branches/drupal/module-cdm_dataportal-RELEASE-3.0.6 and branches/drupal/themes-RELEASE-3.0.6"
10
fi
11
12
VERSION=$1
13
14 757ed0a5 Andreas Kohlbecker
rm -r modules/cdm_dataportal
15
if [ $VERSION == "trunk" ]; then
16
  svn co http://dev.e-taxonomy.eu/svn/trunk/drupal/7.x/modules/cdm_dataportal modules/cdm_dataportal
17
else
18
  svn co http://dev.e-taxonomy.eu/svn/branches/drupal/module-cdm_dataportal-RELEASE-$VERSION modules/cdm_dataportal
19
fi
20
rm -r themes
21
if [ $VERSION == "trunk" ]; then
22
  svn co http://dev.e-taxonomy.eu/svn/trunk/drupal/7.x/themes themes
23
else
24
  svn co http://dev.e-taxonomy.eu/svn/branches/drupal/themes-RELEASE-$VERSION themes
25
fi
26
27 0ef4745a Andreas Kohlbecker
28
echo "========================================================================"
29
echo "NOTE:"
30
echo "  Now you need to run the Drupal update.php script of all affected sites."
31
echo "  The dataportals-updatedb script allows you to update multiple"
32
echo "  DataPortal in batch mode."
33
echo ""
34
echo "  The dataportals-updatedb.sh script and others can be obtained from "
35
echo "  http://dev.e-taxonomy.eu/svn/trunk/server-scripts/dataportal-admin/"
36
echo "========================================================================"