~dexter/parrot-pkg/maverick

« back to all changes in this revision

Viewing changes to tools/dev/mk_manifest_and_skip.pl

  • Committer: Piotr Roszatycki
  • Date: 2011-01-11 14:34:28 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: piotr.roszatycki@gmail.com-20110111143428-s7pa7qz38m61o4tw
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! perl
2
 
# $Id: mk_manifest_and_skip.pl 47582 2010-06-13 00:59:01Z coke $
3
2
# Copyright (C) 2006-2010, Parrot Foundation.
4
3
 
5
4
use strict;
10
9
 
11
10
my $script = $0;
12
11
 
13
 
if (-e '.git') {
14
 
    print "Sorry, this script is not compatible with git-svn\n";
15
 
    exit 1;
16
 
}
17
 
 
18
12
my $mani = Parrot::Manifest->new( { script => $script, } );
19
13
 
20
14
my $manifest_lines_ref = $mani->prepare_manifest();
37
31
 
38
32
=head1 DESCRIPTION
39
33
 
40
 
Recreates MANIFEST and MANIFEST.SKIP from the output of C<svn status> and the subversion properties. Run this script after SVN has been told about new or deleted files and before you commit to the repository. So far tested with svn 1.2.0, 1.4.2 and 1.6.6.
 
34
Recreates MANIFEST and MANIFEST.SKIP from the output of C<git status>.
41
35
 
42
 
    svn add PATH...
43
 
    svn delete PATH...
 
36
    git add file1 file2
 
37
    git commit -m "commit msg"
44
38
    perl tools/dev/mk_manifest_and_skip.pl
45
 
    svn commit -m ... [PATH...]
46
 
 
47
 
This won't work for git-svn.
 
39
    git commit -m "update manifest"
 
40
    git push
48
41
 
49
42
=head1 SEE ALSO
50
43