xref: /freebsd/release/scripts/make-manifest.sh (revision 59e2ff550c448126b988150ce800cdf73bb5103e)
1#!/bin/sh
2
3# make-manifest.sh: create checksums and package descriptions for the installer
4#
5#  Usage: make-manifest.sh foo1.txz foo2.txz ...
6#
7# The output file looks like this (tab-delimited):
8#  foo1.txz SHA256-checksum Number-of-files foo1 Description Install-by-default
9#
10# $FreeBSD$
11
12desc_base="Base system (MANDATORY)"
13desc_kernel="Kernel (MANDATORY)"
14desc_doc="Additional documentation"
15doc_default=off
16desc_lib32="32-bit compatibility libraries"
17desc_ports="Ports tree"
18desc_src="System source code"
19desc_tests="Test suite"
20src_default=off
21tests_default=off
22
23for i in $*; do
24	echo "`basename $i`	`sha256 -q $i`	`tar tvf $i | wc -l | tr -d ' '`	`basename $i .txz`	\"`eval echo \\\$desc_$(basename $i .txz)`\"	`eval echo \\\${$(basename $i .txz)_default:-on}`"
25done
26
27