wrongdoc 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.manifest +1 -0
- data/ChangeLog +24 -0
- data/GIT-VERSION-FILE +1 -1
- data/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +6 -101
- data/LATEST +4 -2
- data/NEWS +6 -0
- data/pkg.mk +168 -0
- data/wrongdoc.gemspec +1 -1
- metadata +8 -7
data/.manifest
CHANGED
data/ChangeLog
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
ChangeLog from http://git.bogomips.org/cgit/wrongdoc.git
|
2
2
|
|
3
|
+
commit c499a3a565b6fc9dd06af42d5f48f35e2a5ccd1b
|
4
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
5
|
+
Date: Thu Jan 27 21:53:27 2011 +0000
|
6
|
+
|
7
|
+
wrongdoc 1.4.0 - cleanups and updates
|
8
|
+
|
9
|
+
Eric Wong (2):
|
10
|
+
use pkg.mk from my other projects
|
11
|
+
bump rdoc dependency to 3.4
|
12
|
+
|
13
|
+
commit 23d71019cf3cd2622a915cf89b29f426991a77bd
|
14
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
15
|
+
Date: Thu Jan 27 21:53:00 2011 +0000
|
16
|
+
|
17
|
+
bump rdoc dependency to 3.4
|
18
|
+
|
19
|
+
commit 83961a504c34813bbdcf1edd674850038fbb1bc1
|
20
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
21
|
+
Date: Thu Jan 27 21:50:59 2011 +0000
|
22
|
+
|
23
|
+
use pkg.mk from my other projects
|
24
|
+
|
25
|
+
I like Make :D
|
26
|
+
|
3
27
|
commit 898690ae2b01b3468675b01abe8efef5e6d52781
|
4
28
|
Author: Eric Wong <normalperson@yhbt.net>
|
5
29
|
Date: Tue Jan 4 16:11:30 2011 -0800
|
data/GIT-VERSION-FILE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
GIT_VERSION = 1.
|
1
|
+
GIT_VERSION = 1.4.0
|
data/GIT-VERSION-GEN
CHANGED
data/GNUmakefile
CHANGED
@@ -1,113 +1,18 @@
|
|
1
|
-
# use GNU Make to run tests in parallel, and without depending on RubyGems
|
2
1
|
all::
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
RSYNC_DEST := bogomips.org:/srv/bogomips/wrongdoc
|
3
|
+
rfproject := rainbows
|
4
|
+
rfpackage := wrongdoc
|
5
|
+
include pkg.mk
|
6
6
|
WRONGDOC := $(RUBY) -I lib bin/wrongdoc
|
7
7
|
|
8
|
-
GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
|
9
|
-
@./GIT-VERSION-GEN
|
10
|
-
-include GIT-VERSION-FILE
|
11
|
-
-include local.mk
|
12
|
-
|
13
8
|
man1_paths := $(addprefix man/man1/, wrongdoc.1)
|
14
9
|
man5_paths := $(addprefix man/man5/, dotwrongdoc.5)
|
15
10
|
manpages := $(man1_paths) $(man5_paths)
|
16
11
|
|
17
12
|
clean:
|
18
13
|
-$(MAKE) -C Documentation clean
|
19
|
-
|
20
14
|
man html:
|
21
15
|
$(MAKE) -C Documentation $@
|
16
|
+
pkg_extra += $(manpages)
|
22
17
|
|
23
|
-
|
24
|
-
pkg_extra := GIT-VERSION-FILE ChangeLog LATEST NEWS $(manpages)
|
25
|
-
|
26
|
-
ChangeLog: GIT-VERSION-FILE .wrongdoc.yml
|
27
|
-
$(WRONGDOC) prepare
|
28
|
-
|
29
|
-
.manifest: ChangeLog
|
30
|
-
(git ls-files && for i in $@ $(pkg_extra); do echo $$i; done) | \
|
31
|
-
LC_ALL=C sort > $@+
|
32
|
-
mv $@+ $@
|
33
|
-
|
34
|
-
doc: .document .wrongdoc.yml man html
|
35
|
-
find bin lib -type f -name '*.rbc' -exec rm -f '{}' ';'
|
36
|
-
$(RM) -r doc
|
37
|
-
$(WRONGDOC) all
|
38
|
-
install -m644 COPYING doc/COPYING
|
39
|
-
install -m644 $(shell grep '^[A-Z]' .document) doc/
|
40
|
-
tar cf - man | (cd doc && tar xf -)
|
41
|
-
|
42
|
-
publish_doc:
|
43
|
-
-git set-file-times
|
44
|
-
$(MAKE) doc
|
45
|
-
-find doc/images -type f | \
|
46
|
-
TZ=UTC xargs touch -d '1970-01-01 00:00:01' doc/rdoc.css
|
47
|
-
chmod 644 $$(find doc -type f)
|
48
|
-
$(RSYNC) -av doc/ bogomips.org:/srv/bogomips/wrongdoc/
|
49
|
-
git ls-files | xargs touch
|
50
|
-
|
51
|
-
ifneq ($(VERSION),)
|
52
|
-
rfproject := rainbows
|
53
|
-
rfpackage := wrongdoc
|
54
|
-
pkggem := pkg/$(rfpackage)-$(VERSION).gem
|
55
|
-
pkgtgz := pkg/$(rfpackage)-$(VERSION).tgz
|
56
|
-
release_notes := release_notes-$(VERSION)
|
57
|
-
release_changes := release_changes-$(VERSION)
|
58
|
-
|
59
|
-
release-notes: $(release_notes)
|
60
|
-
release-changes: $(release_changes)
|
61
|
-
$(release_changes):
|
62
|
-
$(WRONGDOC) release_changes > $@+
|
63
|
-
$(VISUAL) $@+ && test -s $@+ && mv $@+ $@
|
64
|
-
$(release_notes):
|
65
|
-
$(WRONGDOC) release_notes > $@+
|
66
|
-
$(VISUAL) $@+ && test -s $@+ && mv $@+ $@
|
67
|
-
|
68
|
-
# ensures we're actually on the tagged $(VERSION), only used for release
|
69
|
-
verify:
|
70
|
-
test x"$(shell umask)" = x0022
|
71
|
-
git rev-parse --verify refs/tags/v$(VERSION)^{}
|
72
|
-
git diff-index --quiet HEAD^0
|
73
|
-
test `git rev-parse --verify HEAD^0` = \
|
74
|
-
`git rev-parse --verify refs/tags/v$(VERSION)^{}`
|
75
|
-
|
76
|
-
fix-perms:
|
77
|
-
-git ls-tree -r HEAD | awk '/^100644 / {print $$NF}' | xargs chmod 644
|
78
|
-
-git ls-tree -r HEAD | awk '/^100755 / {print $$NF}' | xargs chmod 755
|
79
|
-
|
80
|
-
gem: $(pkggem)
|
81
|
-
|
82
|
-
install-gem: $(pkggem)
|
83
|
-
gem install $(CURDIR)/$<
|
84
|
-
|
85
|
-
$(pkggem): .manifest fix-perms
|
86
|
-
gem build $(rfpackage).gemspec
|
87
|
-
mkdir -p pkg
|
88
|
-
mv $(@F) $@
|
89
|
-
|
90
|
-
$(pkgtgz): distdir = $(basename $@)
|
91
|
-
$(pkgtgz): HEAD = v$(VERSION)
|
92
|
-
$(pkgtgz): .manifest fix-perms
|
93
|
-
@test -n "$(distdir)"
|
94
|
-
$(RM) -r $(distdir)
|
95
|
-
mkdir -p $(distdir)
|
96
|
-
tar cf - `cat .manifest` | (cd $(distdir) && tar xf -)
|
97
|
-
cd pkg && tar cf - $(basename $(@F)) | gzip -9 > $(@F)+
|
98
|
-
mv $@+ $@
|
99
|
-
|
100
|
-
package: $(pkgtgz) $(pkggem)
|
101
|
-
|
102
|
-
release: verify package $(release_notes) $(release_changes)
|
103
|
-
rubyforge add_release -f -n $(release_notes) -a $(release_changes) \
|
104
|
-
$(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
|
105
|
-
gem push $(pkggem)
|
106
|
-
-rubyforge add_file \
|
107
|
-
$(rfproject) $(rfpackage) $(VERSION) $(pkggem)
|
108
|
-
else
|
109
|
-
gem install-gem: GIT-VERSION-FILE
|
110
|
-
$(MAKE) $@ VERSION=$(GIT_VERSION)
|
111
|
-
endif
|
112
|
-
|
113
|
-
.PHONY: .FORCE-GIT-VERSION-FILE doc manifest man test
|
18
|
+
doc:: man html
|
data/LATEST
CHANGED
data/NEWS
CHANGED
data/pkg.mk
ADDED
@@ -0,0 +1,168 @@
|
|
1
|
+
RUBY = ruby
|
2
|
+
RAKE = rake
|
3
|
+
RSYNC = rsync
|
4
|
+
WRONGDOC = wrongdoc
|
5
|
+
|
6
|
+
GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
|
7
|
+
@./GIT-VERSION-GEN
|
8
|
+
-include GIT-VERSION-FILE
|
9
|
+
-include local.mk
|
10
|
+
DLEXT := $(shell $(RUBY) -rrbconfig -e 'puts Config::CONFIG["DLEXT"]')
|
11
|
+
RUBY_VERSION := $(shell $(RUBY) -e 'puts RUBY_VERSION')
|
12
|
+
RUBY_ENGINE := $(shell $(RUBY) -e 'puts((RUBY_ENGINE rescue "ruby"))')
|
13
|
+
lib := lib
|
14
|
+
|
15
|
+
ifeq ($(shell test -f script/isolate_for_tests && echo t),t)
|
16
|
+
isolate_libs := tmp/isolate/$(RUBY_ENGINE)-$(RUBY_VERSION)/isolate.mk
|
17
|
+
$(isolate_libs): script/isolate_for_tests
|
18
|
+
@$(RUBY) script/isolate_for_tests
|
19
|
+
-include $(isolate_libs)
|
20
|
+
lib := $(lib):$(ISOLATE_LIBS)
|
21
|
+
endif
|
22
|
+
|
23
|
+
ext := $(firstword $(wildcard ext/*))
|
24
|
+
ifneq ($(ext),)
|
25
|
+
ext_pfx := tmp/ext/$(RUBY_ENGINE)-$(RUBY_VERSION)
|
26
|
+
ext_h := $(wildcard $(ext)/*/*.h $(ext)/*.h)
|
27
|
+
ext_src := $(wildcard $(ext)/*.c $(ext_h))
|
28
|
+
ext_pfx_src := $(addprefix $(ext_pfx)/,$(ext_src))
|
29
|
+
ext_d := $(ext_pfx)/$(ext)/.d
|
30
|
+
$(ext)/extconf.rb: $(wildcard $(ext)/*.h)
|
31
|
+
@>> $@
|
32
|
+
$(ext_d):
|
33
|
+
@mkdir -p $(@D)
|
34
|
+
@> $@
|
35
|
+
$(ext_pfx)/$(ext)/%: $(ext)/% $(ext_d)
|
36
|
+
install -m 644 $< $@
|
37
|
+
$(ext_pfx)/$(ext)/Makefile: $(ext)/extconf.rb $(ext_d) $(ext_h)
|
38
|
+
$(RM) -f $(@D)/*.o
|
39
|
+
cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb
|
40
|
+
ext_sfx := _ext.$(DLEXT)
|
41
|
+
ext_dl := $(ext_pfx)/$(ext)/$(notdir $(ext)_ext.$(DLEXT))
|
42
|
+
$(ext_dl): $(ext_src) $(ext_pfx_src) $(ext_pfx)/$(ext)/Makefile
|
43
|
+
@echo $^ == $@
|
44
|
+
$(MAKE) -C $(@D)
|
45
|
+
lib := $(lib):$(ext_pfx)/$(ext)
|
46
|
+
build: $(ext_dl)
|
47
|
+
endif
|
48
|
+
|
49
|
+
pkg_extra := GIT-VERSION-FILE NEWS ChangeLog LATEST
|
50
|
+
ChangeLog: GIT-VERSION-FILE .wrongdoc.yml
|
51
|
+
$(WRONGDOC) prepare
|
52
|
+
|
53
|
+
manifest:
|
54
|
+
$(RM) .manifest
|
55
|
+
$(MAKE) .manifest
|
56
|
+
|
57
|
+
.manifest: ChangeLog
|
58
|
+
(git ls-files && for i in $@ $(pkg_extra); do echo $$i; done) | \
|
59
|
+
LC_ALL=C sort > $@+
|
60
|
+
cmp $@+ $@ || mv $@+ $@
|
61
|
+
$(RM) $@+
|
62
|
+
|
63
|
+
doc:: .document .wrongdoc.yml
|
64
|
+
find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
|
65
|
+
-find ext -type f -name '*.rbc' -exec rm -f '{}' ';'
|
66
|
+
$(RM) -r doc
|
67
|
+
$(WRONGDOC) all
|
68
|
+
install -m644 COPYING doc/COPYING
|
69
|
+
install -m644 $(shell grep '^[A-Z]' .document) doc/
|
70
|
+
|
71
|
+
ifneq ($(VERSION),)
|
72
|
+
pkggem := pkg/$(rfpackage)-$(VERSION).gem
|
73
|
+
pkgtgz := pkg/$(rfpackage)-$(VERSION).tgz
|
74
|
+
release_notes := release_notes-$(VERSION)
|
75
|
+
release_changes := release_changes-$(VERSION)
|
76
|
+
|
77
|
+
release-notes: $(release_notes)
|
78
|
+
release-changes: $(release_changes)
|
79
|
+
$(release_changes):
|
80
|
+
$(WRONGDOC) release_changes > $@+
|
81
|
+
$(VISUAL) $@+ && test -s $@+ && mv $@+ $@
|
82
|
+
$(release_notes):
|
83
|
+
$(WRONGDOC) release_notes > $@+
|
84
|
+
$(VISUAL) $@+ && test -s $@+ && mv $@+ $@
|
85
|
+
|
86
|
+
# ensures we're actually on the tagged $(VERSION), only used for release
|
87
|
+
verify:
|
88
|
+
test x"$(shell umask)" = x0022
|
89
|
+
git rev-parse --verify refs/tags/v$(VERSION)^{}
|
90
|
+
git diff-index --quiet HEAD^0
|
91
|
+
test $$(git rev-parse --verify HEAD^0) = \
|
92
|
+
$$(git rev-parse --verify refs/tags/v$(VERSION)^{})
|
93
|
+
|
94
|
+
fix-perms:
|
95
|
+
-git ls-tree -r HEAD | awk '/^100644 / {print $$NF}' | xargs chmod 644
|
96
|
+
-git ls-tree -r HEAD | awk '/^100755 / {print $$NF}' | xargs chmod 755
|
97
|
+
|
98
|
+
gem: $(pkggem)
|
99
|
+
|
100
|
+
install-gem: $(pkggem)
|
101
|
+
gem install $(CURDIR)/$<
|
102
|
+
|
103
|
+
$(pkggem): manifest fix-perms
|
104
|
+
gem build $(rfpackage).gemspec
|
105
|
+
mkdir -p pkg
|
106
|
+
mv $(@F) $@
|
107
|
+
|
108
|
+
$(pkgtgz): distdir = $(basename $@)
|
109
|
+
$(pkgtgz): HEAD = v$(VERSION)
|
110
|
+
$(pkgtgz): manifest fix-perms
|
111
|
+
@test -n "$(distdir)"
|
112
|
+
$(RM) -r $(distdir)
|
113
|
+
mkdir -p $(distdir)
|
114
|
+
tar cf - $$(cat .manifest) | (cd $(distdir) && tar xf -)
|
115
|
+
cd pkg && tar cf - $(basename $(@F)) | gzip -9 > $(@F)+
|
116
|
+
mv $@+ $@
|
117
|
+
|
118
|
+
package: $(pkgtgz) $(pkggem)
|
119
|
+
|
120
|
+
test-release:: verify package $(release_notes) $(release_changes)
|
121
|
+
# make tgz release on RubyForge
|
122
|
+
@echo rubyforge add_release -f \
|
123
|
+
-n $(release_notes) -a $(release_changes) \
|
124
|
+
$(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
|
125
|
+
@echo gem push $(pkggem)
|
126
|
+
@echo rubyforge add_file \
|
127
|
+
$(rfproject) $(rfpackage) $(VERSION) $(pkggem)
|
128
|
+
release:: verify package $(release_notes) $(release_changes)
|
129
|
+
# make tgz release on RubyForge
|
130
|
+
rubyforge add_release -f -n $(release_notes) -a $(release_changes) \
|
131
|
+
$(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
|
132
|
+
# push gem to RubyGems.org
|
133
|
+
gem push $(pkggem)
|
134
|
+
# in case of gem downloads from RubyForge releases page
|
135
|
+
rubyforge add_file \
|
136
|
+
$(rfproject) $(rfpackage) $(VERSION) $(pkggem)
|
137
|
+
else
|
138
|
+
gem install-gem: GIT-VERSION-FILE
|
139
|
+
$(MAKE) $@ VERSION=$(GIT_VERSION)
|
140
|
+
endif
|
141
|
+
|
142
|
+
all:: test
|
143
|
+
test_units := $(wildcard test/test_*.rb)
|
144
|
+
test: test-unit
|
145
|
+
test-unit: $(test_units)
|
146
|
+
$(test_units): build
|
147
|
+
$(RUBY) -I $(lib) $@
|
148
|
+
|
149
|
+
# this requires GNU coreutils variants
|
150
|
+
ifneq ($(RSYNC_DEST),)
|
151
|
+
publish_doc:
|
152
|
+
-git set-file-times
|
153
|
+
$(MAKE) doc
|
154
|
+
find doc/images -type f | \
|
155
|
+
TZ=UTC xargs touch -d '1970-01-01 00:00:06' doc/rdoc.css
|
156
|
+
$(MAKE) doc_gz
|
157
|
+
$(RSYNC) -av doc/ $(RSYNC_DEST)/
|
158
|
+
git ls-files | xargs touch
|
159
|
+
endif
|
160
|
+
|
161
|
+
# Create gzip variants of the same timestamp as the original so nginx
|
162
|
+
# "gzip_static on" can serve the gzipped versions directly.
|
163
|
+
doc_gz: docs = $(shell find doc -type f ! -regex '^.*\.\(gif\|jpg\|png\|gz\)$$')
|
164
|
+
doc_gz:
|
165
|
+
for i in $(docs); do \
|
166
|
+
gzip --rsyncable -9 < $$i > $$i.gz; touch -r $$i $$i.gz; done
|
167
|
+
|
168
|
+
.PHONY: all .FORCE-GIT-VERSION-FILE doc test $(test_units) manifest
|
data/wrongdoc.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wrongdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 4
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- wrongdoc hackers
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-27 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -58,11 +58,11 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
hash:
|
61
|
+
hash: 15
|
62
62
|
segments:
|
63
63
|
- 3
|
64
|
-
-
|
65
|
-
version: "3.
|
64
|
+
- 4
|
65
|
+
version: "3.4"
|
66
66
|
type: :runtime
|
67
67
|
version_requirements: *id003
|
68
68
|
description: |-
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- lib/wrongdoc/release.rb
|
135
135
|
- man/man1/wrongdoc.1
|
136
136
|
- man/man5/dotwrongdoc.5
|
137
|
+
- pkg.mk
|
137
138
|
- setup.rb
|
138
139
|
- wrongdoc.gemspec
|
139
140
|
- wrongdoc_1
|