mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* debian/control, debian/copyright, doc/errno.1, errno, setup.py:
- purge the errno utility per request of the ubuntu-dev-tools maintainer; errno now provided by the 'errno' package; (LP: #666540)
This commit is contained in:
parent
4faba7c569
commit
df28e21b54
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,9 +1,15 @@
|
||||
ubuntu-dev-tools (0.114) UNRELEASED; urgency=low
|
||||
|
||||
[ Stefano Rivera ]
|
||||
* ubuntutools.archive: Handle source package in workdir correctly.
|
||||
Add regression tests. (LP: #706403)
|
||||
|
||||
-- Stefano Rivera <stefanor@ubuntu.com> Sat, 22 Jan 2011 23:18:13 +0200
|
||||
[ Dustin Kirkland ]
|
||||
* debian/control, debian/copyright, doc/errno.1, errno, setup.py:
|
||||
- purge the errno utility per request of the ubuntu-dev-tools
|
||||
maintainer; errno now provided by the 'errno' package; (LP: #666540)
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 24 Jan 2011 00:40:03 -0600
|
||||
|
||||
ubuntu-dev-tools (0.113) unstable; urgency=low
|
||||
|
||||
|
1
debian/control
vendored
1
debian/control
vendored
@ -75,7 +75,6 @@ Description: useful tools for Ubuntu developers
|
||||
- debian-distro-info - provides information about Debian's distributions.
|
||||
- dgetlp - download a source package from the Launchpad library.
|
||||
- distro-info - provides information about the distributions' releases.
|
||||
- errno - search POSIX error codes by error number, name, or description
|
||||
- get-branches - used to branch/checkout all the bzr branches in a Launchpad
|
||||
team.
|
||||
- get-build-deps - install the build dependencies needed for a package
|
||||
|
2
debian/copyright
vendored
2
debian/copyright
vendored
@ -9,7 +9,6 @@ Files: *,
|
||||
check-symbols,
|
||||
doc/backportpackage.1,
|
||||
doc/check-symbols.1,
|
||||
doc/errno.1,
|
||||
doc/requestsync.1,
|
||||
doc/ubuntu-iso.1,
|
||||
lp-shell,
|
||||
@ -97,7 +96,6 @@ Files: ack-sync,
|
||||
doc/setup-packaging-environment.1,
|
||||
doc/syncpackage.1,
|
||||
edit-patch,
|
||||
errno,
|
||||
get-branches,
|
||||
grab-attachments,
|
||||
grab-merge,
|
||||
|
22
doc/errno.1
22
doc/errno.1
@ -1,22 +0,0 @@
|
||||
.TH errno 1 "10 Aug 2010" ubuntu-dev-tools "ubuntu-dev-tools"
|
||||
.SH NAME
|
||||
errno \- search POSIX error codes by error number, error name, or error description
|
||||
|
||||
.SH DESCRIPTION
|
||||
\fBerrno\fP is a simple script that interprets a POSIX error code, or finds error codes related to a search string.
|
||||
|
||||
.SH EXAMPLE
|
||||
$ errno 36
|
||||
ENAMETOOLONG 36 /* File name too long */
|
||||
|
||||
$ errno perm
|
||||
EPERM 1 /* Operation not permitted */
|
||||
EACCES 13 /* Permission denied */
|
||||
|
||||
.SH SEE ALSO
|
||||
\fBerrno\fP(2)\fP, \fBerrno\fP(3), \fI/usr/include/asm/errno.h\fP
|
||||
|
||||
.SH AUTHOR
|
||||
This manpage and the utility was written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 published by the Free Software Foundation.
|
||||
|
||||
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
|
42
errno
42
errno
@ -1,42 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# errno - search POSIX error codes by error number, error name,
|
||||
# or error description
|
||||
#
|
||||
# Copyright (C) 2010 Dustin Kirkland <kirkland@ubuntu.com>
|
||||
#
|
||||
# Authors:
|
||||
# Dustin Kirkland <kirkland@ubuntu.com>
|
||||
# Kees Cook <kees@ubuntu.com>
|
||||
# Scott Moser <smoser@ubuntu.com>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, version 3 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
if which gcc >/dev/null; then
|
||||
# Header finding trick from Kees Cook <kees@ubuntu.com>
|
||||
headers=$(echo "#include <asm/errno.h>" | gcc -E - | grep "\.h" | awk -F\" '{print $2}' | sort -u)
|
||||
else
|
||||
headers="/usr/include/asm-generic/errno*.h"
|
||||
fi
|
||||
|
||||
code="$1"
|
||||
|
||||
for code in "${@}"; do
|
||||
if [ "$code" -le 0 -o "$code" -ge 0 ] 2>/dev/null; then
|
||||
# Input is a number, search for a particular matching code
|
||||
sed -n "s,^#define\s\+\([^[:space:]]\+\s\+${code}\s.*\),\1,p" ${headers}
|
||||
else
|
||||
# Input is not a number, search for any matching strings
|
||||
sed -n "s,^#define\s\+\(.*${code}.*\),\1,Ip" ${headers}
|
||||
fi
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user