1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# help massage and extract from go development 1.3 net/http the client bits
grab:
cp $(GOCHECKOUT)/src/pkg/net/http/*.go .
cp $(GOCHECKOUT)/LICENSE .
mkdir -p httptest
mkdir -p httputil
mkdir -p testdata
cp $(GOCHECKOUT)/src/pkg/net/http/httptest/*.go httptest
cp $(GOCHECKOUT)/src/pkg/net//http/httputil/*.go httputil
cp $(GOCHECKOUT)/src/pkg/net/http/testdata/* testdata
hg -R $(GOCHECKOUT) summary > _using.txt
full-prepare:
patch -R -p5 < _patches/sync_pool.Rpatch
patch -p1 < _patches/no_keepalive.patch
sed -i -e 's+"net/http"+"launchpad.net/ubuntu-push/http13client"+' *.go httptest/*.go httputil/*.go
sed -i -e 's+"net/http/+"launchpad.net/ubuntu-push/http13client/+' *.go httptest/*.go httputil/*.go
patch -p1 < _patches/no_serve_test_unsupported_bench.patch
prune:
rm -rf example_test.go filetransport*.go fs*.go race.go range_test.go \
sniff*.go httptest httputil testdata triv.go jar.go status.go \
cookie_test.go
sed -i -e 's+"launchpad.net/ubuntu-push/http13client/+"net/http/+' *.go
fix:
patch -p1 < _patches/empty_server.patch
patch -p1 < _patches/fix_tests.patch
patch -p1 < _patches/fix_code.patch
patch -p1 < _patches/fix_status.patch
patch -p1 < _patches/tweak_doc_go.patch
go fmt
wipe:
rm -rf *.go httptest httputil testdata
.PHONY: grab full-prepare prune fix wipe
|