r4888: Don't try to thumbnail zero-byte files. They're either empty, or special and
[rox-filer/translations.git] / ROX-Filer / src / makedist
blobecc7f3bdd8e65fb5a4d765be1de9bff492c3b988
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+)*)$/;
15 $version = $1;
16 $_=$1;
17 s/\./_/g;
18 $dash = $_;
20 print "Check the manual is up-to-date!\n";
21 print "Version $version ($dash) --- OK?\n";
23 <STDIN> =~ /^[yY]/ or die "OK, fix the version number!\n";
25 system "cvs tag -F Release-$dash";
26 system "cd ROX-Filer/src/po; ./update-po; ./dist";
28 chdir;
30 mkdir "rox-$version", 0775 or warn "mkdir() failed: $!\n";
31 chdir "rox-$version";
33 system "cvs -dtal197\@cvs.sourceforge.net:/cvsroot/rox export -r Release-$dash rox";
34 #system "cvs -d:pserver:anonymous\@cvs.sourceforge.net:/cvsroot/rox export -r Release-$a-$b-$c rox";
36 system "cd rox/ROX-Filer/src; autoconf; cd Docs; make";
37 system "cp -r ~/Projects/rox/ROX-Filer/Messages/*.gmo rox/ROX-Filer/Messages";
39 system "mv rox/* .";
40 rmdir "rox";
42 system "find -name '.cvsignore' | xargs rm";
44 chdir "..";
45 system "tar czf rox-$version.tgz rox-$version";
46 system "rm -r rox-$version";
48 print "OK, done\n";