Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Meego:Netbook
v8
pack_v8_source.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pack_v8_source.sh of Package v8
#!/bin/bash # # forgive me for the state of this script v8_svn_dir="$1" name=v8 major="`cat $v8_svn_dir/src/version.cc | grep MAJOR_VERSION |grep define | awk {'print $3'}`" minor="`cat $v8_svn_dir/src/version.cc | grep MINOR_VERSION |grep define | awk {'print $3'}`" build="`cat $v8_svn_dir/src/version.cc | grep BUILD_NUMBER |grep define | awk {'print $3'}`" patch="`cat $v8_svn_dir/src/version.cc | grep PATCH_LEVEL |grep define | awk {'print $3'}`" echo "Version: $major.$minor.$build.$patch" xz="`which xz 2>/dev/null`" lzma="`which lzma 2>/dev/null`" if [ -z $v8_svn_dir ] then echo "Usage: `basename $0` [SVN_SOURCE_DIR]" exit 1 fi if [ -f $xz ] then compress=$xz compress_opts='-9 -F lzma' #xz compresses MUCH faster, so why not make it compress more? We have the RAM... echo "using xz" else compress=$lzma compress_opts="-7" echo "using lzma" fi echo echo "Recompressing and excluding svn data" echo " this takes a while, sorry" echo " Compressing with $compress" cd $v8_svn_dir/ cd .. tar --exclude=\.svn -cf - $name/ | $compress ${compress_opts} > "$name"."$major"."$minor"."$build"."$patch".tar.lzma
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor