[go: up one dir, main page]

File: print

package info (click to toggle)
cook 2.19-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 7,316 kB
  • ctags: 3,969
  • sloc: ansic: 50,331; sh: 13,190; makefile: 4,542; yacc: 3,174; perl: 224; awk: 154
file content (38 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * NAME
 *	print - print files
 *
 * DESCRIPTION
 *	This cookbook is used to print files.
 *	It will almost certainly need to be changed for every site.
 *
 * RECIPES
 *	%.lw: %.ps	print a PostScript file
 *	%.lp: %		print a text file
 *
 * VARIABLES
 *	lp		The print command.
 *			Not altered if already defined.
 *	lp_flags	OPtions passed to the print command.
 *			Not altered if already defined.
 *			Defaults to empty.
 *
 * MANIFEST: cookbook for printing files
 */

#pragma once

if [not [defined lp]] then
	lp = lp;
if [not [defined lp_flags]] then
	lp_flags = ;

%.lw: %.ps
{
	[lp] [lp_flags] -dlaser %.ps;
}

%.lp: %
{
	[lp] [lp_flags] %;
}