Skip to content

Commit 6857de8

Browse files
committed
move postscript code to separate repository llgcode/ps
1 parent 3d2a09c commit 6857de8

37 files changed

+6
-2337
lines changed

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ all: install test
66
install:
77
cd draw2d && go install
88
# cd draw2dgl && make install
9-
cd postscript && go install
109
# cd wingui && make install
1110

1211
build:
1312
cd draw2d && go build
1413
# cd draw2dgl && make build
15-
cd postscript && go build
1614
# cd wingui && make build
1715

1816
test:
@@ -22,13 +20,11 @@ test:
2220
cd cmd && go build testdraw2d.go
2321
cd cmd && go build testgopher.go
2422
cd cmd && go build testimage.go
25-
cd cmd && go build testpostscript.go
2623
#cd cmd && go build testX11draw.go
2724

2825
clean:
2926
cd draw2d && go clean
3027
# cd draw2dgl && make clean
31-
cd postscript && go clean
3228
cd cmd && go clean
3329
# cd wingui && make clean
3430

cmd/draw2dgl.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"time"
2929

3030
"github.com/llgcode/draw2d/draw2dgl"
31-
"github.com/llgcode/draw2d/postscript"
31+
"github.com/llgcode/ps"
3232
)
3333

3434
var postscriptContent string
@@ -68,7 +68,7 @@ func display() {
6868
rotate = (rotate + 1) % 360
6969
gc.Rotate(float64(rotate) * math.Pi / 180)
7070
gc.Translate(-380, -400)
71-
interpreter := postscript.NewInterpreter(gc)
71+
interpreter := ps.NewInterpreter(gc)
7272
reader := strings.NewReader(postscriptContent)
7373
lastTime := time.Now()
7474
interpreter.Execute(reader)
@@ -79,7 +79,7 @@ func display() {
7979
}
8080

8181
func main() {
82-
src, err := os.OpenFile("../resource/postscript/tiger.ps", 0, 0)
82+
src, err := os.OpenFile("../../ps/samples/tiger.ps", 0, 0)
8383
if err != nil {
8484
log.Println("can't find postscript file.")
8585
return

cmd/testpostscript.go

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)