mkpkgng.in (256281) | mkpkgng.in (271947) |
---|---|
1#!/bin/sh 2#- 3# Copyright (c) 2013 Dag-Erling Sm��rgrav 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 13 unchanged lines hidden (view full) --- 22# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28# SUCH DAMAGE. 29# | 1#!/bin/sh 2#- 3# Copyright (c) 2013 Dag-Erling Sm��rgrav 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 13 unchanged lines hidden (view full) --- 22# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28# SUCH DAMAGE. 29# |
30# $Id: mkpkgng.in 740 2013-09-07 13:03:20Z des $ | 30# $Id: mkpkgng.in 816 2014-09-12 07:50:22Z des $ |
31# 32 33# Print an informational message 34info() { 35 echo "mkpkgng: $@" 36} 37 38# Print an error message and exit --- 25 unchanged lines hidden (view full) --- 64[ -f "$srcdir/include/security/openpam.h" ] || \ 65 error "Unable to locate source directory." 66builddir="@abs_top_builddir@" 67cd "$srcdir" 68 69# 70# Determine pkgng version and ABI 71# | 31# 32 33# Print an informational message 34info() { 35 echo "mkpkgng: $@" 36} 37 38# Print an error message and exit --- 25 unchanged lines hidden (view full) --- 64[ -f "$srcdir/include/security/openpam.h" ] || \ 65 error "Unable to locate source directory." 66builddir="@abs_top_builddir@" 67cd "$srcdir" 68 69# 70# Determine pkgng version and ABI 71# |
72pkgver=$(pkg -vv | awk '$1 == "Version:" { print $2 }') | 72pkgver=$(pkg -v) |
73[ -n "$pkgver" ] || error "Unable to determine pkgng version." | 73[ -n "$pkgver" ] || error "Unable to determine pkgng version." |
74pkgabi=$(pkg -vv | awk '$1 == "ABI:" { print $2 }') | 74pkgabi=$(pkg config abi) |
75[ -n "$pkgabi" ] || error "Unable to determine package ABI." 76 77# 78# Determine package name and version 79# 80package="@PACKAGE@" 81version="@PACKAGE_VERSION@" 82if ! expr "$version" : "[0-9]{1,}$" >/dev/null ; then --- 84 unchanged lines hidden --- | 75[ -n "$pkgabi" ] || error "Unable to determine package ABI." 76 77# 78# Determine package name and version 79# 80package="@PACKAGE@" 81version="@PACKAGE_VERSION@" 82if ! expr "$version" : "[0-9]{1,}$" >/dev/null ; then --- 84 unchanged lines hidden --- |