source: live-build/trunk/fuentes/share/bin/Packages @ 900

Last change on this file since 900 was 900, checked in by kbut, 3 years ago

add original source

  • Property svn:executable set to *
File size: 587 bytes
Line 
1#!/bin/sh
2
3## live-build(7) - System Build Scripts
4## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
5##
6## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7## This is free software, and you are welcome to redistribute it
8## under certain conditions; see COPYING for details.
9
10
11set -e
12
13if [ ! -e /usr/bin/grep-aptavail ]
14then
15        echo "E: /usr/bin/grep-aptavail: No such file."
16
17        exit 1
18fi
19
20if [ -z "${@}" ]
21then
22        echo "Usage: $(basename ${0}) FIELD VALUE"
23
24        exit 1
25fi
26
27_FIELD="${1}"
28_VALUE="${2}"
29
30grep-aptavail -n -sPackage -F${_FIELD} ${_VALUE} | sort
Note: See TracBrowser for help on using the repository browser.