diff options
Diffstat (limited to 'classes/split_ipk_feeds.oeclass')
-rw-r--r-- | classes/split_ipk_feeds.oeclass | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/classes/split_ipk_feeds.oeclass b/classes/split_ipk_feeds.oeclass deleted file mode 100644 index 31d46c4948..0000000000 --- a/classes/split_ipk_feeds.oeclass +++ /dev/null @@ -1,58 +0,0 @@ -# -# Splits packages into feeds, depending on the "Section" entry in "Packages" -# - - -die () { - echo "split_feed: ERROR: $1" - exit 1 -} - -do_split_feed () { - test -z "$FEED_PATTERN" && die "No feed pattern in FEED_PATTERN" - test -z "$FEED_NAME" && die "No feed name in FEED_NAME" - test -z "${DEPLOY_DIR_IPK}" && die "DEPLOY_DIR_IPK is empty, how do you do that?" - - echo "Rebuilding [${DEPLOY_DIR_IPK}/Packages]" - touch ${DEPLOY_DIR_IPK}/Packages - ipkg-make-index -r ${DEPLOY_DIR_IPK}/Packages -p ${DEPLOY_DIR_IPK}/Packages -l ${DEPLOY_DIR_IPK}/Packages.filelist -m ${DEPLOY_DIR_IPK} - - echo "Working on pattern [$FEED_PATTERN] for feed [$FEED_NAME]" - - # Don't we all love sed? - cat "${DEPLOY_DIR_IPK}/Packages" |sed -n "/^Section/s/Section\:\ //p;/^Package/s/Package\:\ //p" |sed '$!N;s/\n/ /;s/\(.*\)\ \(.*\)/\2 \1/'| sort | egrep -i -- "$FEED_PATTERN" > feed-content.tmp - - if ! test -z "$EXCLUDE_FROM_FEED" - then - cat feed-content.tmp | egrep -iv -- "$EXCLUDE_FROM_FEED" | sed -n "s/\(.*\)\ \(.*\)/\2/p" > feed-content.tmp2 - else - cat feed-content.tmp | sed -n "s/\(.*\)\ \(.*\)/\2/p" > feed-content.tmp2 - fi - rm feed-content.tmp ; mv feed-content.tmp2 feed-content.tmp - - if ! test -d ${DEPLOY_DIR_IPK}/${FEED_NAME} - then - mkdir -p ${DEPLOY_DIR_IPK}/${FEED_NAME} - else - test "${DEPLOY_DIR_IPK}/${FEED_NAME}" = "/" && die "EMERGENCY BAIL-OUT" - rm -rf ${DEPLOY_DIR_IPK}/${FEED_NAME} - mkdir -p ${DEPLOY_DIR_IPK}/${FEED_NAME} - fi - - for package in `cat feed-content.tmp` - do - cp ${DEPLOY_DIR_IPK}/${package}_*.ipk ${DEPLOY_DIR_IPK}/${FEED_NAME} - done - - touch ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages - ipkg-make-index -r ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages -p ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages -l ${DEPLOY_DIR_IPK}/${FEED_NAME}/Packages.filelist -m ${DEPLOY_DIR_IPK}/${FEED_NAME} || die "ipkg-make-index failed!" && echo "Packages done" - - echo "###" - test -d ${DEPLOY_DIR_IPK}/${FEED_NAME}/morgue && rm -rf ${DEPLOY_DIR_IPK}/${FEED_NAME}/morgue - echo "###" -} - -addtask split_feed before do_build - -# Feed splitting should be done explicitly, not as part of world -EXCLUDE_FROM_WORLD = "1" |