Skip to content

Commit a025c1c

Browse files
committed
Packaging stuff, documentation update
1 parent 7b3e9c8 commit a025c1c

File tree

5 files changed

+182
-4
lines changed

5 files changed

+182
-4
lines changed

Makefile

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
TMP = $(CURDIR)/tmp
3+
VERSION = $(shell grep ^Version edd.spec | sed 's/.* //')
4+
5+
# Push files to the production web only when in the master branch
6+
ifeq "$(shell git rev-parse --abbrev-ref HEAD)" "master"
7+
PUSH_URL = fedorapeople.org:public_html/edd
8+
else
9+
PUSH_URL = fedorapeople.org:public_html/edd/testing
10+
endif
11+
12+
PACKAGE = edd-$(VERSION)
13+
DOCS = $(TMP)/$(PACKAGE)/docs
14+
CSS = --stylesheet=style.css --link-stylesheet
15+
FILES = LICENSE README.rst \
16+
Makefile edd.spec \
17+
edd docs
18+
19+
all: push clean
20+
21+
build:
22+
mkdir -p $(TMP)/{SOURCES,$(PACKAGE)}
23+
cp -a $(FILES) $(TMP)/$(PACKAGE)
24+
cp docs/man.rst $(TMP)
25+
tail -n+16 README.rst >> $(TMP)/man.rst
26+
rst2man $(TMP)/man.rst | gzip > $(DOCS)/edd.1.gz
27+
rst2html README.rst $(CSS) > $(DOCS)/index.html
28+
29+
tarball: build
30+
cd $(TMP) && tar cfj SOURCES/$(PACKAGE).tar.bz2 $(PACKAGE)
31+
32+
rpm: tarball
33+
rpmbuild --define '_topdir $(TMP)' -bb edd.spec
34+
35+
srpm: tarball
36+
rpmbuild --define '_topdir $(TMP)' -bs edd.spec
37+
38+
packages: rpm srpm
39+
40+
push: packages
41+
# Documentation & examples
42+
scp $(DOCS)/*.{css,html} $(PUSH_URL)
43+
# Archives & rpms
44+
scp edd.spec \
45+
$(TMP)/SRPMS/$(PACKAGE)* \
46+
$(TMP)/RPMS/noarch/$(PACKAGE)* \
47+
$(TMP)/SOURCES/$(PACKAGE).tar.bz2 \
48+
$(PUSH_URL)/download
49+
50+
clean:
51+
rm -rf $(TMP)

README.rst

+27-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ Vim is not around I feel so slow, so inefficient, so cumbersome.
1414
Thus I created Edd who enables me to use Vim literally anywhere.
1515

1616

17+
Summary
18+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19+
20+
Edd is a tiny script which allows to easily edit content of the
21+
clipboard with a single keyboard shortcut. In this way Edd allows
22+
you to always use your favorite text editor, wherever you need.
23+
24+
1725
Usage
1826
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1927

@@ -45,13 +53,28 @@ The default command is this::
4553
gnome-terminal --geometry 100x44+400+100 --command edd
4654

4755

48-
Bugs
56+
Links
4957
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5058

51-
Fille bugs here: https://github.com/psss/edd/issues/new
59+
Project page:
60+
https://psss.fedorapeople.org/edd/
61+
62+
Download:
63+
http://psss.fedorapeople.org/edd/download/
5264

65+
Copr repo:
66+
http://copr.fedoraproject.org/coprs/psss/edd/
5367

54-
Name
68+
Git repo:
69+
https://github.com/psss/edd
70+
71+
File issues:
72+
https://github.com/psss/edd/issues/new
73+
74+
75+
Names
5576
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5677

57-
Edd is an abbreviation of "EDit clipboarD".
78+
edd is the abbreviation of EDit clipboarD.
79+
80+
psss is the nick of Petr Šplíchal (author).

docs/man.rst

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
==================================================================
2+
Edd
3+
==================================================================
4+
5+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6+
Always use your favorite text editor, anywhere.
7+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8+
9+
:Manual section: 1
10+
:Manual group: User Commands
11+
:Date: August 2015

docs/style.css

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
body {
2+
font-family: "dejavu sans", sans-serif;
3+
width: 80ex;
4+
margin: 3em auto;
5+
background-color: #eee;
6+
border: 3px solid #ddd;
7+
}
8+
9+
div.document {
10+
padding: 3em;
11+
background-color: white;
12+
}
13+
14+
h1.title {
15+
font-size: 200%;
16+
background-color: white;
17+
border: 0px;
18+
margin: 0px;
19+
}
20+
21+
h2.subtitle {
22+
margin-top: 0ex;
23+
font-size: 110%;
24+
}
25+
26+
h1 {
27+
font-size: 130%;
28+
border-bottom: 3px solid #eee;
29+
margin: 3ex 0em 0em 0em;
30+
}
31+
32+
p, li {
33+
line-height: 140%;
34+
list-style-type: square;
35+
}
36+
37+
blockquote {
38+
margin: 1em;
39+
}
40+
41+
pre {
42+
margin-left: 3em;
43+
color: #777;
44+
font-size: 111%;
45+
}
46+
47+
table.docinfo {
48+
display: none;
49+
}
50+
51+
a {
52+
color: #c00;
53+
text-decoration: none;
54+
}

edd.spec

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Name: edd
2+
Version: 0.1
3+
Release: 1%{?dist}
4+
5+
Summary: Always use your favorite text editor, anywhere.
6+
License: GPLv2+
7+
8+
URL: http://psss.fedorapeople.org/edd/
9+
Source0: http://psss.fedorapeople.org/edd/download/%{name}-%{version}.tar.bz2
10+
11+
BuildArch: noarch
12+
Requires: xclip
13+
14+
%description
15+
Edd is a tiny script which allows to easily edit content of the
16+
clipboard with a single keyboard shortcut. In this way Edd allows
17+
you to always use your favorite text editor, wherever you need.
18+
19+
%prep
20+
%setup -q
21+
22+
%build
23+
24+
%install
25+
mkdir -p %{buildroot}%{_bindir}
26+
mkdir -p %{buildroot}%{_mandir}/man1
27+
install -pm 755 edd %{buildroot}%{_bindir}
28+
install -pm 644 docs/*.1.gz %{buildroot}%{_mandir}/man1
29+
30+
%files
31+
%{_mandir}/man1/*
32+
%{_bindir}/edd
33+
%doc README.rst
34+
%{!?_licensedir:%global license %%doc}
35+
%license LICENSE
36+
37+
%changelog
38+
* Tue Aug 25 2015 Petr Šplíchal <[email protected]> 0.1-1
39+
- Initial packaging.

0 commit comments

Comments
 (0)