r1551: Updated credits.
[rox-filer.git] / ROX-Filer / src / makedist
blob87e5b719d5b67d2fc9a8b3f43617a90371efcaab
1 #!/usr/bin/env perl
3 chdir "../../../rox";
5 system "cvs rel .";
7 open(VER, "ROX-Filer/AppRun --version 2>&1 |") or die "open(): $!";
8 while (<VER>) {
9 last if /^ROX-Filer/;
11 close(VER);
13 /(\d+)\.(\d+)\.(\d+)$/;
15 ($a, $b, $c) = ($1, $2, $3);
17 print "Check the manual is up-to-date!\n";
18 print "Version $a.$b.$c --- OK?\n";
20 <STDIN> =~ /^[yY]/ or die "OK, fix the version number!\n";
22 system "cvs tag -F Release-$a-$b-$c";
23 system "cd ROX-Filer/src/po; ./update-po; ./dist";
25 chdir;
27 mkdir "rox-$a.$b.$c", 0775 or warn "mkdir() failed: $!\n";
28 chdir "rox-$a.$b.$c";
30 system "cvs -d:pserver:anonymous\@cvs.rox.sourceforge.net:/cvsroot/rox export -r Release-$a-$b-$c rox";
32 system "cd rox/ROX-Filer/src; autoconf; cd Docs; make";
33 system "cp -r ~/Projects/rox/ROX-Filer/Messages/*.gmo rox/ROX-Filer/Messages";
35 system "mv rox/* .";
36 rmdir "rox";
38 system "find -name '.cvsignore' | xargs rm";
40 chdir "..";
41 system "tar czf rox-$a.$b.$c.tgz rox-$a.$b.$c";
42 system "rm -r rox-$a.$b.$c";
44 print "OK, done\n";