[go: up one dir, main page]

File: sccs

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-- 663 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
 *	sccs - extract files from SCCS
 *
 * DESCRIPTION
 *	This cookbook is used to extract files from SCCS
 *
 * RECIPES
 *	%: SCCS/s.%	extract files from SCCS
 *	%: s.%		extract files from SCCS
 *
 * VARIABLES
 *	get		the SCCS get command
 *	get_flags	flags for the get command, default empty
 *
 * MANIFEST: cookbook for using SCCS
 */

#pragma once

if [not [defined get]] then
	get = get;
if [not [defined get_flags]] then
	get_flags = ;

%0%: %0SCCS/s.%
	set no-implicit-ingredients
	if [exists %0SCCS/s.%]
{
	[get] [get_flags] -p %0SCCS/s.% > %0%;
}

%0%: %0s.%
	set no-implicit-ingredients
	if [exists %0s.%]
{
	[get] [get_flags] -p %0s.% > %0%;
}