Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22445: LJSUP-12985: Fallback ckeditor from 3.6....

Committer: anazarov
LJSUP-12985: Fallback ckeditor from 3.6.3 to 3.6.2
U   trunk/bin/upgrading/buildck.pl
Modified: trunk/bin/upgrading/buildck.pl
===================================================================
--- trunk/bin/upgrading/buildck.pl	2012-07-13 14:27:34 UTC (rev 22444)
+++ trunk/bin/upgrading/buildck.pl	2012-07-16 08:12:15 UTC (rev 22445)
@@ -6,7 +6,7 @@
 # This script downloads CKEditor source tarball, builds it and installs
 #
 
-my $version  = '3.6.3';
+my $version  = '3.6.2';
 my $build    = join('/', $ENV{'LJHOME'}, qw{ build });
 my $ljsource = join('/', $ENV{'LJHOME'}, qw{ htdocs js ck });
 my $clean    = 0;
@@ -27,11 +27,11 @@
 
 chdir $build or die "Failed to change directory to $build: $!";
 
-`wget $source -O ckeditor.tar.gz` unless -f 'ckeditor.tar.gz';
+`wget $source -O ckeditor-$version.tar.gz` unless -f "ckeditor-$version.tar.gz";
 
 die 'Failed to fetch tarball' if $?;
 
-`tar xpf ckeditor.tar.gz`;
+`tar xpf ckeditor-$version.tar.gz`;
 `mv ckeditor/* ./`;
 `rm -rf ckeditor`;
 
@@ -65,7 +65,7 @@
 print "Build complete\n";
 
 print "Clean up\n" if $clean;
-`rm -rf \$(ls | grep -Pv '(?:ckeditor(?:-dev)?.js|ckeditor.tar.gz)')` if $clean;
+`rm -rf \$(ls | grep -Pv '(?:ckeditor(?:-dev)?.js|ckeditor(.*).tar.gz)')` if $clean;
 
 if ( -f 'ckeditor.js' and -f 'ckeditor-dev.js' ) {
     print `cp -v ckeditor.js ckeditor-dev.js $ljsource` if $deploy;

Tags: anazarov, livejournal, nfokz, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments