summaryrefslogtreecommitdiffstats
path: root/perl-install/getpkgs_deps
blob: bc2d5e0e8dc561abc124f7a84bb4834517e75449 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl

use diagnostics;
use strict;

use lib qw(/usr/bin/perl-install . c c/blib/arch);
use pkgs_deps;
use pkgs;

pkgs_deps::main(pkgs::psUsingDirectory());
n> DISTRIB_NAME = "$(_DISTRIB_NAME)" DISTRIB_VERSION = $(shell sed -n '/^.*version=\([^,]*\),.*/s//\1/p' /etc/product.id) DISTRIB_TYPE = $(shell sed -n '/^.*type=\([^,]*\),.*/s//\1/p' /etc/product.id) DISTRIB_DESCR = "$(_DISTRIB_NAME) release $(DISTRIB_VERSION)" # not config, but useful everywhere :) ARCH := $(patsubst i%86,i386,$(shell uname -m)) ARCH := $(patsubst sparc%,sparc,$(ARCH)) PKG_ARCH := $(patsubst i386,i586,$(ARCH)) ifeq (x86_64, $(ARCH)) LIB = lib64 else LIB = lib endif