Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Build Package

 [1/12] from: jelinem1::nationwide::com at: 9-Jul-2001 9:29


I've created a REBOL pre-processor which will recognize words and perform substitution; with some modification I imagine that one could implement macros with this. Yes, with modification, it could "include" other-script files also. Send me an email if you are interested in getting a copy of the code. - Michael [jelinem1--lnotes-gw--ent--nwie--net] (yes, lotus notes - bleccch!) From: "Robert M. Muench" <[robert--muench--robertmuench--de]>@rebol.com on 07/07/2001 04:15 AM Please respond to [rebol-list--rebol--com] Sent by: [rebol-bounce--rebol--com] To: <[rebol-list--rebol--com]> cc: Subject: [REBOL] Re: Build Package
> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
<<quoted lines omitted: 5>>
> on a large REBOL program that includes multiple files, but > you want a single file to distribute.
Hi, this very handy, it makes distribution a lot easier :-)) but I think the scripts will be devided again at the target site, right? How about expanding it to become a pre-processor, which allows me to integrate several scripts from my development machine into a single file, and this single file is than distributed and run on the target site. Anyone interested? Please note: I once asked this on the list, and someone answered with a nice approach, but I don't have any time at the moment to create a useful Rebol pre-processor... Robert

 [2/12] from: john:schuhr at: 9-Jul-2001 13:22


Maybe you could post it to the library? --John At Monday, 9 July 2001, you wrote:

 [3/12] from: jelinem1:nationwide at: 9-Jul-2001 12:49


But if I posted it, that would make it "official" and I'd have to document it <whine>. Just in case I do decide to put it up for general display, which library are you talking about? rebol.com, rebol.org, etc - Michael From: John Schuhr <[john--schuhr--com]>@rebol.com on 07/09/2001 12:22 PM Please respond to [rebol-list--rebol--com] Sent by: [rebol-bounce--rebol--com] To: [rebol-list--rebol--com] cc: Subject: [REBOL] Re: Build Package Maybe you could post it to the library? --John At Monday, 9 July 2001, you wrote:

 [4/12] from: agem:crosswinds at: 9-Jul-2001 23:12


RE: [REBOL] Re: Build Package [jelinem1--nationwide--com] wrote:
> But if I posted it, that would make it "official" and I'd have to document > it <whine>. Just in case I do decide to put it up for general display, > which library are you talking about? rebol.com, rebol.org, etc >
rebol.com it has a nice history which i regulary check :)
> - Michael
-Volker

 [5/12] from: carl:rebol at: 6-Jul-2001 19:38


Here is a utility that will come in handy if you are working on a large REBOL program that includes multiple files, but you want a single file to distribute. This utility accepts a list of files and combines them into a single, compressed script. The list of files can include binary data such as images, sound, etc. See comments in the code. The utility does a MOLD of a LOAD for each script module, so comments and extra spacing are stripped. (That's a trick we use for building REBOL itself.) The script is in the Util section of the library: http://www.reboltech.com/library/scripts/build-pack.r -Carl

 [6/12] from: ptretter:charter at: 6-Jul-2001 22:28


Very handy Carl. I am gonna use this for a script I have now that has several images and other modules. Paul Tretter

 [7/12] from: robert:muench:robertmuench at: 7-Jul-2001 11:15


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
<<quoted lines omitted: 5>>
> on a large REBOL program that includes multiple files, but > you want a single file to distribute.
Hi, this very handy, it makes distribution a lot easier :-)) but I think the scripts will be devided again at the target site, right? How about expanding it to become a pre-processor, which allows me to integrate several scripts from my development machine into a single file, and this single file is than distributed and run on the target site. Anyone interested? Please note: I once asked this on the list, and someone answered with a nice approach, but I don't have any time at the moment to create a useful Rebol pre-processor... Robert

 [8/12] from: philb:upnaway at: 7-Jul-2001 19:58


Hi Robert, I would certainly be interested .... didnt realise Carl's package would unpack everything on the client side. I have an email client that consists of 19 .r files (1 main file that 'does' the rest of the files which define functions). Currently I have a program to amalgamate everything into 1 big file. But it needs replacing with something more general that I can use with some of my other programs ... especially something that handles graphics & sound files. Cheers Phil
> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
<<quoted lines omitted: 5>>
> on a large REBOL program that includes multiple files, but > you want a single file to distribute.
Hi, this very handy, it makes distribution a lot easier :-)) but I think the scripts will be devided again at the target site, right? How about expanding it to become a pre-processor, which allows me to integrate several scripts from my development machine into a single file, and this single file is than distributed and run on the target site. Anyone interested? Please note: I once asked this on the list, and someone answered with a nice approach, but I don't have any time at the moment to create a useful Rebol pre-processor... Robert

 [9/12] from: ptretter:charter at: 7-Jul-2001 11:01


