From: Dan Vanderkam Date: Wed, 10 Nov 2010 16:20:58 +0000 (-0500) Subject: remove the commit-hook; it didn't work anyway X-Git-Tag: v1.0.0~610 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=2c95097e35231ad5b40c6ce1903c77a07b3f3158;p=dygraphs.git remove the commit-hook; it didn't work anyway --- diff --git a/commit-hook/commit.cgi b/commit-hook/commit.cgi deleted file mode 100755 index 1494318..0000000 --- a/commit-hook/commit.cgi +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/local/bin/perl -use URI::Escape; -use JSON; - -# Read in the POST data and URL-decode it. -$data=""; -while (<>) { - $data .= $_; -} -$data = uri_unescape($data); -$data =~ s/.*?=//; # JSON::decode_json doesn't like the 'payload=' prefix. - -# Save for debugging. -open (MYFILE, '>./postdata.txt'); -print MYFILE $data; -close (MYFILE); - -# Parse the JSON -$perl_scalar = decode_json $data; -$id=$perl_scalar->{'after'}; -die unless $id =~ /^[0-9][a-f]*$/; -print "Id: $id\n"; - -# Run the actual commit hook. -system("./commit.sh $id"); diff --git a/commit-hook/commit.sh b/commit-hook/commit.sh deleted file mode 100755 index 439cbf8..0000000 --- a/commit-hook/commit.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -id=$1; - -echo id: $id > ./id.txt -dir=git-$id -mkdir $dir -cd $dir - -# TODO(danvk): any way to clone at a particular revision? -git clone --depth 0 git://github.com/danvk/dygraphs.git -cd dygraphs -./generate-combined.sh - -# Copy data over to http://www.danvk.org/dygraphs/ -cp tests/*.html tests/*.js ~/danvk.org/dygraphs/tests/ -cp dygraph.js dygraph-canvas.js dygraph-combined.js gadget.xml excanvas.js thumbnail.png docs/* ~/danvk.org/dygraphs/ - -cd ../.. -rm -rf $dir