diff options
author | Thomas Lange <lange@debian.org> | 2024-04-05 20:13:54 +0200 |
---|---|---|
committer | Thomas Lange <lange@debian.org> | 2024-04-05 20:13:54 +0200 |
commit | f55f6a8ba4725808585e94a40cec4097c8f55de8 (patch) | |
tree | afe03cbaf92a62d6660126d16a3b658271efa3db /romanian | |
parent | 58033dc60a9c69e163eac53ced71710117025e07 (diff) |
remove unused scripts, they only use cvs
Diffstat (limited to 'romanian')
-rwxr-xr-x | romanian/whatsnew.pl | 98 | ||||
-rwxr-xr-x | romanian/whatsnew.sh | 68 |
2 files changed, 0 insertions, 166 deletions
diff --git a/romanian/whatsnew.pl b/romanian/whatsnew.pl deleted file mode 100755 index 1e49914154b..00000000000 --- a/romanian/whatsnew.pl +++ /dev/null @@ -1,98 +0,0 @@ -#!/usr/bin/perl - -# $Id$ -# -# find what's out of sync in a folder compared to the original one -# usage -# <script> root-folder original-folder translation-folder [newer|nomatch] [dirs] -# newer - report newer files in original if translation present -# nomatch - report files in original that have no corespondent transl -# dirs - print dirs also -# ex: whatsnew.pl '..' english romanian newer -# - -$action = "newer"; -$rdir = ".."; #root dir -$odir = "english"; -$tdir = "romanian"; -$nodir = "nodir"; - -die "Unsupported since the move to git\n"; - -&usage; - -if ($ARGV[0]) { $rdir = $ARGV[0]; }; -if ($ARGV[1]) { $odir = $ARGV[1]; }; -if ($ARGV[2]) { $tdir = $ARGV[2]; }; -if ($ARGV[3]) { $action = $ARGV[3]; }; -if ( !($action =~ m/^newer$/i) && !($action =~ m/^nomatch$/i)) -{ - die "Unsupported action: $action \n" -} -if ($ARGV[4]) { $nodir = $ARGV[4]; }; - -#first update current branch, then the reference one -printf "Updating from CVS repository **local branch**...\n"; -`cvs update -d`; - -chdir $rdir || die "*** No such root dir: $rdir\n"; -chomp($rdir = `pwd`); - -chdir $odir || die "*** No such dir: $rdir + $odir\n"; -printf "\nUpdating from CVS repository **reference branch**...\n"; -`cvs update -d`; - -chdir ".." || die "*** No such root dir: $rdir\n"; -@files = `find "./$odir" -name '*' -print`; -#print @files; - -for ($i=$#files; $i>=0; $i--) -{ - chomp $files[$i]; - if ( $files[$i] =~ m=/CVS= ) { goto _loop;} - - $tfile = $files[$i]; - $tfile =~ s=$odir=$tdir=; - $mtimeo = (stat($files[$i]))[9]; - $mtimet = (stat($tfile))[9]; - - if ( $action =~ m/newer/i ) - { - if ( ($mtimeo > $mtimet) && -e $tfile ) - { - print "Newer original than translation: $files[$i] \n"; - } - - if ( !(-e $tfile) && -d $files[$i] && !($nodir =~m/nodir/i) ) - { - print "Original dir without correspondent: $files[$i] \n"; - } - } - elsif ( $action =~ m/nomatch/i ) - { - if ( -f $files[$i] && !(-e $tfile) ) - { - print "File without translation: $files[$i] \n"; - } - elsif ( -d $files[$i] && !(-e $tfile) && !($nodir =~m/nodir/i) ) - { - print "Dir without correspondent: $files[$i] \n"; - } - else - { - # - } - } - -_loop: -} - -print "\n=== Done ===\n"; - -#---------------------------------------------------------------- -sub usage -{ - print "\nUsage: \n"; - print " <script> root-folder original-folder translation-folder [newer|nomatch] [dirs]\n\n"; -} -#---------------------------------------------------------------- diff --git a/romanian/whatsnew.sh b/romanian/whatsnew.sh deleted file mode 100755 index d637b5bf93d..00000000000 --- a/romanian/whatsnew.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/sh - -# $Id$ -# -# script to check out the English versions only for the translations -# reason: the site has grown to 30Mb -# -# Usage: cd romanian && ./whatsnew.sh -# - -translation=romanian -efiles="" -tfiles="" - -cd .. -cvs update .wmlrc -cvs update Makefile.common -cvs update check_trans.pl -cvs update -d Perl -cvs update -d english/template -cvs update -d italian/po - -cvs update -d $translation - rm -rf $translation/CD -files=`find $translation -name '*' -print | grep -v CVS` - -for f in $files -do - if [ -f $f ]; then - case $f in - *html) - echo " Skipping $f..." - continue - ;; - esac - - ef=`echo $f | sed s/$translation/english/` - echo "$f <=> $ef" - efiles=$efiles" "$ef - tfiles=$tfiles" "$f - #cvs update -d $f - cvs update -d $ef - fi -done -#echo $tfiles -#echo $efiles -#cvs update $tfiles -#cvs update $efiles - - -# check which one is newer -echo -echo "====== Outdated files: " -for f in $files -do - if [ -f $f ]; then - ef=`echo $f | sed s/$translation/english/` - if [ $ef -nt $f ]; then - echo " $f" - fi - fi -done - -cd $translation -echo "====== Done " - -cd .. && ./check_trans.pl -q $translation - |