I actually had problems using it. I modifed the files block as such: files: [ logo: %metal.gif %sec2.r ] Then I successfully saved my new file as blowfish.r which runs ok as long as its in the directory of the original files. If I move blowfish.r somewhere else its gives me a message as such: ** Access Error: Cannot open /C/metal.gif ** Where: repend ** Near: load image-file
>>
I'll look at the build-pack.r script a bit closer when I get the chance. Paul Tretter ----- Original Message ----- From: <[agem--crosswinds--net]> To: <[rebol-list--rebol--com]> Sent: Saturday, July 07, 2001 10:23 AM Subject: [REBOL] Re: Build Package
> RE: [REBOL] Re: Build Package > Hi Carl, Phil!
<<quoted lines omitted: 3>>
> > > > I would certainly be interested .... didnt realise Carl's package would
unpack everything on the client side.
> > > > I have an email client that consists of 19 .r files (1 main file that
'does' the rest of the files which define functions). Currently I have a program to amalgamate everything into 1 big file.
> > But it needs replacing with something more general that I can use with
some of my other programs ... especially something that handles graphics & sound files.

 [10/12] from: agem:crosswinds at: 7-Jul-2001 17:23


RE: [REBOL] Build Package Hi Carl [carl--rebol--com] wrote:
> Here is a utility that will come in handy if you are working > on a large REBOL program that includes multiple files, but
<<quoted lines omitted: 8>>
> The script is in the Util section of the library: > http://www.reboltech.com/library/scripts/build-pack.r
can we trust #64{..} more than debase (hoping ;-) ? and, could editor have something like projects so we can start by pack & test instead of testing the seperate scripts? of course i could hack it, but using launch, running in desktop.. something official would be welcome. (iam to modest to offer to code, except you think iam clever enough ;-) ( with a short description how it should work.. )
> -Carl >
;-) Volker

 [11/12] from: agem:crosswinds at: 7-Jul-2001 17:23


RE: [REBOL] Re: Build Package Hi Carl, Phil! [philb--upnaway--com] wrote:
> Hi Robert, > > I would certainly be interested .... didnt realise Carl's package would unpack everything on the client side. > > I have an email client that consists of 19 .r files (1 main file that 'does' the rest of the files which define functions). Currently I have a program to amalgamate everything into 1 big file. > But it needs replacing with something more general that I can use with some of my other programs ... especially something that handles graphics & sound files. >
What do you expect from carl? tsts. files: [ logo: %test.txt %test.r %test.r ] gives {logo: 64#{SGVsbG8gVGhhaXMh} print "%test.r" print "%test.r"} that means everything is joined, and stuff with variables (logo:) base-64-encoded in variable (images ..) scripts run linear down without need for' do . header is taken from first script with some adds. script looks then like REBOL [Title: "of first script" Built: 7-Jul-2001/15:06:59+2:00 Length: 56] code: 64#{lots-of-crazy-chars} if system/script/header/length <> length? code [alert "Corrupt program." quit] do decompress code no external unpacking required. ;-) Volker

 [12/12] from: petr:krenzelok:trz:cz at: 8-Jul-2001 11:52


Hi :-) archive: open zip://my-archive.zip insert archive [add [%file1 %file2 %filex] create %subdir/ delete %unneeded-file] close archive Every file manager, maybe except stupid Windoze Explorer deals with .zip, .rar., .arj archives as with default directory - you could build your packages or even protect by password without the need to use Rebols cript. Very easily. I was also told that there is free source available for merely all platforms. IIRC rebol 'compress mechanism already uses .zip compatible one? Why to duplicate something what is already done, proved, etc.? Well, I remember the discussion was held here already, but I can't resist :-) -pekr- ----- Original Message ----- From: <[philb--upnaway--com]> To: <[rebol-list--rebol--com]> Sent: Saturday, July 07, 2001 1:58 PM Subject: [REBOL] Re: Build Package
> Hi Robert, > > I would certainly be interested .... didnt realise Carl's package would
unpack everything on the client side.
> I have an email client that consists of 19 .r files (1 main file that
'does' the rest of the files which define functions). Currently I have a program to amalgamate everything into 1 big file.
> But it needs replacing with something more general that I can use with
some of my other programs ... especially something that handles graphics & sound files.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted