Skip to content
Permalink
Browse files

creatensis: build installed.db for osgeo4w-setup

  • Loading branch information
jef-n committed Oct 8, 2013
1 parent e522a20 commit 15efd23b9d9e0473106a6e1e3ead609e7714b07a
Showing with 15 additions and 4 deletions.
  1. +15 −4 ms-windows/osgeo4w/creatensis.pl
@@ -164,17 +164,28 @@ sub getDeps {
my $taropt = "v" x $verbose;

unless(-d $unpacked ) {
mkdir $unpacked, 0755;
mkdir "$unpacked", 0755;
mkdir "$unpacked/bin", 0755;
mkdir "$unpacked/etc", 0755;
mkdir "$unpacked/etc/setup", 0755;

foreach my $p ( keys %pkgs ) {
$p = $file{$p};
# Create package database
open O, ">$unpacked/etc/setup/installed.db";
print O "INSTALLED.DB 2\n";

foreach my $pn ( keys %pkgs ) {
$p = $file{$pn};
$p =~ s#^.*/#$packages/#;

print O "$pn $p 0\n";

print "Unpacking $p...\n" if $verbose;
system "tar $taropt -C $unpacked -xjf $p";
system "tar $taropt -C $unpacked -xjvf $p | gzip -c >$unpacked/etc/setup/$pn.lst.gz";
die "unpacking of $p failed" if $?;
}

close O;

chdir $unpacked;

mkdir "bin", 0755;

0 comments on commit 15efd23

Please sign in to comment.
You can’t perform that action at this time.