1/*
2 * NAME
3 *      sccs - extract files from SCCS
4 *
5 * DESCRIPTION
6 *      This cookbook is used to extract files from SCCS
7 *
8 * RECIPES
9 *      %: SCCS/s.%     extract files from SCCS
10 *      %: s.%          extract files from SCCS
11 *
12 * VARIABLES
13 *      get             the SCCS get command
14 *      get_flags       flags for the get command, default empty
15 * Copyright (C) 1997-2007 Peter Miller
16 */
17
18#pragma once
19
20if [not [defined get]] then
21        get = get;
22if [not [defined get_flags]] then
23        get_flags = ;
24
25%0%: %0SCCS/s.%
26        set no-implicit-ingredients
27        if [exists %0SCCS/s.%]
28{
29        [get] [get_flags] -p %0SCCS/s.% > %0%;
30}
31
32%0%: %0s.%
33        set no-implicit-ingredients
34        if [exists %0s.%]
35{
36        [get] [get_flags] -p %0s.% > %0%;
37}
38