source: orange/install-scripts/addon-pack/pack-addons.sh @ 9096:f70971deee27

Revision 9096:f70971deee27, 1.1 KB checked in by matija <matija.polajnar@…>, 3 years ago (diff)

Adapt add-on packaging VM to sshfs and avoid automatically running packaging routines at startup; the vmware-dailyrun script will take care of that.

  • Property exe set to *
Line 
1#!/bin/bash
2#
3# Matija Polajnar, 28. 7. 2010
4# matija.polajnar@fri.uni-lj.si
5#
6# This script packs the addons and copies them into our official Orange add-on repository.
7# An add-on is packed for each directory in ../add-ons. A 'svn up' is issued in each directory
8# first, so the contents must be a SVN checkout.
9# The packing only occurs if the addon.txt has been changed!
10# TODO: Pack the binary parts too!
11#
12
13SCRIPT_DIR=`dirname $0 | xargs readlink -e`
14ADDONS_DIR="$SCRIPT_DIR/add-ons"
15ORANGE_DIR="$SCRIPT_DIR/orange"
16
17# Update the core orange (we need the orngAddOns.py to make a package).
18cd "$ORANGE_DIR"
19svn up
20
21# For each addon ...
22cd "$ADDONS_DIR"
23for ADDON in * ; do
24  if [[ -d "$ADDONS_DIR/$ADDON" ]] ; then
25      echo " ### Processing $ADDON ..."
26      cd "$ADDONS_DIR/$ADDON"
27      cp addon.xml "../${ADDON}_addon.xml"
28      svn revert . -R
29      svn up
30      if diff addon.xml "../${ADDON}_addon.xml" ; then
31        echo "Not changed - not packing!"
32      else
33        "$SCRIPT_DIR/prepare-and-pack.py" "$ADDONS_DIR/$ADDON" "../${ADDON}.oao"
34        cp "../${ADDON}.oao" $TARGET
35      fi
36  fi
37done
Note: See TracBrowser for help on using the repository browser.