Skip to content
Browse files

authn: build.sh and snapshot script

git-svn-id: https://svn.csail.mit.edu/dig/2009/mod_authn_webid@29575 ee5100c3-270b-0410-b6b6-ca9d7ce675ca
  • Loading branch information...
1 parent 73e6537 commit bae2d4e54e01a050b10bcf7ed21d889c26a6ce31 @presbrey presbrey committed
Showing with 17 additions and 0 deletions.
  1. +3 −0 .htaccess
  2. +11 −0 Download
  3. +3 −0 build.sh
View
3 .htaccess
@@ -0,0 +1,3 @@
+<Files "Download">
+ SetHandler php5-script
+</Files>
View
11 Download
@@ -0,0 +1,11 @@
+<?php
+/* $Id$
+ *
+ * snapshot the current directory
+ */
+
+header('Content-Type: application/x-gtar');
+$d = basename(dirname(__FILE__));
+$p = $d.'-'.time().'.tar.gz';
+header('Content-Disposition: attachment; filename="'.$p.'"');
+passthru('tar -C ../ -cz --exclude-vcs '.$d);
View
3 build.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+autoconf && ./configure && make

0 comments on commit bae2d4e

Please sign in to comment.
Something went wrong with that request. Please try again.