© 2005-2014 by Denis Sureau - Mozilla License 1.1
Site Update is a free and open source script distributed under the Mozilla 1.1 license.
This tool copies a portion (such as a menu) of a web page to all other pages in the same directory.
locipd [options] source file
locipd [options] directory file
locipd [options] files source @ listefichers
# n digits or letters for the initial marker, if there are more than one.
The default token is <! -XSTARTX -> and the number or letter replaces the second X.
Example: # 1 <! -XSTART1 ->
The end marker always remains <! -XENDX ->
-i Insert only.
In this case, no markers are used, the entire source file is inserted at the beginning of the target files. This is especially appropriate for project source files.
File Source:
The or file accepts text for insertion or replacement. With the -i option, the entire contents of the file are inserted, otherwise the text between the start and end markers is placed in the same markers in the end file.
Directory:
Directory where the files will be taken. If it is not registered, the current directory is saved. In this case, you need to go to the directory and enter:
sitippd source files
@ listefichiers:
In this case, the text file contains a list of pages with their path on the hard disk.
In order for the program to know which part of the page needs to be reprinted, you need to mark it.
Default markers:
<! -XSTARTX -> |
They restrict the text to be copied and where to copy it to other pages.
You can use multiple pairs of markers by changing one letter:
<! - XSTART1-> |
In this example, the number 1 replaces the letter X, and this code must be specified in the command.
Pages are recognized by their extension: html, html, php, php3, php4, php5, xhtml, dhtml, asp...
You can add or remove extensions in the source code and recompile it with the Script compiler.
Syntax:
source # n [directory | @ list] |
n - letter or number: 0.. 9, A.. Z, a.. z, etc.
Copy to all catalog pages:
locipd c :\monsite\index.html c :\monsite |
Tag code command:
locipd c :\monsite\index.html c :\monsite # 1 |
Copy pages to list:
sitippd source @ list |
This configuration file allows you to:
change default markers:
Example:
start = <! -XXXXXX ->
The code always contains the 10th character.
change end marker:
end = <! -YYY->.
Edit the list of extensions.
Example:
extensions = java, cpp
locipd index.php
distribution to all pages of the catalog..
socippd xml.html # 1
propagation for tokens containing the specified code.