2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # Usage : $1 -> source feeds
10 # Note : we do not yet resolve package name conflicts
13 FEEDS_DIR
=$TOPDIR/feeds
14 PACKAGE_DIR
=$TOPDIR/package
17 # This directory will be structured this way : feeds/feed-name
18 [ -d $FEEDS_DIR ] || mkdir
-p $FEEDS_DIR
21 # Some functions we might call several times a run
23 find $PACKAGE_DIR -type l |
xargs rm -f
27 # We assume that feeds do reproduce the hierarchy : section/package
28 for dir
in $
(ls $FEEDS_DIR/)
30 ln -s $FEEDS_DIR/$dir/*/* $PACKAGE_DIR/
35 # We ensure the feed has not already been checkout, if so, just update the source feed
36 if [ -d $FEEDS_DIR/$2 ]; then
37 svn update
$FEEDS_DIR/$2
38 echo "Updated to revision $(LANG=C svn info $FEEDS_DIR/$2 | awk '/^Revision:/ { print $2 }' )";
39 # Otherwise, we have to checkout in the
41 svn co
$1 $FEEDS_DIR/$2
42 echo "Checked out revision $(LANG=C svn info $FEEDS_DIR/$2 | awk '/^Revision:/ { print $2 }' )";
47 echo "$(echo $1 | awk -F/ '{ print $NF}')"
50 # We can delete symlinks every time we start this script, since modifications have been made anyway
52 # Now let's checkout feeds
55 name
=$
(extract_feed_name
"$feed")
56 checkout_feed
"$feed" "$name"
58 # Finally setup symlinks
This page took 0.047863 seconds and 5 git commands to generate.