~ubuntu-branches/ubuntu/trusty/checkpolicy/trusty

« back to all changes in this revision

Viewing changes to debian/common/get_shlib_ver

  • Committer: Package Import Robot
  • Author(s): Laurent Bigonville
  • Date: 2012-03-27 20:22:24 UTC
  • mfrom: (1.1.17) (2.2.10 sid)
  • Revision ID: package-import@ubuntu.com-20120327202224-6usj2w3sdksoeqs1
Tags: 2.1.8-2
* Team upload.
* Switch to debhelper sequence
* debian/control:
  - Bump Standards-Version to 3.9.3
  - Add Homepage field
  - Update Vcs-* fields
  - Make checkpolicy arch linux-any
  - Put under the Debian SELinux team maintenance
* Add debian/gbp.conf file
* debian/rules: Append CPPFLAGS hardening flags to CFLAGS as build system is
  not using CPPFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh 
2
 
#                               -*- Mode: Sh -*- 
3
 
# get_shlib_ver --- 
4
 
# Author           : Manoj Srivastava ( srivasta@golden-gryphon.com ) 
5
 
# Created On       : Tue Sep  1 15:27:07 2009
6
 
# Created On Node  : anzu.internal.golden-gryphon.com
7
 
# Last Modified By : Manoj Srivastava
8
 
# Status           : Unknown, Use with caution!
9
 
# HISTORY          : 
10
 
# Description      : 
11
 
# If there is a symbols file preent, get the most recent version a
12
 
# symbol was added in.
13
 
14
 
 
15
 
 
16
 
# This program is free software; you can redistribute it and/or modify
17
 
# it under the terms of the GNU General Public License as published by
18
 
# the Free Software Foundation; either version 2 of the License, or
19
 
# (at your option) any later version.
20
 
#
21
 
# This program is distributed in the hope that it will be useful,
22
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
23
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
 
# GNU General Public License for more details.
25
 
#
26
 
# You should have received a copy of the GNU General Public License
27
 
# along with this program; if not, write to the Free Software
28
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
 
30
 
 
31
 
# Make sure we abort on error
32
 
set -e
33
 
progname="$(basename \"$0\")"
34
 
 
35
 
test ! -d debian || \
36
 
  find debian -wholename 'debian/*\.symbols' | while read lib; do
37
 
    echo -n "Shlib info for" ${lib%%.symbols} ": ";
38
 
    sort -n -k 2,2b $lib  | grep '^ ' | tail -n 1 | awk '{print $2;}';
39
 
done
40