[haiku-webkit-commits] r570 - webkit/trunk

  • From: noreply@xxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Fri, 7 Jan 2011 04:53:01 +0100 (CET)

Author: leavengood
Date: Fri Jan  7 04:53:01 2011
New Revision: 570
URL: http://webpositive.haiku-os.org/changeset/570

Log:
Add a script for making a "release", aka optional package of Web+. The only
setup required is adjusting a few variables at the top. I decided not to put
this with the normal WebKit scripts since it is pretty specific to us.

This does not build Web+, only copies the binaries to an already setup
directory, zips it up (generating the right svn revision and date for the zip
name), and then uploads it to haiku-files.org. All with fairly friendly
prompts.

I'll use this tomorrow to make a release after knocking out a few more bugs.

Added:
   webkit/trunk/prepare_release.sh   (contents, props changed)

Added: webkit/trunk/prepare_release.sh
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ webkit/trunk/prepare_release.sh     Fri Jan  7 04:53:01 2011        (r570)
@@ -0,0 +1,59 @@
+#!/bin/sh
+
+# Change these for your machine's setup
+
+# Where the zip file will be output
+zip_output_dir=/Data/develop/WebPositiveReleases
+# This should be a directory with the proper layout for the zip.
+# Any existing WebPositive binaries will be replaced.
+release_zip_dir=/Data/develop/WebPositiveReleaseDir
+
+# Should not need changing
+app_name=WebPositive
+build_dir=WebKitBuild
+release_dir=$build_dir/Release
+svn_revision_file=$release_dir/objects/WebKit/svn_revision
+svn_revision=`cat $svn_revision_file`
+date_string=`date +%Y-%m-%d`
+zip_file_name=$app_name-gcc4-x86-r$svn_revision-$date_string.zip
+full_zip_output=$zip_output_dir/$zip_file_name
+
+webpositive_dir=$release_zip_dir/apps/$app_name
+webpositive_lib_dir=$release_zip_dir/apps/$app_name/lib
+
+if [ -e $full_zip_output ]; then
+       printf "File already exists. Overwrite? (y or n) "
+       read yes_or_no
+       if [ $yes_or_no == 'y' ]; then
+               rm $full_zip_output
+       else
+               exit
+       fi
+fi
+
+echo Zip file name will be $zip_file_name
+echo Will put WebPositive application in $webpositive_dir and associated 
libraries in $webpositive_lib_dir
+echo The latest WebPositive code should have already been built before running 
this.
+printf "Proceed? (y or n) "
+read yes_or_no
+if [ $yes_or_no == 'y' ]; then
+       # Copy libs
+       install -v $release_dir/JavaScriptCore/libjavascriptcore.so 
$webpositive_lib_dir
+       install -v $release_dir/WebCore/libwebcore.so $webpositive_lib_dir
+       install -v $release_dir/WebKit/libwebkit.so $webpositive_lib_dir
+       # Copy application
+       install -v $release_dir/WebKit/WebPositive $webpositive_dir
+
+       # Make zip file
+       pushd $release_zip_dir
+       zip -r $full_zip_output .
+       popd
+
+       printf "Upload this file to haiku-files.org? (y or n) "
+       read yes_or_no
+       if [ $yes_or_no == 'y' ]; then
+               scp $full_zip_output 
haiku_files@xxxxxxxxxxxxxxx:~/haiku-files.org/files/optional-packages
+       fi
+else
+       echo Doing nothing.
+fi

Other related posts: