Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Meego:Netbook
chromium
repack_chromium_archive.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File repack_chromium_archive.sh of Package chromium
#!/bin/bash # # forgive me for the state of this script archive="$1" name=chromium archive_dir=chromium archive_parent_dir=home/chrome-svn/tarball tmp_dir=tmp_chrome xz="`which xz 2>/dev/null`" lzma="`which lzma 2>/dev/null`" if [ -z $archive ] then echo "Usage: `basename $0` [ARCHIVE]" 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 mkdir $tmp_dir cd $tmp_dir echo "Extracting old archive" tar xfz ../"$archive" mv $archive_parent_dir/$archive_dir/ ./ rm -r home/ version="`cat chromium/src/chrome/VERSION | cut -f2 -d= |while read i; do echo -n $i\. ; done`" revision="svn`cat chromium/src/.svn/entries | grep -m1 -A1 'dir' | tr '\n\r' '-' | cut -f2 -d-`" echo "Version: $version" echo "Revision: $revision" # remove big bad ffmpeg binaries. echo echo "Removing ffmpeg binaries/sources" cd $archive_dir/src/third_party/ffmpeg/ rm -rf binaries/ rm -rf source/ echo "Removing courgette sources" cd $archive_dir/src/ rm -rf courgette/ echo echo "Recompressing and excluding svn data" echo " this takes a while, sorry" echo " Compressing with $compress" cd $archive_dir/ cd .. tar --exclude=\.svn -cf - $archive_dir/ | $compress ${compress_opts} > ../"$name"."$version""$revision".tar.lzma echo "Removing temp files" rm -rf $archive_dir cd .. rm -r $tmp_dir
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