-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed package script to gauche-package, and added gauche-install sc…
…ript. git-svn-id: https://gauche.svn.sourceforge.net/svnroot/gauche/Gauche/trunk@4464 c205566b-fb4e-0410-ab5c-8f0660156277
- Loading branch information
Showing
11 changed files
with
292 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,10 @@ | ||
;;; | ||
;;; cesconv - a simple Gauche script to convert CESes | ||
;;; | ||
;;; $Id: cesconv,v 1.1 2004-01-27 04:37:57 shirok Exp $ | ||
;;; | ||
;;-*-Scheme-*- | ||
;; $Id: cesconv,v 1.2 2004-04-23 10:17:47 shirok Exp $ | ||
;; | ||
|
||
;; iconv-like script. useful to have during make process. | ||
|
||
(use gauche.charconv) | ||
(use gauche.parseopt) | ||
(use file.filter) | ||
|
||
(define (usage) | ||
(print "Usage: gosh cesconv [options] inputfile") | ||
(print " --from-code, -f encoding : input ces. can be '*jp' to guess.") | ||
(print " --to-code, -t encoding : output ces.") | ||
(print " --output, -o file : output file (instead of stdout)") | ||
(print "When inputfile is omitted, input is taken from stdin.") | ||
(print "when input/output ces is omitted, Gauche's native CES is used.") | ||
(exit 0)) | ||
|
||
(define (process iport oport ices oces) | ||
(copy-port (wrap-with-input-conversion iport ices) | ||
(wrap-with-output-conversion oport oces) | ||
:unit 'char)) | ||
;; Kept for backward compatibility. Will be gone soon. | ||
|
||
(define (main args) | ||
(let-args (cdr args) ((ices "f|from-code=s" (gauche-character-encoding)) | ||
(oces "t|to-code=s" (gauche-character-encoding)) | ||
(outfile "o|output=s" #f) | ||
. files) | ||
(file-filter (lambda (in out) | ||
(let ((inp (wrap-with-input-conversion in ices)) | ||
(outp (wrap-with-output-conversion out oces))) | ||
(copy-port inp outp :unit 'char) | ||
(close-input-port inp) | ||
(close-output-port outp))) | ||
:input (or (and (pair? files) (car files)) | ||
(current-input-port)) | ||
:output (or outfile (current-output-port)) | ||
) | ||
0)) | ||
|
||
;; Local variables: | ||
;; mode: scheme | ||
;; end: | ||
(warn "'cesconv' is obsoleted. Use gauche-cesconv script instead.") | ||
(sys-system (string-join (cons "gauche-cesconv" (cdr args)) " ")) | ||
0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
;;; | ||
;;; gauche-cesconv - a simple Gauche script to convert CESes | ||
;;; | ||
;;; $Id: gauche-cesconv.in,v 1.1 2004-04-23 10:17:47 shirok Exp $ | ||
;;; | ||
|
||
;; iconv-like script. useful to have during make process. | ||
|
||
(use gauche.charconv) | ||
(use gauche.parseopt) | ||
(use file.filter) | ||
|
||
(define (usage) | ||
(print "Usage: gosh cesconv [options] inputfile") | ||
(print " -f, --from-code=encoding : input ces. can be '*jp' to guess.") | ||
(print " -t, --to-code=encoding : output ces.") | ||
(print " -o, --output=file : output file (instead of stdout)") | ||
(print "When inputfile is omitted, input is taken from stdin.") | ||
(print "when input/output ces is omitted, Gauche's native CES is used.") | ||
(exit 0)) | ||
|
||
(define (process iport oport ices oces) | ||
(copy-port (wrap-with-input-conversion iport ices) | ||
(wrap-with-output-conversion oport oces) | ||
:unit 'char)) | ||
|
||
(define (main args) | ||
(let-args (cdr args) ((ices "f|from-code=s" (gauche-character-encoding)) | ||
(oces "t|to-code=s" (gauche-character-encoding)) | ||
(outfile "o|output=s" #f) | ||
(#f "h|help" (usage)) | ||
. files) | ||
(file-filter (lambda (in out) | ||
(let ((inp (wrap-with-input-conversion in ices)) | ||
(outp (wrap-with-output-conversion out oces))) | ||
(copy-port inp outp :unit 'char) | ||
(close-input-port inp) | ||
(close-output-port outp))) | ||
:input (or (and (pair? files) (car files)) | ||
(current-input-port)) | ||
:output (or outfile (current-output-port)) | ||
) | ||
0)) | ||
|
||
;; Local variables: | ||
;; mode: scheme | ||
;; end: |
Oops, something went wrong.