Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

Copying Individual Files

The sections on uploading and downloading assume you want to move entire Slisp applications. If you are just interested in uploading or downloading individual files or directories you can use two additional scripts, both of which are in slisp/bin. These scripts are ScopyFiles and Sinstallfiles

Scopyfiles is used to copy a list of files from a source slisp hierarchy to the same relative positions in a destination hierarchy. Thus, if you make changes in only a few files in your local copy of Slisp you can run this file to upload just those files to the archive. The script appends the list of changed files to a file called ChangedFiles in the destination. This list can be cut and pasted into a filelist as input to this script, so that others can download just the changed files to their own local copies.

The syntax for this script is:

ScopyFiles sourcepath destpath filelist

sourcepath is the path to the root of the source slisp hierarchy, eg., /usr/people/brinkley/src/slisp.

destpath is the path to the root of the destination slisp hierarchy, e.g., /usr/local/src/slisp

filelist is a list of pathnames relative to the source and destination hierarchies. Each file in filelist can be either a file or a directory.

The second script is Sinstallfiles. This script has the same syntax as ScopyFiles, except all entries in filelist must be files, not direcctories. All files in filelist are copied to the same level in the destination directory. This is useful for installing lisp files that are all meant to be at the same level in a lisp search directory for slisp applications.

For example destpath in our case will usually be /usr/local/xlisp, since this is the path for loading lisp files in our local environment.

Go to the first, previous, next, last section, table of contents.