[Assorted-commits] SF.net SVN: assorted:[1034] assorted-site/trunk
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-10-23 16:22:07
|
Revision: 1034 http://assorted.svn.sourceforge.net/assorted/?rev=1034&view=rev Author: yangzhang Date: 2008-10-23 15:31:48 +0000 (Thu, 23 Oct 2008) Log Message: ----------- switched the publishing mechanism to use assorted.bash; tweaks Modified Paths: -------------- assorted-site/trunk/index.txt Added Paths: ----------- assorted-site/trunk/publish.bash Removed Paths: ------------- assorted-site/trunk/build.bash Deleted: assorted-site/trunk/build.bash =================================================================== --- assorted-site/trunk/build.bash 2008-10-23 15:31:26 UTC (rev 1033) +++ assorted-site/trunk/build.bash 2008-10-23 15:31:48 UTC (rev 1034) @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -# preliminaries -set -o errexit -cd "$( dirname "$0" )" -rm -r output 2> /dev/null || true -mkdir output -cd output -base="../../.." - -# main index -cp ../main.css . -pandoc -s -S --tab-stop=2 -c main.css -H ../header.html -A ../footer.html -o index.html ../index.txt - -# XXX fix rest later - -scp index.html main.css sf:assorted/htdocs/ -exit - -rewrite() { - cat << "EOF" -<IfModule mod_rewrite.c> -RewriteEngine On -RewriteBase / -#RewriteCond %{REQUEST_FILENAME} !-f -#RewriteCond %{REQUEST_FILENAME} !-d -EOF - cat - echo '</IfModule>' -} - -rule() { - echo "RewriteRule $@ [L]" >&3 -} - -{ - # python-commons - epydoc -o python-commons "$base/python-commons/trunk/src/commons/" || true - rule '^python-commons/download/?$ http://cheeseshop.python.org/packages/source/p/python-commons/python-commons-0.1.tar.gz' - - # facebook-tools - mkdir facebook-tools - man2html "$base/facebook-tools/trunk/doc/update-facebook-friends.1" > facebook-tools/index.html - rule '^facebook-tools/download/?$ http://assorted.svn.sourceforge.net/viewvc/*checkout*/assorted/facebook-tools/trunk/src/update-facebook-friends.bash' -} 3> >( rewrite > .htaccess ) - -# deploy -tar czf - . | -ssh shell-sf ' - cd assorted - rm -r htdocs-new 2> /dev/null || true - mkdir htdocs-new - tar xzmf - -C htdocs-new - shopt -s dotglob - rm -r htdocs/* - mv htdocs-new/* htdocs/ - rmdir htdocs-new -' Modified: assorted-site/trunk/index.txt =================================================================== --- assorted-site/trunk/index.txt 2008-10-23 15:31:26 UTC (rev 1033) +++ assorted-site/trunk/index.txt 2008-10-23 15:31:48 UTC (rev 1034) @@ -63,6 +63,9 @@ - [Google File Search](http://y_z.scripts.mit.edu/gfs/): a simple web frontend to Google Web Search for finding files in web directory listings (done) + - [WordPress EasyFilter](wp-easy-filter): a small, simple-to-setup plug-in + to allow you to use any custom command-line text filter on your WordPress + posts (done) - Configuration resources and desktop tools - [Vim syntax file for JavaFX](http://www.vim.org/scripts/script.php?script_id=1943) (done) Copied: assorted-site/trunk/publish.bash (from rev 1030, wp-easy-filter/trunk/publish.bash) =================================================================== --- assorted-site/trunk/publish.bash (rev 0) +++ assorted-site/trunk/publish.bash 2008-10-23 15:31:48 UTC (rev 1034) @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +fullname='Assorted Website' +version=0.1 +license=gpl3 +websrcs=( index.txt ) +webfiles=( main.css ) +rels=( src-tgz: ) +nodl=true +webdir=. +chmod=false +footer=footer.html +. assorted.bash "$@" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |