Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | ;# $Id: snapshot.pl,v 3.0.1.1 1993/08/24 12:22:34 ram Exp $ |
2 | ;# | |
3 | ;# Copyright (c) 1991-1993, Raphael Manfredi | |
4 | ;# | |
5 | ;# You may redistribute only under the terms of the Artistic Licence, | |
6 | ;# as specified in the README file that comes with the distribution. | |
7 | ;# You may reuse parts of this distribution only within the terms of | |
8 | ;# that same Artistic Licence; a copy of which may be found at the root | |
9 | ;# of the source tree for dist 3.0. | |
10 | ;# | |
11 | ;# $Log: snapshot.pl,v $ | |
12 | ;# Revision 3.0.1.1 1993/08/24 12:22:34 ram | |
13 | ;# patch3: created | |
14 | ;# | |
15 | # Read snapshot file and build %Snap, indexed by file name -> RCS revision | |
16 | sub readsnapshot { | |
17 | local($snap) = @_; | |
18 | open(SNAP, $snap) || warn "Can't open $snap: $!\n"; | |
19 | local($_); | |
20 | local($file, $rev); | |
21 | while (<SNAP>) { | |
22 | next if /^#/; | |
23 | ($file, $rev) = split; | |
24 | $Snap{$file} = "$rev"; | |
25 | } | |
26 | close SNAP; | |
27 | } | |
28 |