Skip to content

Commit edcfb90

Browse files
committed
debianization
1 parent 33ce3df commit edcfb90

10 files changed

+70
-1
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debian/changelog merge=dpkg-mergechangelogs

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
BASEFLAGS=-Wall -fno-warn-orphans
22
GHCFLAGS=-O2 $(BASEFLAGS)
33
bins=github-backup
4+
mans=github-backup.1
45
all=$(bins)
56

67
ifdef PROFILE
@@ -23,6 +24,12 @@ fast: $(bins)
2324
$(bins):
2425
$(GHCMAKE) $@
2526

27+
install: all
28+
install -d $(DESTDIR)$(PREFIX)/bin
29+
install $(bins) $(DESTDIR)$(PREFIX)/bin
30+
install -d $(DESTDIR)$(PREFIX)/share/man/man1
31+
install -m 0644 $(mans) $(DESTDIR)$(PREFIX)/share/man/man1
32+
2633
clean:
2734
rm -f $(bins)
2835
find . \( -name \*.o -or -name \*.hi \) -exec rm {} \;

debian/changelog

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
github-backup (1.20120130) UNRELEASED; urgency=low
2+
3+
* First release.
4+
5+
-- Joey Hess <[email protected]> Tue, 24 Jan 2012 16:21:55 -0400

debian/compat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

debian/control

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Source: github-backup
2+
Section: utils
3+
Priority: optional
4+
Build-Depends:
5+
debhelper (>= 9),
6+
ghc,
7+
libghc-github-dev,
8+
libghc-missingh-dev,
9+
libghc-hslogger-dev,
10+
libghc-pretty-show-dev,
11+
libghc-ifelse-dev,
12+
Maintainer: Joey Hess <[email protected]>
13+
Standards-Version: 3.9.2
14+
Vcs-Git: git://github.com/joeyh/github-backup.git
15+
Homepage: http://guthub.com/joeyh/github-backup
16+
17+
Package: github-backup
18+
Architecture: any
19+
Section: utils
20+
Depends: ${misc:Depends}, ${shlibs:Depends}
21+
Description: backs up data from GitHub
22+
github-backup is a simple tool you run in a git repository you cloned from
23+
GitHub. It backs up everything GitHub publishes about the repository,
24+
including other forks, issues, comments, wikis, milestones, pull requests,
25+
and watchers.

debian/copyright

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Format: http://dep.debian.net/deps/dep5/
2+
Source: native package
3+
4+
Files: *
5+
Copyright: © 2010-2012 Joey Hess <[email protected]>
6+
License: GPL-3+
7+
The full text of version 3 of the GPL is distributed as doc/GPL in
8+
this package's source, or in /usr/share/common-licenses/GPL-3 on
9+
Debian systems.

debian/manpages

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github-backup.1

debian/rules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/make -f
2+
%:
3+
dh $@

github-backup.1

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.\" -*- nroff -*-
2+
.TH github-backup 1 "Commands"
3+
.SH NAME
4+
github-backup \- backs up data from GitHub
5+
.SH SYNOPSIS
6+
.B github-backup [\fIusername\fP]
7+
.SH DESCRIPTION
8+
.I github-backup
9+
is a simple tool you run in a git repository you cloned from
10+
GitHub. It backs up everything GitHub publishes about the repository,
11+
including other forks, issues, comments, wikis, milestones, pull requests,
12+
and watchers.
13+
.PP
14+
Alternately, if you pass it the username of a GitHub user, it will check
15+
out, and back up, all that user's repositories.
16+
.SH AUTHOR
17+
Joey Hess <[email protected]>

github-backup.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Stability: Stable
88
Copyright: 2012 Joey Hess
99
License-File: GPL
1010
Build-Type: Simple
11-
Extra-Source-Files: README.md Makefile
11+
Extra-Source-Files: README.md Makefile git-annex.1
1212
Common.hs github-backup.hs Git/Url.hs Git/Types.hs Git/Queue.hs Git/Ref.hs
1313
Git/Branch.hs Git/Sha.hs Git/Config.hs Git/Command.hs Git/Construct.hs
1414
Setup.hs Github/Data/Readable.hs Utility/Path.hs Utility/TempFile.hs

0 commit comments

Comments
 (0)