3 ################################################################
5 # Copyright (c) 1995-2014 SUSE Linux Products GmbH
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License version 2 or 3 as
9 # published by the Free Software Foundation.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program (see the file COPYING); if not, write to the
18 # Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
21 ################################################################
24 unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
34 if ($ARGV[0] eq '--createmeta')
40 if ($ARGV[0] eq '--manifest')
43 $manifest = shift @ARGV;
51 if ($manifest eq '-') {
55 open(F, '<', $manifest) || die("$manifest: $!\n");
63 for my $file (@files) {
64 my $sig = Build::queryhdrmd5($file);
65 die("$file: no signature available\n") unless $sig;
71 open(F, '>', $mf) || die("$mf: $!\n");
72 print F "$sig sigmd5\n";
73 close(F) || die("$mf: $!\n");