From 0d5ff4ca7596790f853cf637e0fe225cad810a76 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:05:14 +0200 Subject: Adding live-helper 1.0~a18-1. --- functions/packagelists.sh | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100755 functions/packagelists.sh (limited to 'functions/packagelists.sh') diff --git a/functions/packagelists.sh b/functions/packagelists.sh deleted file mode 100755 index f25b5fbca..000000000 --- a/functions/packagelists.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -# packagelists.sh - expands package list includes -# Copyright (C) 2006-2007 Daniel Baumann -# -# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. -# This is free software, and you are welcome to redistribute it -# under certain conditions; see COPYING for details. - -set -e - -Expand_packagelist () -{ - # ${1} List name - # ${2} Default path to search - # ${3} Fallback path to search (optional) - - # Does list exist in default path? - if [ -e "${2}/${1}" ]; - then - Expand_packagelist_file "${2}/${1}" "${@}" - else - # If list exists in fallback, include it. - if [ -n "${3}" ] && [ -e "${3}/${1}" ] - then - Expand_packagelist_file "${3}/${1}" "${@}" - fi - fi -} - -Expand_packagelist_file () -{ - local FILE="${1}" - shift - shift - - for INCLUDE in `sed -ne 's/^# \(.*\)/\1/gp' "${FILE}"`; - do - Expand_packagelist "${INCLUDE}" "${@}" - done - sed -ne 's/^\([^#].*\)/\1\n/gp' "${FILE}" -} -- cgit v1.2.3