~strahinja/galeb-mkfiles

3ad6585717882825ac643fce6b60e4d319501fc6 — Страхиња Радић 2 months ago 8ecdb61
Add dependencies for packages, printdeps

Signed-off-by: Страхиња Радић <contact@strahinja.org>
A cyrus-sasl/dependencies => cyrus-sasl/dependencies +1 -0
@@ 0,0 1,1 @@
gdbm:openssl

M docbook-xsl-nons/dependencies => docbook-xsl-nons/dependencies +1 -1
@@ 1,1 1,1 @@
docbook-xml
docbook-xml:libxslt

A gdb/dependencies => gdb/dependencies +1 -0
@@ 0,0 1,1 @@
ncurses:expat:xz:libmpfr:readline:Python:libelf

A glib/dependencies => glib/dependencies +1 -0
@@ 0,0 1,1 @@
pcre:libffi:zlib-ng:libmount:libelf

A gmime/dependencies => gmime/dependencies +1 -0
@@ 0,0 1,1 @@
glib:gpgme:zlib-ng

A isync/dependencies => isync/dependencies +1 -0
@@ 0,0 1,1 @@
cyrus-sasl:zlib

A neomutt/dependencies => neomutt/dependencies +1 -0
@@ 0,0 1,1 @@
gpgme:notmuch:gnutls:cyrus-sasl:ncurses:gdbm:zlib:zstd

A notmuch/dependencies => notmuch/dependencies +1 -0
@@ 0,0 1,1 @@
xapian-core:gmime:talloc:xmlto

A printdeps => printdeps +33 -0
@@ 0,0 1,33 @@
#!/bin/sh

print_deps()
{
	local dir=$1
	deps=''
	if [ -e ${dir}/dependencies ]; then
		deps=$(tr ':' '\n' <${dir}/dependencies | sort | tr '\n' ' ')
	fi
	printf "%s" "${deps}"
}

dirlist=''
if [ "$1" = "-h" ]; then
	cat <<! >&2
Usage: $0 [-h] [packages]
	If no packages are given, prints dependencies of all packages in
	subdirectories
!
	exit 1
elif [ $# -lt 1 ]; then
	dirlist=$(find ./* -type d -prune)
else
	dirlist="$*"
fi

for d in ${dirlist}
do
	printf "%s\n" ${d##*/}
	printf '\t'
	print_deps $d
	printf '\n'
done

A s-nail/dependencies => s-nail/dependencies +1 -0
@@ 0,0 1,1 @@
openssl

A unzip/dependencies => unzip/dependencies +1 -0
@@ 0,0 1,1 @@
bzip2

A xapian-core/dependencies => xapian-core/dependencies +1 -0
@@ 0,0 1,1 @@
zlib-ng

A xmlto/dependencies => xmlto/dependencies +1 -0
@@ 0,0 1,1 @@
libsxlt:docbook-xsl-nons