1219615Snwhitehorn#!/bin/sh 2219615Snwhitehorn 3219615Snwhitehorn# make-manifest.sh: create checksums and package descriptions for the installer 4219615Snwhitehorn# 5219615Snwhitehorn# Usage: make-manifest.sh foo1.txz foo2.txz ... 6219615Snwhitehorn# 7219615Snwhitehorn# The output file looks like this (tab-delimited): 8278174Sgjb# foo1.txz SHA256-checksum Number-of-files foo1 Description Install-by-default 9219615Snwhitehorn# 10219615Snwhitehorn# $FreeBSD$ 11219615Snwhitehorn 12219615Snwhitehorndesc_base="Base system (MANDATORY)" 13219615Snwhitehorndesc_kernel="Kernel (MANDATORY)" 14219615Snwhitehorndesc_doc="Additional documentation" 15219615Snwhitehorndoc_default=off 16219615Snwhitehorndesc_games="Games (fortune, etc.)" 17219615Snwhitehorndesc_lib32="32-bit compatibility libraries" 18219615Snwhitehorndesc_ports="Ports tree" 19219615Snwhitehorndesc_src="System source code" 20278174Sgjbdesc_tests="Test suite" 21219615Snwhitehornsrc_default=off 22278174Sgjbtests_default=off 23219615Snwhitehorn 24219615Snwhitehornfor i in $*; do 25219615Snwhitehorn 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}`" 26219615Snwhitehorndone 27219615Snwhitehorn 28