Commits

Yuya Nishihara  committed 800432b

use upstream man page; prepare for 1.0

  • Participants
  • Parent commits f7df544

Comments (0)

Files changed (2)

 --- /dev/null
 +++ b/debian/changelog
 @@ -0,0 +1,5 @@
-+vcprompt (0.0.0.20130303hg9cbf272265e8) UNRELEASED; urgency=low
++vcprompt (1.0-1) unstable; urgency=low
 +
-+  * Snapshot release.
++  * Initial release.
 +
-+ -- Yuya Nishihara <yuya@tcha.org>  Sun, 03 Mar 2013 13:03:05 +0900
++ -- Yuya Nishihara <yuya@tcha.org>  Wed, 06 Mar 2013 20:05:50 +0900
 diff --git a/debian/compat b/debian/compat
 new file mode 100644
 --- /dev/null
 +++ b/debian/docs
 @@ -0,0 +1,1 @@
 +README.txt
-diff --git a/debian/manpages b/debian/manpages
-new file mode 100644
---- /dev/null
-+++ b/debian/manpages
-@@ -0,0 +1,1 @@
-+debian/vcprompt.1
 diff --git a/debian/rules b/debian/rules
 new file mode 100755
 --- /dev/null
 +++ b/debian/rules
-@@ -0,0 +1,11 @@
+@@ -0,0 +1,12 @@
 +#!/usr/bin/make -f
 +# -*- makefile -*-
 +
 +	dh $@
 +
 +override_dh_auto_install:
-+	$(MAKE) DESTDIR=$(CURDIR)/debian/vcprompt PREFIX=/usr install
++	$(MAKE) install DESTDIR=$(CURDIR)/debian/vcprompt PREFIX=/usr \
++		MANDIR=$(CURDIR)/debian/vcprompt/usr/share/man/man1
 diff --git a/debian/source/format b/debian/source/format
 new file mode 100644
 --- /dev/null
 +++ b/debian/source/format
 @@ -0,0 +1,1 @@
 +3.0 (native)
-diff --git a/debian/vcprompt.1 b/debian/vcprompt.1
-new file mode 100644
---- /dev/null
-+++ b/debian/vcprompt.1
-@@ -0,0 +1,76 @@
-+.\"                                      Hey, EMACS: -*- nroff -*-
-+.\" First parameter, NAME, should be all caps
-+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
-+.\" other parameters are allowed: see man(7), man(1)
-+.TH VCPROMPT 1 "September 23, 2010"
-+.\" 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 <n>    insert n+1 empty lines
-+.\" for manpage-specific macros, see man(7)
-+.SH NAME
-+vcprompt \- prints a short string about VCS for shell prompt
-+.SH SYNOPSIS
-+.B vcprompt
-+[-h] [-d] [-t timeout_ms] [-f FORMAT]
-+.SH DESCRIPTION
-+This manual page documents briefly the
-+.B vcprompt
-+commands.
-+.PP
-+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
-+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
-+.\" respectively.
-+\fBvcprompt\fP is a little C program that prints a short string, designed to
-+be included in your prompt, with barebones information about the current
-+working directory for various version control systems.  It is designed
-+to be small and lightweight rather than comprehensive.
-+.SH OPTIONS
-+.TP
-+.B \-h
-+show summary of options and formats
-+.TP
-+.B \-d
-+enable debugging output
-+.TP
-+.B \-t
-+stop long-running invocation
-+.TP
-+.B \-f
-+specify output format
-+.SH FORMATS
-+.B %b
-+show branch
-+.br
-+.B %r
-+show revision
-+.br
-+.B %u
-+show unknown
-+.br
-+.B %m
-+show modified
-+.br
-+.B %n
-+show VC name
-+.br
-+.B %%
-+show '%'
-+.SH ENVIRONMENT VARIABLES
-+.TP
-+.B VCPROMPT_FORMAT
-+It specifies output format, overriden by
-+.B \-f
-+option.
-+.SH AUTHOR
-+Gregory P. Ward and contributors.
-+.PP
-+This manual page was written by Yuya Nishihara <yuya@tcha.org>,
-+for the Debian project (and may be used by others).

File make-cflags-default.diff

 # HG changeset patch
-# Parent 1ee4d5ffb721bfad75c3129ab908912af4028774
+# Parent e2c91f6d4117578731ba28e92f0c8f908127b6f1
+
 diff --git a/Makefile b/Makefile
 --- a/Makefile
 +++ b/Makefile
-@@ -1,5 +1,5 @@
+@@ -1,5 +1,6 @@
  
--CFLAGS = -Wall -Wextra -Wno-unused-parameter -g -O2
-+CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -g -O2
+-CFLAGS = -Wall -Wextra -Wno-unused-parameter -std=gnu99 -g
++CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -g
++override CFLAGS += -std=gnu99
  
  headers = $(wildcard src/*.h)
  sources = $(wildcard src/*.c)