IN: scratchpad
USING: kernel parser sequences words compiler ;
-"contrib/crypto/load.factor" run-file
-{ "net-bytes" "aim" }
-[ "contrib/aim/" swap ".factor" append3 run-file ]
+"contrib/crypto/load.factor" run-file
-{ "aim-internals" "aim" }
-[ words [ try-compile ] each ] each
+{
+ "net-bytes"
+ "aim"
+} [ "contrib/aim/" swap ".factor" append3 run-file ]
IN: scratchpad
USING: alien kernel parser compiler words sequences ;
-{ { "cairo" "libcairo" }
- { "sdl-gfx" "libSDL_gfx" }
- { "sdl" "libSDL" } }
-[ first2 add-simple-library ] each
+{
+ { "cairo" "libcairo" }
+ { "sdl-gfx" "libSDL_gfx" }
+ { "sdl" "libSDL" }
+} [ first2 add-simple-library ] each
-{ "cairo" "cairo_sdl" }
-[ "contrib/cairo/" swap ".factor" append3 run-file ] each
-
-{ "cairo" "cairo-sdl" }
-[ words [ try-compile ] each ] each
+{
+ "cairo"
+ "cairo_sdl"
+} [ "contrib/cairo/" swap ".factor" append3 run-file ] each
"contrib/dlists.factor" run-file
"contrib/math/load.factor" run-file
-{ "concurrency" "concurrency-examples" }
-dup
-[ "contrib/concurrency/" swap ".factor" append3 run-file ] each
-[ words [ try-compile ] each ] each
+{
+ "concurrency"
+ "concurrency-examples"
+} [ "contrib/concurrency/" swap ".factor" append3 run-file ] each
IN: scratchpad
USING: words kernel parser sequences io compiler ;
+
"contrib/httpd/load.factor" run-file
"contrib/parser-combinators/load.factor" run-file
-{ "cont-examples" "cont-numbers-game" "todo" "todo-example" "live-updater" "eval-responder" "live-updater-responder" "cont-testing" }
-[ "contrib/cont-responder/" swap ".factor" append3 run-file ] each
-
-{ "cont-examples" "numbers-game" "cont-responder" "eval-responder" "live-updater-responder" "live-updater" "todo-example" "todo" }
-[ words [ try-compile ] each ] each
-
+{
+ "cont-examples"
+ "cont-numbers-game"
+ "todo"
+ "todo-example"
+ "live-updater"
+ "eval-responder"
+ "live-updater-responder"
+ "cont-testing"
+} [ "contrib/cont-responder/" swap ".factor" append3 run-file ] each
IN: scratchpad
USING: kernel parser sequences words compiler ;
-"contrib/math/load.factor" run-file
-{ "common" "md5" "sha1" }
-[ "contrib/crypto/" swap ".factor" append3 run-file ] each
+"contrib/math/load.factor" run-file
-"crypto" words [ try-compile ] each
+{
+ "common"
+ "md5"
+ "sha1"
+} [ "contrib/crypto/" swap ".factor" append3 run-file ] each
IN: scratchpad
USING: words kernel parser sequences io compiler ;
-{ "http-common" "mime" "html-tags" "html" "responder" "httpd" "file-responder" "cont-responder" "browser-responder" "default-responders" "http-client"
- "test/html" "test/http-client" "test/httpd" "test/url-encoding" }
-[ "contrib/httpd/" swap ".factor" append3 run-file ] each
-{ "browser-responder" "cont-responder" "httpd" "file-responder" "html" "http-client" "http" "xml" }
-[ words [ try-compile ] each ] each
+{
+ "http-common"
+ "mime"
+ "html-tags"
+ "html"
+ "responder"
+ "httpd"
+ "file-responder"
+ "cont-responder"
+ "browser-responder"
+ "default-responders"
+ "http-client"
+
+ "test/html"
+ "test/http-client"
+ "test/httpd"
+ "test/url-encoding"
+} [ "contrib/httpd/" swap ".factor" append3 run-file ] each
! Load all contrib libs, compile them, and save a new image.
IN: scratchpad
-USING: alien kernel words sequences parser compiler memory ;
+USING: alien compiler kernel memory parser sequences words ;
-! digraph dependencies {
-! // run-file libs in the correct order to avoid repeated run-filing
-! aim -> crypto
-! concurrency -> dlists
-! concurrency -> math
-! cont-responder -> httpd
-! crypto -> math
-! factor -> x11
-! space-invaders -> parser-combinators
-! cont-responder -> parser-combinators
-! }
+{
+ "coroutines"
+ "dlists"
+ "splay-trees"
+} [ "contrib/" swap ".factor" append3 run-file clear ] each
-{ "coroutines" "dlists" "splay-trees" }
-[ dup
- "contrib/" swap ".factor" append3 run-file
- words [ try-compile ] each ] each
-
-{ "cairo" "math" "concurrency" "crypto" "aim" "httpd" "units" "sqlite" "win32" "x11" ! "factory" has a C component, ick.
- "postgresql" "parser-combinators" "cont-responder" "space-invaders"
-} [ "contrib/" swap "/load.factor" append3 run-file ] each
-
-compile-all
+{ "cairo"
+ "math"
+ "concurrency"
+ "crypto"
+ "aim"
+ "httpd"
+ "units"
+ "sqlite"
+ "win32"
+ "x11"
+ ! "factory" has a C component, ick.
+ "postgresql"
+ "parser-combinators"
+ "cont-responder"
+ "space-invaders"
+} [ "contrib/" swap "/load.factor" append3 run-file clear ] each
IN: scratchpad
USING: kernel parser sequences words compiler ;
-{ "utils" "combinatorics" "analysis" "polynomials" "quaternions" "matrices" "statistics" "numerical-integration" }
-[ "contrib/math/" swap ".factor" append3 run-file ] each
-
-"math-contrib" words [ try-compile ] each
+{
+ "utils"
+ "combinatorics"
+ "analysis"
+ "polynomials"
+ "quaternions"
+ "matrices"
+ "statistics"
+ "numerical-integration"
+} [ "contrib/math/" swap ".factor" append3 run-file ] each
IN: scratchpad
USING: kernel parser sequences words compiler ;
-{ "lazy" "parser-combinators" "lazy-examples" "tests" }
-[ "contrib/parser-combinators/" swap ".factor" append3 run-file ] each
-
-{ "lazy" "lazy-examples" "parser-combinators" }
-[ words [ try-compile ] each ] each
+{
+ "lazy"
+ "parser-combinators"
+ "lazy-examples"
+ "tests"
+} [ "contrib/parser-combinators/" swap ".factor" append3 run-file ] each
IN: scratchpad
USING: alien compiler kernel parser sequences words ;
-"postgresql" "libpq" add-simple-library
-{ "libpq" "postgresql" "postgresql-test" ! "private" ! Put your password in this file
-} [ "contrib/postgresql/" swap ".factor" append3 run-file ] each
-"postgresql" words [ try-compile ] each
+"postgresql" "libpq" add-simple-library
+{
+ "libpq"
+ "postgresql"
+ "postgresql-test"
+ ! "private" ! Put your password in this file
+} [ "contrib/postgresql/" swap ".factor" append3 run-file ] each
IN: scratchpad
USING: kernel parser compiler words sequences io ;
-"contrib/parser-combinators/load.factor" run-file
-
-{ "cpu-8080" "space-invaders" }
-[ "contrib/space-invaders/" swap ".factor" append3 run-file ] each
-{ "cpu-8080" "space-invaders" }
-[ words [ try-compile ] each ] each
+"contrib/parser-combinators/load.factor" run-file
-"Use 'run' in the 'space-invaders' vocabulary to start." print
+{
+ "cpu-8080"
+ "space-invaders"
+} [ "contrib/space-invaders/" swap ".factor" append3 run-file ] each
IN: scratchpad
USING: kernel alien parser compiler words sequences ;
-"sqlite" "libsqlite3" add-simple-library
-{ "sqlite" "tuple-db" "test" "tuple-db-tests" }
-[ "contrib/sqlite/" swap ".factor" append3 run-file ] each
+"sqlite" "libsqlite3" add-simple-library
-{ "sqlite" "tuple-db" }
-[ words [ try-compile ] each ] each
+{
+ "sqlite"
+ "tuple-db"
+ "test"
+ "tuple-db-tests"
+} [ "contrib/sqlite/" swap ".factor" append3 run-file ] each
IN: scratchpad
USING: kernel parser sequences words compiler ;
-{ "dimensioned" "si-units" "constants" }
-[ "contrib/units/" swap ".factor" append3 run-file ] each
-
-{ "units-internal" "units" "si-units" }
-[ words [ try-compile ] each ] each
+{
+ "dimensioned"
+ "si-units"
+ "constants"
+} [ "contrib/units/" swap ".factor" append3 run-file ] each
IN: scratchpad\r
USING: alien compiler kernel parser sequences words ;\r
\r
-{ { "user" "user32" }\r
- { "kernel" "kernel32" } }\r
-[ first2 add-simple-library ] each\r
+{\r
+ { "user" "user32" }\r
+ { "kernel" "kernel32" }\r
+} [ first2 add-simple-library ] each\r
\r
-{ "utils" "types" "kernel32" "user32" }\r
-[ "contrib/win32/" swap ".factor" append3 run-file ] each\r
-\r
-"win32" words [ try-compile ] each\r
+{ \r
+ "utils"\r
+ "types"\r
+ "kernel32"\r
+ "user32"\r
+} [ "contrib/win32/" swap ".factor" append3 run-file ] each\r
IN: scratchpad
-USING: kernel parser words compiler sequences ;
+USING: alien compiler kernel parser sequences words ;
"X11" "libX11" add-simple-library
"gl"
} [ "contrib/x11/" swap ".factor" append3 run-file ] each
-{ "xlib" "x11" } [ words [ try-compile ] each ] each
+! { "xlib" "x11" } [ words [ try-compile ] each ] each
+factor (0.79+cvs20060120-1) unstable; urgency=low
+
+ * Refactored wrapper scripts and reduced build time.
+
+ -- Trent Buck <trentbuck@gmail.com> Fri, 20 Jan 2006 12:18:21 +1100
+
factor (0.79+cvs20060119-1) unstable; urgency=low
* Make an extended.image.
# Build the extended image
sqlite3 contrib/sqlite/test.db < contrib/sqlite/test.txt
$(CC) $(CFLAGS) -L /usr/X11R6/lib -shared -o contrib/factory/simple-error-handler.so contrib/factory/simple-error-handler.c -lX11
- echo 'USING: image kernel ; "extended.image" save-image 0 exit' | ./runtime basic.image contrib/load.factor
+ echo 'USING: image kernel ; "contrib/load.factor" run-file compile-all "extended.image" save-image 0 exit' | ./runtime basic.image +X8
# Build the documentation
cd doc && for i in *.eps; do epstopdf $$i; done
cd doc && rubber --pdf theory
dh_clean -k
dh_installdirs
# Install binary files
- install runtime boot.image basic.image extended.image $(CURDIR)/debian/factor/usr/lib/factor
+ install -m 755 -o root -g root runtime $(CURDIR)/debian/factor/usr/lib/factor
+ install -m 644 -o root -g root boot.image basic.image extended.image $(CURDIR)/debian/factor/usr/lib/factor
# Install source files
- install contrib examples fonts library version.factor $(CURDIR)/debian/factor/usr/share/factor
+ cp -r contrib examples fonts library version.factor $(CURDIR)/debian/factor/usr/share/factor
+ find $(CURDIR)/debian/factor/usr/share/factor -type d -exec chmod 755 {} \;
+ find $(CURDIR)/debian/factor/usr/share/factor -type f -exec chmod 644 {} \;
+ chown -R root.root $(CURDIR)/debian/factor/usr/share/factor
# Install wrapper scripts
- install -m 755 debian/scripts/factor-* $(CURDIR)/debian/factor/usr/bin
+ install -m 755 -o root -g root debian/scripts/factor-* $(CURDIR)/debian/factor/usr/bin
binary-indep: build install