From 96dd8f0a905e6536e26e9c17fdeb134e0a885655 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sun, 11 Apr 2004 13:02:11 +0000 Subject: [PATCH] Add an _os variable than can be used for conditionals in build.sh scripts --- buildpkg.functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildpkg.functions b/buildpkg.functions index d8fb1f9..0e90360 100644 --- a/buildpkg.functions +++ b/buildpkg.functions @@ -58,6 +58,7 @@ CMP=/bin/cmp GREP=/bin/grep UNIQ=/bin/uniq BASENAME=/bin/basename +TR=/bin/tr # Groff stuff for manpages NEQN=/usr/local/bin/neqn @@ -91,6 +92,8 @@ _infodir=info tmpdir=/tmp +_os=$($UNAME -sr|$SED -e 's/ //g' -e 's/\.//g'|$TR '[A-Z]' '[a-z]') + # pkg information. # The following 3 vars can be used when constructing pkg metadata # Override as necessary.