Skip to content

Instantly share code, notes, and snippets.

@kirrmann
Created February 21, 2012 16:01
Show Gist options
  • Select an option

  • Save kirrmann/1877151 to your computer and use it in GitHub Desktop.

Select an option

Save kirrmann/1877151 to your computer and use it in GitHub Desktop.

Revisions

  1. kirrmann revised this gist Mar 21, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,4 @@ chmod 755 $installdir/locales
    chmod 644 $installdir/locales/*
    chmod +x $installdir/chrome
    echo "*** cleaning up ***"
    rm -r $tmpdir/*
    rm -r $tmpdir/*
  2. kirrmann revised this gist Mar 21, 2012. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -3,14 +3,14 @@
    backup="/tmp/chromium-linux-backup.tar.gz"
    tmpdir="/tmp/chromium-nightly"
    installdir="/usr/lib/chromium"
    url="http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64"

    echo "*** update script for Chromium nightly builds ***"
    mkdir $tmpdir 2> /dev/null
    cd $tmpdir
    wget -nv --quiet http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE
    NEW=$(<LAST_CHANGE)
    NEW=$(curl -s $url/LAST_CHANGE)
    echo "*** downloading latest build ($NEW) ***"
    wget -nv --quiet http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/$NEW/chrome-linux.zip
    curl -# -L -o chrome-linux.zip $url/$NEW/chrome-linux.zip
    mkdir $installdir &> /dev/null
    echo "*** putting backup to $backup ***"
    tar czf $backup $installdir &> /dev/null
    @@ -21,4 +21,4 @@ chmod 755 $installdir/locales
    chmod 644 $installdir/locales/*
    chmod +x $installdir/chrome
    echo "*** cleaning up ***"
    rm -r $tmpdir/*
    rm -r $tmpdir/*
  3. kirrmann created this gist Feb 21, 2012.
    24 changes: 24 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    #!/bin/bash

    backup="/tmp/chromium-linux-backup.tar.gz"
    tmpdir="/tmp/chromium-nightly"
    installdir="/usr/lib/chromium"

    echo "*** update script for Chromium nightly builds ***"
    mkdir $tmpdir 2> /dev/null
    cd $tmpdir
    wget -nv --quiet http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE
    NEW=$(<LAST_CHANGE)
    echo "*** downloading latest build ($NEW) ***"
    wget -nv --quiet http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/$NEW/chrome-linux.zip
    mkdir $installdir &> /dev/null
    echo "*** putting backup to $backup ***"
    tar czf $backup $installdir &> /dev/null
    echo "*** extracting build ***"
    bsdtar -x --strip-components 1 -f chrome-linux.zip -C /usr/lib/chromium/
    chmod 644 $installdir/*
    chmod 755 $installdir/locales
    chmod 644 $installdir/locales/*
    chmod +x $installdir/chrome
    echo "*** cleaning up ***"
    rm -r $tmpdir/*