From 2d84dd5d653076d1d6f190a70bd8769656f8bea5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 12 Aug 2012 19:22:37 +0200 Subject: [PATCH] add man page, debian/ --- Makefile | 3 ++- debian/changelog | 6 ++++++ debian/compat | 1 + debian/control | 15 +++++++++++++++ debian/copyright | 13 +++++++++++++ debian/oshash.install | 2 ++ debian/rules | 6 ++++++ oshash.1 | 23 +++++++++++++++++++++++ src/oshash.c | 2 +- 9 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/oshash.install create mode 100755 debian/rules create mode 100644 oshash.1 diff --git a/Makefile b/Makefile index 7af8517..ab7e6e8 100644 --- a/Makefile +++ b/Makefile @@ -22,8 +22,9 @@ clean: install: ${PROG} ${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR} + ${INSTALL} -c -m 444 -o root -g root oshash.1 ${MAN1DIR} uninstall: - @rm -f ${BINDIR}/${PROG} + @rm -f ${BINDIR}/${PROG} ${MAN1DIR}/oshash.1 .PHONY: all install uninstall diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..aba44c0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +oshash (0.1~ppa0) oneiric; urgency=low + + * initial debian package + + -- jan gerber Sat, 31 Dec 2011 16:37:24 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..81f74f4 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: oshash +Section: utils +Priority: optional +Maintainer: Jan Gerber +Build-Depends: cdbs (>= 0.4.27-3), debhelper (>> 5.0.0) +Standards-Version: 3.9.2 + +Package: oshash +Architecture: any +Section: utils +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: command-line utility to calculate oshash + command-line tool to calculate oshash of a file. + oshash is a fast but not reliable way to identify + a file. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..771ec58 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Jan Gerber on +Sat Dec 31 16:34:16 CEST 2011. + +It was downloaded from bzr branch http://code.0x2620.org/oshash + +Upstream Authors: Jan Gerber + +Copyright (C) 2011 + +You can find the mentioned GNU General Public License (GPL) (on a +Debian system) in the file /usr/share/common-licenses/GPL. + + diff --git a/debian/oshash.install b/debian/oshash.install new file mode 100644 index 0000000..e9f7db0 --- /dev/null +++ b/debian/oshash.install @@ -0,0 +1,2 @@ +oshash /usr/bin +oshash.1 /usr/share/man/man1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cab2045 --- /dev/null +++ b/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/buildcore.mk +include /usr/share/cdbs/1/class/makefile.mk + diff --git a/oshash.1 b/oshash.1 new file mode 100644 index 0000000..f147c4a --- /dev/null +++ b/oshash.1 @@ -0,0 +1,23 @@ +.TH OSHASH 1 "Aug 12, 2012" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +oshash \- command-line tool to calculate oshash. +.SH SYNOPSIS +.B oshash +.RI filename +.SH DESCRIPTION +This manual page documents the \fBoshash\fP command. +.PP +oshash is a command-line tool to calculate the oshash of a +file. oshash is a fast but not reliable way to identify a file. diff --git a/src/oshash.c b/src/oshash.c index 1d135d7..8701830 100644 --- a/src/oshash.c +++ b/src/oshash.c @@ -1,7 +1,7 @@ /* -*- tab-width:4;c-file-style:"cc-mode"; -*- */ /* * oshash.c -- generate oshash for provided files - * Copyright (C) 2011-2011 + * Copyright (C) 2011-2012 Jan Gerber * * 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