assorted-commits Mailing List for Assorted projects (Page 55)
Brought to you by:
yangzhang
You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(86) |
Feb
(265) |
Mar
(96) |
Apr
(47) |
May
(136) |
Jun
(28) |
Jul
(57) |
Aug
(42) |
Sep
(20) |
Oct
(67) |
Nov
(37) |
Dec
(34) |
2009 |
Jan
(39) |
Feb
(85) |
Mar
(96) |
Apr
(24) |
May
(82) |
Jun
(13) |
Jul
(10) |
Aug
(8) |
Sep
(2) |
Oct
(20) |
Nov
(31) |
Dec
(17) |
2010 |
Jan
(16) |
Feb
(11) |
Mar
(17) |
Apr
(53) |
May
(31) |
Jun
(13) |
Jul
(3) |
Aug
(6) |
Sep
(11) |
Oct
(4) |
Nov
(17) |
Dec
(17) |
2011 |
Jan
(3) |
Feb
(19) |
Mar
(5) |
Apr
(17) |
May
(3) |
Jun
(4) |
Jul
(14) |
Aug
(3) |
Sep
(2) |
Oct
(1) |
Nov
(3) |
Dec
(2) |
2012 |
Jan
(3) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
(4) |
Aug
(5) |
Sep
(2) |
Oct
(3) |
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(9) |
Apr
(5) |
May
|
Jun
(2) |
Jul
(1) |
Aug
(10) |
Sep
(1) |
Oct
(2) |
Nov
|
Dec
|
2014 |
Jan
(1) |
Feb
(3) |
Mar
(3) |
Apr
(1) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <yan...@us...> - 2008-03-01 06:21:37
|
Revision: 552 http://assorted.svn.sourceforge.net/assorted/?rev=552&view=rev Author: yangzhang Date: 2008-02-29 22:21:37 -0800 (Fri, 29 Feb 2008) Log Message: ----------- added googlecode_upload.py Modified Paths: -------------- simple-build/trunk/README Added Paths: ----------- simple-build/trunk/src/googlecode_upload.py Modified: simple-build/trunk/README =================================================================== --- simple-build/trunk/README 2008-02-29 17:00:10 UTC (rev 551) +++ simple-build/trunk/README 2008-03-01 06:21:37 UTC (rev 552) @@ -25,6 +25,14 @@ header-to-library mappings - in-place or out-of-place builds +This package also contains a patched version of [`googlecode_upload.py`] that can +use an alternate, simpler auth data file than subversion's cached auth data +(which is [currently broken]). This version uses a file `~/.googlecode.auth` +(with permissions 600) containing your username and password on separate lines. + +[`googlecode_upload.py`]: http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py +[currently broken]: http://code.google.com/p/support/issues/detail?id=558 + Requirements ------------ Added: simple-build/trunk/src/googlecode_upload.py =================================================================== --- simple-build/trunk/src/googlecode_upload.py (rev 0) +++ simple-build/trunk/src/googlecode_upload.py 2008-03-01 06:21:37 UTC (rev 552) @@ -0,0 +1,325 @@ +#!/usr/bin/env python +# +# Copyright 2006, 2007 Google Inc. All Rights Reserved. +# Author: dan...@go... (David Anderson) +# +# Script for uploading files to a Google Code project. +# +# This is intended to be both a useful script for people who want to +# streamline project uploads and a reference implementation for +# uploading files to Google Code projects. +# +# To upload a file to Google Code, you need to provide a path to the +# file on your local machine, a small summary of what the file is, a +# project name, and a valid account that is a member or owner of that +# project. You can optionally provide a list of labels that apply to +# the file. The file will be uploaded under the same name that it has +# in your local filesystem (that is, the "basename" or last path +# component). Run the script with '--help' to get the exact syntax +# and available options. +# +# Note that the upload script requests that you enter your +# googlecode.com password. This is NOT your Gmail account password! +# This is the password you use on googlecode.com for committing to +# Subversion and uploading files. You can find your password by going +# to http://code.google.com/hosting/settings when logged in with your +# Gmail account. If you have already committed to your project's +# Subversion repository, the script will automatically retrieve your +# credentials from there (unless disabled, see the output of '--help' +# for details). +# +# If you are looking at this script as a reference for implementing +# your own Google Code file uploader, then you should take a look at +# the upload() function, which is the meat of the uploader. You +# basically need to build a multipart/form-data POST request with the +# right fields and send it to https://PROJECT.googlecode.com/files . +# Authenticate the request using HTTP Basic authentication, as is +# shown below. +# +# Licensed under the terms of the Apache Software License 2.0: +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Questions, comments, feature requests and patches are most welcome. +# Please direct all of these to the Google Code users group: +# http://groups.google.com/group/google-code-hosting + +"""Google Code file uploader script. +""" + +from __future__ import with_statement + +__author__ = 'dan...@go... (David Anderson)' + +import httplib +import os.path +import optparse +import getpass +import base64 +import sys + + +def get_svn_config_dir(): + """Return user's Subversion configuration directory.""" + try: + from win32com.shell.shell import SHGetFolderPath + import win32com.shell.shellcon + except ImportError: + # If we can't import the win32api, just use ~; this is right on unix, and + # returns not entirely unreasonable results on Windows. + return os.path.expanduser('~/.subversion') + + # We're on Windows with win32api; use APPDATA. + return os.path.join(SHGetFolderPath(0, win32com.shell.shellcon.CSIDL_APPDATA, + 0, 0).encode('utf-8'), + 'Subversion') + + +def get_svn_auth(project_name, config_dir): + """Return (username, password) for project_name in config_dir.""" + + # Default to returning nothing. + result = (None, None) + + try: + from svn.core import SVN_AUTH_CRED_SIMPLE, svn_config_read_auth_data + from svn.core import SubversionException + except ImportError: + return result + + realm = ('<https://%s.googlecode.com:443> Google Code Subversion Repository' + % project_name) + + # auth may be none even if no exception is raised, e.g. if config_dir does + # not exist, or exists but has no entry for realm. + try: + auth = svn_config_read_auth_data(SVN_AUTH_CRED_SIMPLE, realm, config_dir) + except SubversionException: + auth = None + + if auth is not None: + try: + result = (auth['username'], auth['password']) + except KeyError: + # Missing the keys, so return nothing. + pass + + return result + + +def upload(file, project_name, user_name, password, summary, labels=None): + """Upload a file to a Google Code project's file server. + + Args: + file: The local path to the file. + project_name: The name of your project on Google Code. + user_name: Your Google account name. + password: The googlecode.com password for your account. + Note that this is NOT your global Google Account password! + summary: A small description for the file. + labels: an optional list of label strings with which to tag the file. + + Returns: a tuple: + http_status: 201 if the upload succeeded, something else if an + error occured. + http_reason: The human-readable string associated with http_status + file_url: If the upload succeeded, the URL of the file on Google + Code, None otherwise. + """ + # The login is the user part of us...@gm.... If the login provided + # is in the full user@domain form, strip it down. + if '@' in user_name: + user_name = user_name[:user_name.index('@')] + + form_fields = [('summary', summary)] + if labels is not None: + form_fields.extend([('label', l.strip()) for l in labels]) + + content_type, body = encode_upload_request(form_fields, file) + + upload_host = '%s.googlecode.com' % project_name + upload_uri = '/files' + auth_token = base64.b64encode('%s:%s'% (user_name, password)) + headers = { + 'Authorization': 'Basic %s' % auth_token, + 'User-Agent': 'Googlecode.com uploader v0.9.4', + 'Content-Type': content_type, + } + + server = httplib.HTTPSConnection(upload_host) + server.request('POST', upload_uri, body, headers) + resp = server.getresponse() + server.close() + + if resp.status == 201: + location = resp.getheader('Location', None) + else: + location = None + return resp.status, resp.reason, location + + +def encode_upload_request(fields, file_path): + """Encode the given fields and file into a multipart form body. + + fields is a sequence of (name, value) pairs. file is the path of + the file to upload. The file will be uploaded to Google Code with + the same file name. + + Returns: (content_type, body) ready for httplib.HTTP instance + """ + BOUNDARY = '----------Googlecode_boundary_reindeer_flotilla' + CRLF = '\r\n' + + body = [] + + # Add the metadata about the upload first + for key, value in fields: + body.extend( + ['--' + BOUNDARY, + 'Content-Disposition: form-data; name="%s"' % key, + '', + value, + ]) + + # Now add the file itself + file_name = os.path.basename(file_path) + f = open(file_path, 'rb') + file_content = f.read() + f.close() + + body.extend( + ['--' + BOUNDARY, + 'Content-Disposition: form-data; name="filename"; filename="%s"' + % file_name, + # The upload server determines the mime-type, no need to set it. + 'Content-Type: application/octet-stream', + '', + file_content, + ]) + + # Finalize the form body + body.extend(['--' + BOUNDARY + '--', '']) + + return 'multipart/form-data; boundary=%s' % BOUNDARY, CRLF.join(body) + + +def get_basic_auth(): + try: + os.path.expanduser('~/.googlecode.auth') + with file(os.path.expanduser('~/.googlecode.auth')) as f: + return [ line.strip() for line in f ] + except: + print 'crap' + return None, None + +def upload_find_auth(file_path, project_name, summary, labels=None, + config_dir=None, user_name=None, tries=3): + """Find credentials and upload a file to a Google Code project's file server. + + file_path, project_name, summary, and labels are passed as-is to upload. + + If config_dir is None, try get_svn_config_dir(); if it is 'none', skip + trying the Subversion configuration entirely. If user_name is not None, use + it for the first attempt; prompt for subsequent attempts. + + Args: + file_path: The local path to the file. + project_name: The name of your project on Google Code. + summary: A small description for the file. + labels: an optional list of label strings with which to tag the file. + config_dir: Path to Subversion configuration directory, 'none', or None. + user_name: Your Google account name. + tries: How many attempts to make. + """ + + if config_dir != 'none': + # Try to load username/password from svn config for first try. + if config_dir is None: + config_dir = get_svn_config_dir() + (svn_username, password) = (None, None) # get_svn_auth(project_name, config_dir) + if user_name is None: + # If username was not supplied by caller, use svn config. + user_name = svn_username + else: + user_name, password = get_basic_auth() + else: + # Just initialize password for the first try. + password = None + + while tries > 0: + if user_name is None: + # Read username if not specified or loaded from svn config, or on + # subsequent tries. + sys.stdout.write('Please enter your googlecode.com username: ') + sys.stdout.flush() + user_name = sys.stdin.readline().rstrip() + if password is None: + # Read password if not loaded from svn config, or on subsequent tries. + print 'Please enter your googlecode.com password.' + print '** Note that this is NOT your Gmail account password! **' + print 'It is the password you use to access Subversion repositories,' + print 'and can be found here: http://code.google.com/hosting/settings' + password = getpass.getpass() + + status, reason, url = upload(file_path, project_name, user_name, password, + summary, labels) + # Returns 403 Forbidden instead of 401 Unauthorized for bad + # credentials as of 2007-07-17. + if status in [httplib.FORBIDDEN, httplib.UNAUTHORIZED]: + # Rest for another try. + user_name = password = None + tries = tries - 1 + else: + # We're done. + break + + return status, reason, url + + +def main(): + parser = optparse.OptionParser(usage='googlecode-upload.py -s SUMMARY ' + '-p PROJECT [options] FILE') + parser.add_option('--config-dir', dest='config_dir', metavar='DIR', + help='read svn auth data from DIR' + ' ("none" means not to use svn auth data)') + parser.add_option('-s', '--summary', dest='summary', + help='Short description of the file') + parser.add_option('-p', '--project', dest='project', + help='Google Code project name') + parser.add_option('-u', '--user', dest='user', + help='Your Google Code username') + parser.add_option('-l', '--labels', dest='labels', + help='An optional list of labels to attach to the file') + + options, args = parser.parse_args() + + if not options.summary: + parser.error('File summary is missing.') + elif not options.project: + parser.error('Project name is missing.') + elif len(args) < 1: + parser.error('File to upload not provided.') + elif len(args) > 1: + parser.error('Only one file may be specified.') + + file_path = args[0] + + if options.labels: + labels = options.labels.split(',') + else: + labels = None + + status, reason, url = upload_find_auth(file_path, options.project, + options.summary, labels, + options.config_dir, options.user) + if url: + print 'The file was uploaded successfully.' + print 'URL: %s' % url + return 0 + else: + print 'An error occurred. Your file was not uploaded.' + print 'Google Code upload server said: %s (%s)' % (reason, status) + return 1 + + +if __name__ == '__main__': + sys.exit(main()) Property changes on: simple-build/trunk/src/googlecode_upload.py ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 17:00:17
|
Revision: 551 http://assorted.svn.sourceforge.net/assorted/?rev=551&view=rev Author: yangzhang Date: 2008-02-29 09:00:10 -0800 (Fri, 29 Feb 2008) Log Message: ----------- added publisher Added Paths: ----------- python-commons/trunk/publish.bash Added: python-commons/trunk/publish.bash =================================================================== --- python-commons/trunk/publish.bash (rev 0) +++ python-commons/trunk/publish.bash 2008-02-29 17:00:10 UTC (rev 551) @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +epydoc -o doc src/commons/ + +project=python-commons +clean=false +websrcs=() +webfiles=( doc/* ) +. assorted.bash "$@" Property changes on: python-commons/trunk/publish.bash ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 16:50:16
|
Revision: 550 http://assorted.svn.sourceforge.net/assorted/?rev=550&view=rev Author: yangzhang Date: 2008-02-29 08:50:13 -0800 (Fri, 29 Feb 2008) Log Message: ----------- enhancements to assorted.bash Modified Paths: -------------- shell-tools/trunk/src/bash-commons/assorted.bash Modified: shell-tools/trunk/src/bash-commons/assorted.bash =================================================================== --- shell-tools/trunk/src/bash-commons/assorted.bash 2008-02-29 16:50:02 UTC (rev 549) +++ shell-tools/trunk/src/bash-commons/assorted.bash 2008-02-29 16:50:13 UTC (rev 550) @@ -12,8 +12,15 @@ webdir=$base_web_dir/$project stagedir="$( mktemp -d )" -if (( ${#webfiles} > 0 )) -then cp -r "${webfiles[@]}" "$stagedir" +if (( ${#webfiles} > 0 )) ; then + for inp in "${webfiles[@]}" ; do + if [[ "${inp%:*}" == "$inp" ]] ; then + cp -r "$inp" "$stagedir/" + else + mkdir -p "$stagedir/${inp%:*}" + cp -r $( eval ls "${inp#*:}" ) "$stagedir/${inp%:*}" + fi + done fi if (( ${#websrcs} > 0 )) ; then This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 16:50:02
|
Revision: 549 http://assorted.svn.sourceforge.net/assorted/?rev=549&view=rev Author: yangzhang Date: 2008-02-29 08:50:02 -0800 (Fri, 29 Feb 2008) Log Message: ----------- added publisher Added Paths: ----------- java-reactor/trunk/publish.bash Added: java-reactor/trunk/publish.bash =================================================================== --- java-reactor/trunk/publish.bash (rev 0) +++ java-reactor/trunk/publish.bash 2008-02-29 16:50:02 UTC (rev 549) @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +project=java-reactor +clean=false +websrcs=( README ) +webfiles=() +. assorted.bash "$@" Property changes on: java-reactor/trunk/publish.bash ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 16:49:38
|
Revision: 548 http://assorted.svn.sourceforge.net/assorted/?rev=548&view=rev Author: yangzhang Date: 2008-02-29 08:49:43 -0800 (Fri, 29 Feb 2008) Log Message: ----------- publisher publishes data Modified Paths: -------------- hash-join/trunk/publish.bash Removed Paths: ------------- hash-join/trunk/doc/Makefile Deleted: hash-join/trunk/doc/Makefile =================================================================== --- hash-join/trunk/doc/Makefile 2008-02-29 16:49:18 UTC (rev 547) +++ hash-join/trunk/doc/Makefile 2008-02-29 16:49:43 UTC (rev 548) @@ -1,24 +0,0 @@ -PROJECT := hash-join -WEBDIR := assorted/htdocs/$(PROJECT) -HTMLFRAG := ../../../assorted-site/trunk -PANDOC = pandoc -s -S --tab-stop=2 -c ../main.css -H $(HTMLFRAG)/header.html -A $(HTMLFRAG)/google-footer.html -o $@ $^ - -all: index.html analysis.html - -index.html: ../README - $(PANDOC) - -analysis.html: analysis.txt - $(PANDOC) - -publish: analysis.html index.html - ssh shell-sf mkdir -p $(WEBDIR)/ - scp $^ shell-sf:$(WEBDIR)/ - -publish-data: ../tools/data/*.pdf - scp $^ shell-sf:$(WEBDIR)/ - -clean: - rm -f index.html analysis.html - -.PHONY: clean publish publish-data Modified: hash-join/trunk/publish.bash =================================================================== --- hash-join/trunk/publish.bash 2008-02-29 16:49:18 UTC (rev 547) +++ hash-join/trunk/publish.bash 2008-02-29 16:49:43 UTC (rev 548) @@ -3,5 +3,5 @@ project=hash-join clean=false websrcs=( README doc/analysis.txt ) -webfiles=() +webfiles=( tools/data/*.pdf ) . assorted.bash "$@" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 16:49:35
|
Revision: 547 http://assorted.svn.sourceforge.net/assorted/?rev=547&view=rev Author: yangzhang Date: 2008-02-29 08:49:18 -0800 (Fri, 29 Feb 2008) Log Message: ----------- simplification Modified Paths: -------------- scala-commons/trunk/publish.bash Modified: scala-commons/trunk/publish.bash =================================================================== --- scala-commons/trunk/publish.bash 2008-02-29 16:34:24 UTC (rev 546) +++ scala-commons/trunk/publish.bash 2008-02-29 16:49:18 UTC (rev 547) @@ -7,5 +7,5 @@ project=scala-commons clean=false websrcs=( README ) -webfiles=( :src/doc :src/out/scala-commons.jar ) +webfiles=( src/doc src/out/scala-commons.jar ) . assorted.bash "$@" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 16:34:23
|
Revision: 546 http://assorted.svn.sourceforge.net/assorted/?rev=546&view=rev Author: yangzhang Date: 2008-02-29 08:34:24 -0800 (Fri, 29 Feb 2008) Log Message: ----------- updates to analysis Modified Paths: -------------- numa-bench/trunk/doc/analysis.txt Modified: numa-bench/trunk/doc/analysis.txt =================================================================== --- numa-bench/trunk/doc/analysis.txt 2008-02-29 16:34:11 UTC (rev 545) +++ numa-bench/trunk/doc/analysis.txt 2008-02-29 16:34:24 UTC (rev 546) @@ -1,9 +1,10 @@ % NUMA Benchmarks Analysis % Yang Zhang -The [graphs](graphs) show the results of running several different experiments. The -results are averaged across three trials for each experiment. The experiments -varied the following parameters: +All tests were performed on `josmp.csail.mit.edu`. The [graphs](graphs) show +the results of running several different experiments. The results are averaged +across three trials for each experiment. The experiments varied the following +parameters: - number of threads (CPUs, 1-16, usually 16 if not testing scalability) - size of the memory buffer to operate on (10MB, 100MB, or 1GB) @@ -15,6 +16,9 @@ ourselves) or on buffers that all other nodes allocated (for cross-communication) - whether to perform writes to the buffer, otherwise just read +- in experiments varying the number of cores $k$ working concurrently: whether + we're using cores 1 through $k$ or cores across the nodes in round-robin + fashion Here are some questions these results help answer: @@ -66,5 +70,3 @@ the experiments varying the number of cores all exercise the fewest number of chips; the results may be quite different for tests that distribute the loaded cores across all chips. - -*Update*: all tests were performed on josmp.csail.mit.edu. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 16:34:13
|
Revision: 545 http://assorted.svn.sourceforge.net/assorted/?rev=545&view=rev Author: yangzhang Date: 2008-02-29 08:34:11 -0800 (Fri, 29 Feb 2008) Log Message: ----------- added publisher Added Paths: ----------- numa-bench/trunk/publish.bash Removed Paths: ------------- numa-bench/trunk/doc/Makefile Deleted: numa-bench/trunk/doc/Makefile =================================================================== --- numa-bench/trunk/doc/Makefile 2008-02-29 16:30:30 UTC (rev 544) +++ numa-bench/trunk/doc/Makefile 2008-02-29 16:34:11 UTC (rev 545) @@ -1,24 +0,0 @@ -PROJECT := numa-bench -WEBDIR := assorted/htdocs/$(PROJECT) -HTMLFRAG := ../../../assorted-site/trunk -PANDOC = pandoc -s -S --tab-stop=2 -c ../main.css -H $(HTMLFRAG)/header.html -A $(HTMLFRAG)/google-footer.html -o $@ $^ - -all: index.html analysis.html - -index.html: ../README - $(PANDOC) - -analysis.html: analysis.txt - $(PANDOC) - -publish: analysis.html index.html - ssh shell-sf mkdir -p $(WEBDIR)/graphs/ - scp $^ shell-sf:$(WEBDIR)/ - -publish-data: ../tools/graphs/*.pdf - scp $^ shell-sf:$(WEBDIR)/graphs/ - -clean: - rm -f index.html analysis.html - -.PHONY: clean publish publish-data Added: numa-bench/trunk/publish.bash =================================================================== --- numa-bench/trunk/publish.bash (rev 0) +++ numa-bench/trunk/publish.bash 2008-02-29 16:34:11 UTC (rev 545) @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +project=numa-bench +clean=false +websrcs=( README doc/analysis.txt ) +webfiles=( graphs:tools/graphs/*.pdf ) +. assorted.bash "$@" Property changes on: numa-bench/trunk/publish.bash ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 16:30:37
|
Revision: 544 http://assorted.svn.sourceforge.net/assorted/?rev=544&view=rev Author: yangzhang Date: 2008-02-29 08:30:30 -0800 (Fri, 29 Feb 2008) Log Message: ----------- tweaked readme Modified Paths: -------------- hash-join/trunk/README Modified: hash-join/trunk/README =================================================================== --- hash-join/trunk/README 2008-02-29 16:30:20 UTC (rev 543) +++ hash-join/trunk/README 2008-02-29 16:30:30 UTC (rev 544) @@ -41,6 +41,10 @@ - [g++] 4.2 - [libstdc++] 4.2 +[libstdc++]: http://gcc.gnu.org/libstdc++/ +[C++ Commons]: http://assorted.sf.net/cpp-commons/ +[g++]: http://gcc.gnu.org/ + Building -------- @@ -51,8 +55,8 @@ $ svn --quiet co https://assorted.svn.sourceforge.net/svnroot/assorted/hash-join/trunk hash-join $ ln -s "$PWD/cpp-commons/src/commons" hash-join/src/ $ cd hash-join/src/ - $ make opt - $ ./hashjoin-opt 16 $MOVIEDATA/{movies,actresses}.dat + $ make hashjoin-opt + $ out/hashjoin-opt 16 $MOVIEDATA/{movies,actresses}.dat Supporting Tools ---------------- @@ -77,12 +81,9 @@ I used [HashDist] to experiment with the chaining of various hash functions on this dataset and to observe the resulting distributions. -[C++ Commons]: http://assorted.sf.net/cpp-commons/ [HashDist]: http://assorted.svn.sourceforge.net/viewvc/assorted/hash-dist/trunk/ [Multiprocessor Hash-Based Join Algorithms]: http://citeseer.ist.psu.edu/50143.html [Scala Commons]: http://assorted.sf.net/scala-commons/ -[g++]: http://gcc.gnu.org/ [here]: http://us.imdb.com/interfaces#plain -[libstdc++]: http://gcc.gnu.org/libstdc++/ [results]: analysis.html [some datasets]: http://people.csail.mit.edu/yang/movie-data/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 16:30:23
|
Revision: 543 http://assorted.svn.sourceforge.net/assorted/?rev=543&view=rev Author: yangzhang Date: 2008-02-29 08:30:20 -0800 (Fri, 29 Feb 2008) Log Message: ----------- added publisher Added Paths: ----------- hash-join/trunk/publish.bash Added: hash-join/trunk/publish.bash =================================================================== --- hash-join/trunk/publish.bash (rev 0) +++ hash-join/trunk/publish.bash 2008-02-29 16:30:20 UTC (rev 543) @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +project=hash-join +clean=false +websrcs=( README doc/analysis.txt ) +webfiles=() +. assorted.bash "$@" Property changes on: hash-join/trunk/publish.bash ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 16:26:18
|
Revision: 542 http://assorted.svn.sourceforge.net/assorted/?rev=542&view=rev Author: yangzhang Date: 2008-02-29 08:26:20 -0800 (Fri, 29 Feb 2008) Log Message: ----------- filled out readme Modified Paths: -------------- hash-dist/trunk/README Modified: hash-dist/trunk/README =================================================================== --- hash-dist/trunk/README 2008-02-29 08:17:29 UTC (rev 541) +++ hash-dist/trunk/README 2008-02-29 16:26:20 UTC (rev 542) @@ -30,3 +30,32 @@ - djb2 - java - stl + +Requirements +------------ + +- [Scala] 2.6.x +- [Scala Commons] +- [Simple Build] + +[Scala]: http://scala-lang.org/ +[Scala Commons]: http://assorted.sf.net/scala-commons/ +[Simple Build]: http://assorted.sf.net/simple-build/ + +License +------- + +This software is released under the [GNU GPL3]. + +[GNU GPL3]: http://www.gnu.org/licenses/gpl.txt + +Contact +------- + +Copyright 2008 [Yang Zhang]. +All rights reserved. + +Back to [assorted.sf.net]. + +[Yang Zhang]: http://www.mit.edu/~y_z/ +[assorted.sf.net]: http://assorted.sf.net/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 08:17:29
|
Revision: 541 http://assorted.svn.sourceforge.net/assorted/?rev=541&view=rev Author: yangzhang Date: 2008-02-29 00:17:29 -0800 (Fri, 29 Feb 2008) Log Message: ----------- better readme Modified Paths: -------------- hash-dist/trunk/README Modified: hash-dist/trunk/README =================================================================== --- hash-dist/trunk/README 2008-02-29 08:16:46 UTC (rev 540) +++ hash-dist/trunk/README 2008-02-29 08:17:29 UTC (rev 541) @@ -1,3 +1,9 @@ +% Hash Distribution Test +% Yang Zhang + +Overview +-------- + This is a simple utility for observing the distribution of a hash-function. For instance, the arguments This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 08:16:42
|
Revision: 540 http://assorted.svn.sourceforge.net/assorted/?rev=540&view=rev Author: yangzhang Date: 2008-02-29 00:16:46 -0800 (Fri, 29 Feb 2008) Log Message: ----------- added publisher Added Paths: ----------- hash-dist/trunk/publish.bash Added: hash-dist/trunk/publish.bash =================================================================== --- hash-dist/trunk/publish.bash (rev 0) +++ hash-dist/trunk/publish.bash 2008-02-29 08:16:46 UTC (rev 540) @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +project=hash-dist +clean=false +websrcs=( README ) +webfiles=() +. assorted.bash "$@" Property changes on: hash-dist/trunk/publish.bash ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 08:13:47
|
Revision: 539 http://assorted.svn.sourceforge.net/assorted/?rev=539&view=rev Author: yangzhang Date: 2008-02-29 00:13:45 -0800 (Fri, 29 Feb 2008) Log Message: ----------- svn mv configure.{in,ac} Added Paths: ----------- throttled-repeater/trunk/configure.ac Removed Paths: ------------- throttled-repeater/trunk/configure.in Copied: throttled-repeater/trunk/configure.ac (from rev 473, throttled-repeater/trunk/configure.in) =================================================================== --- throttled-repeater/trunk/configure.ac (rev 0) +++ throttled-repeater/trunk/configure.ac 2008-02-29 08:13:45 UTC (rev 539) @@ -0,0 +1,10 @@ +AC_PREREQ(2.59) + +AC_INIT([threp], [0.1], [yaaang at gmail]) + +AM_INIT_AUTOMAKE([1.9 foreign]) + +AC_PROG_CC + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT Deleted: throttled-repeater/trunk/configure.in =================================================================== --- throttled-repeater/trunk/configure.in 2008-02-29 08:11:13 UTC (rev 538) +++ throttled-repeater/trunk/configure.in 2008-02-29 08:13:45 UTC (rev 539) @@ -1,10 +0,0 @@ -AC_PREREQ(2.59) - -AC_INIT([threp], [0.1], [yaaang at gmail]) - -AM_INIT_AUTOMAKE([1.9 foreign]) - -AC_PROG_CC - -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 08:11:10
|
Revision: 538 http://assorted.svn.sourceforge.net/assorted/?rev=538&view=rev Author: yangzhang Date: 2008-02-29 00:11:13 -0800 (Fri, 29 Feb 2008) Log Message: ----------- new publishing framework Modified Paths: -------------- scala-commons/trunk/src/Makefile Added Paths: ----------- scala-commons/trunk/publish.bash Removed Paths: ------------- scala-commons/trunk/src/publish.bash Added: scala-commons/trunk/publish.bash =================================================================== --- scala-commons/trunk/publish.bash (rev 0) +++ scala-commons/trunk/publish.bash 2008-02-29 08:11:13 UTC (rev 538) @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +. common.bash || exit 1 + +make -sC src/ doc jar + +project=scala-commons +clean=false +websrcs=( README ) +webfiles=( :src/doc :src/out/scala-commons.jar ) +. assorted.bash "$@" Property changes on: scala-commons/trunk/publish.bash ___________________________________________________________________ Name: svn:executable + * Modified: scala-commons/trunk/src/Makefile =================================================================== --- scala-commons/trunk/src/Makefile 2008-02-29 08:03:50 UTC (rev 537) +++ scala-commons/trunk/src/Makefile 2008-02-29 08:11:13 UTC (rev 538) @@ -1,6 +1,5 @@ DOCDIR := doc OUTDIR := out -WEBDIR := web JAR := $(OUTDIR)/scala-commons.jar SCALAC := fsc SRCS := $(wildcard commons/*.scala) @@ -15,23 +14,13 @@ $(SCALAC) -d $(OUTDIR) $^ jar cf $(JAR) -C $(OUTDIR) commons/ -web: $(WEBDIR)/index.html - -$(WEBDIR)/index.html: ../README - mkdir -p $(WEBDIR) - pandoc -s -S --tab-stop=2 -c ../main.css -H $(HTMLFRAG)/header.html -A $(HTMLFRAG)/google-footer.html -o $(WEBDIR)/index.html ../README - doc: $(DOCDIR)/index.html $(DOCDIR)/index.html: $(SRCS) mkdir -p $(DOCDIR) scaladoc -d $(DOCDIR) -linksource $^ -publish: doc jar web - cp -r $(JAR) $(DOCDIR) $(WEBDIR) - ./publish.bash $(WEBDIR) - clean: - rm -rf $(OUTDIR) $(DOCDIR) $(WEBDIR) + rm -rf $(OUTDIR) $(DOCDIR) .PHONY: clean doc publish jar web Deleted: scala-commons/trunk/src/publish.bash =================================================================== --- scala-commons/trunk/src/publish.bash 2008-02-29 08:03:50 UTC (rev 537) +++ scala-commons/trunk/src/publish.bash 2008-02-29 08:11:13 UTC (rev 538) @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit -o nounset - -WEBDIR=$1 -tar czf - -C $WEBDIR . | -ssh shell-sf ' - set -o errexit -o nounset - rm -rf assorted/htdocs/scala-commons/ - mkdir -p assorted/htdocs/scala-commons/ - cd assorted/htdocs/scala-commons/ - tar xzmf - -' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 08:03:45
|
Revision: 537 http://assorted.svn.sourceforge.net/assorted/?rev=537&view=rev Author: yangzhang Date: 2008-02-29 00:03:50 -0800 (Fri, 29 Feb 2008) Log Message: ----------- new publishing framework Modified Paths: -------------- cpp-commons/trunk/publish.bash Modified: cpp-commons/trunk/publish.bash =================================================================== --- cpp-commons/trunk/publish.bash 2008-02-29 08:00:08 UTC (rev 536) +++ cpp-commons/trunk/publish.bash 2008-02-29 08:03:50 UTC (rev 537) @@ -1,26 +1,9 @@ #!/usr/bin/env bash -HTMLFRAG=../../assorted-site/trunk +doxygen -set -o errexit -o nounset - -pandoc -s -S --tab-stop=2 -c ../main.css -H $HTMLFRAG/header.html -A $HTMLFRAG/google-footer.html -o index.html README - -doxyfile - -tmp=/tmp/cpp-commons-site -rm -rf $tmp/ -mkdir -p $tmp -cp -r doc/html /$tmp/doc -cp index.html $tmp/ - -tar czf - -C $tmp index.html doc | -ssh shell-sf ' - set -o errexit -o nounset - d=assorted/htdocs/cpp-commons - rm -rf $d/ - mkdir -p $d - cd $d/ - tar xzmf - -' - +project=cpp-commons +clean=false +websrcs=( README ) +webfiles=( doc:doc/html ) +. assorted.bash "$@" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 08:00:04
|
Revision: 536 http://assorted.svn.sourceforge.net/assorted/?rev=536&view=rev Author: yangzhang Date: 2008-02-29 00:00:08 -0800 (Fri, 29 Feb 2008) Log Message: ----------- forgot to add Added Paths: ----------- cpp-commons/trunk/tools/acinclude.m4 Added: cpp-commons/trunk/tools/acinclude.m4 =================================================================== --- cpp-commons/trunk/tools/acinclude.m4 (rev 0) +++ cpp-commons/trunk/tools/acinclude.m4 2008-02-29 08:00:08 UTC (rev 536) @@ -0,0 +1,24 @@ +AC_DEFUN([AX_BOOSTINC], +[AC_ARG_WITH([boostinc], + AC_HELP_STRING([--with-boostinc], + [specify dir for boost include (default is /usr/include)]), + [ax_boostinc=$withval], [ax_boostinc=/usr/include]) +AC_CACHE_CHECK([whether to use boostinc], + [ax_boostinc], + [ax_boostinc=/usr/include]) +AC_SUBST(BOOST_INC) +unset BOOST_INC + +ax_boostinc=`echo $ax_boostinc | sed -e 's!/$!!'` + +if test -d "$ax_boostinc"; then + if ls $ax_boostinc | grep '^boost$' >/dev/null 2>&1; then + BOOST_INC="-I${ax_boostinc}" + AC_MSG_RESULT([using boost headers from $ax_boostinc]) + else + AC_MSG_ERROR([Could not find boost in $ax_boostinc]) + fi +else + AC_MSG_ERROR([Could not find boost include directory $ax_boostinc]) +fi +]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 07:07:30
|
Revision: 535 http://assorted.svn.sourceforge.net/assorted/?rev=535&view=rev Author: yangzhang Date: 2008-02-28 23:07:34 -0800 (Thu, 28 Feb 2008) Log Message: ----------- more updates to readme Modified Paths: -------------- shell-tools/trunk/README Modified: shell-tools/trunk/README =================================================================== --- shell-tools/trunk/README 2008-02-29 07:05:10 UTC (rev 534) +++ shell-tools/trunk/README 2008-02-29 07:07:34 UTC (rev 535) @@ -73,6 +73,10 @@ `normalize` Given a list of numbers, return the numbers Some Haskell normalized to their sum. implementation +`randlines` Select random lines from a file. Python, + [Python + Commons] + `rmhead` Remove the first $n$ lines of a file. bash `rmtail` Remove the last $n$ lines of a file. (Same as bash @@ -96,7 +100,8 @@ bunch of interesting pipe redirection. -------------------------------------------------------------------------------- -[HSH]: http://software.complete.org/hsh +[HSH]: http://software.complete.org/hsh/ +[Python Commons]: http://assorted.sf.net/python-commons/ Usage ----- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 07:05:10
|
Revision: 534 http://assorted.svn.sourceforge.net/assorted/?rev=534&view=rev Author: yangzhang Date: 2008-02-28 23:05:10 -0800 (Thu, 28 Feb 2008) Log Message: ----------- added publisher Added Paths: ----------- configs/trunk/publish.bash Added: configs/trunk/publish.bash =================================================================== --- configs/trunk/publish.bash (rev 0) +++ configs/trunk/publish.bash 2008-02-29 07:05:10 UTC (rev 534) @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +project=configs +clean=false +websrcs=( README ) +webfiles=() +. assorted.bash "$@" Property changes on: configs/trunk/publish.bash ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 07:04:46
|
Revision: 533 http://assorted.svn.sourceforge.net/assorted/?rev=533&view=rev Author: yangzhang Date: 2008-02-28 23:04:49 -0800 (Thu, 28 Feb 2008) Log Message: ----------- removed unnecessary doc subdir Modified Paths: -------------- configs/trunk/TODO Added Paths: ----------- configs/trunk/README Removed Paths: ------------- configs/trunk/doc/ Added: configs/trunk/README =================================================================== --- configs/trunk/README (rev 0) +++ configs/trunk/README 2008-02-29 07:04:49 UTC (rev 533) @@ -0,0 +1,26 @@ +Configurations +============== + +These are my configuration files, mostly HOME dir *rc's. I keep this mainly for +my own use, of course, but perhaps others can make use of these. + +Dependencies +------------ + +These configuration files can be installed using the provided [simple-setup] +scripts. + +[simple-setup]: http://assorted.sf.net/projects/ + +Installation +------------ + +To install "globally visible" configurations, run `setup.bash`. These can then +subsequently be referenced from per-user configurations. + +To install certain `$HOME` directory configurations, run `setup-yang.bash -p ~`. + +To install default bash/emacs/vim configurations, run `setup-defaults.bash -p +~`. These are separate because I too often need custom bash/emacs/vim +configurations (refer to the default.* files to see how to source the globally +installed configurations). Modified: configs/trunk/TODO =================================================================== --- configs/trunk/TODO 2008-02-29 06:58:38 UTC (rev 532) +++ configs/trunk/TODO 2008-02-29 07:04:49 UTC (rev 533) @@ -1,2 +1,3 @@ -mv bashrc.bash into here from shell-tools -deal with topcoder +- mv bashrc.bash into here from shell-tools +- integrate uindent (into setups, etc) +- deal with topcoder This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 06:58:38
|
Revision: 532 http://assorted.svn.sourceforge.net/assorted/?rev=532&view=rev Author: yangzhang Date: 2008-02-28 22:58:38 -0800 (Thu, 28 Feb 2008) Log Message: ----------- more updates to readme Modified Paths: -------------- shell-tools/trunk/README Modified: shell-tools/trunk/README =================================================================== --- shell-tools/trunk/README 2008-02-29 06:37:49 UTC (rev 531) +++ shell-tools/trunk/README 2008-02-29 06:58:38 UTC (rev 532) @@ -5,14 +5,15 @@ -------- Assorted Shell Tools is a collection of scripts and compiled programs that are -useful for shell scripting. These include: +useful for shell scripting. This package also contains a common include file +of various useful functions and variables. -This package also contains a common include file of various small functions and -variables (such as color escapes). +Note that many of these tools are shell scripts that were *not* written with +portability in mind. -It also contains some miscellaneous items, including `assorted.bash` for -managing websites. However, this will eventually be moved into the -`assorted-site` project. +This package also contains some miscellaneous items, including `assorted.bash` +for managing websites. However, these will eventually be moved into other +projects. These are intentionally not covered in the documentation. Requirements ------------ @@ -117,9 +118,20 @@ [build system]: http://assorted.sf.net/simple-build/ +Links +----- + +- [Advanced Bash Scripting](http://www.faqs.org/docs/abs/HTML/): huge guide to + the beautiful montrosity that is bash. + License ------- +Assorted Shell Tools is released under the [GNU GPL]. + +Contact +------- + Copyright 2008 [Yang Zhang]. All rights reserved. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 06:37:45
|
Revision: 531 http://assorted.svn.sourceforge.net/assorted/?rev=531&view=rev Author: yangzhang Date: 2008-02-28 22:37:49 -0800 (Thu, 28 Feb 2008) Log Message: ----------- more progress toward being presentable Modified Paths: -------------- shell-tools/trunk/README shell-tools/trunk/publish.bash shell-tools/trunk/src/bash-commons/assorted.bash Modified: shell-tools/trunk/README =================================================================== --- shell-tools/trunk/README 2008-02-29 06:30:19 UTC (rev 530) +++ shell-tools/trunk/README 2008-02-29 06:37:49 UTC (rev 531) @@ -1,4 +1,4 @@ -% Assorted Shell Tools User Guide +% Assorted Shell Tools % Yang Zhang Overview @@ -74,7 +74,8 @@ `rmhead` Remove the first $n$ lines of a file. bash -`rmtail` Remove the last $n$ lines of a file. bash +`rmtail` Remove the last $n$ lines of a file. (Same as bash + `head -n -$n$`. `show-env` Show the value of an environment variable. bash Useful for debugging programs that export @@ -110,11 +111,11 @@ SimpleSetup ----------- -Framework for writing minimal installers. +Framework for writing minimal installers that support installation by symlinks, +which is particularly handy for development of scripts (scripts because it's +not yet integrated with any [build system]). -- user named 'pkg' -- http://www.gnu.org/software/bash/[bash] 3.1+: 3.1 fixes a bug with local - array declarations +[build system]: http://assorted.sf.net/simple-build/ License ------- Modified: shell-tools/trunk/publish.bash =================================================================== --- shell-tools/trunk/publish.bash 2008-02-29 06:30:19 UTC (rev 530) +++ shell-tools/trunk/publish.bash 2008-02-29 06:37:49 UTC (rev 531) @@ -1,5 +1,5 @@ project=shell-tools -clean=true +clean=false websrcs=( README ) webfiles=() . assorted.bash "$@" Modified: shell-tools/trunk/src/bash-commons/assorted.bash =================================================================== --- shell-tools/trunk/src/bash-commons/assorted.bash 2008-02-29 06:30:19 UTC (rev 530) +++ shell-tools/trunk/src/bash-commons/assorted.bash 2008-02-29 06:37:49 UTC (rev 531) @@ -30,7 +30,7 @@ done fi -if [[ "$1" == pretend ]] ; then +if [[ "${1:-}" == pretend ]] ; then echo "$stagedir" else tar czf - -C "$stagedir" . | This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 06:30:16
|
Revision: 530 http://assorted.svn.sourceforge.net/assorted/?rev=530&view=rev Author: yangzhang Date: 2008-02-28 22:30:19 -0800 (Thu, 28 Feb 2008) Log Message: ----------- spring cleaning Modified Paths: -------------- shell-tools/trunk/TODO shell-tools/trunk/src/ascii-colors.bash shell-tools/trunk/src/bash-commons/assorted.bash shell-tools/trunk/src/bash-commons/common.bash shell-tools/trunk/src/bootstrap.bash shell-tools/trunk/src/cleanup.hs Added Paths: ----------- shell-tools/trunk/README shell-tools/trunk/publish.bash shell-tools/trunk/src/dvorak.bash shell-tools/trunk/src/filter-urls.py shell-tools/trunk/src/qwerty.bash Removed Paths: ------------- shell-tools/trunk/doc/manual.txt shell-tools/trunk/src/filter-live-urls.py shell-tools/trunk/src/find-syms.bash shell-tools/trunk/src/get-queue.bash shell-tools/trunk/src/refresh-shell-tools.bash shell-tools/trunk/src/start-ssh-agent.bash shell-tools/trunk/src/use-dvorak-keyboard.bash shell-tools/trunk/src/use-normal-keyboard.bash Added: shell-tools/trunk/README =================================================================== --- shell-tools/trunk/README (rev 0) +++ shell-tools/trunk/README 2008-02-29 06:30:19 UTC (rev 530) @@ -0,0 +1,128 @@ +% Assorted Shell Tools User Guide +% Yang Zhang + +Overview +-------- + +Assorted Shell Tools is a collection of scripts and compiled programs that are +useful for shell scripting. These include: + +This package also contains a common include file of various small functions and +variables (such as color escapes). + +It also contains some miscellaneous items, including `assorted.bash` for +managing websites. However, this will eventually be moved into the +`assorted-site` project. + +Requirements +------------ + +Tool-specific dependencies: + +- [GHC] 6.8 +- [Perl] 5 +- [Python] 2.4+ +- [keychain] for `bashrc.bash` +- [stow] for `refresh-*` + +[GHC]: http://haskell.org/ghc/ +[Perl]: http://perl.com/ +[Python]: http://python.org/ +[keychain]: http://www.gentoo.org/proj/en/keychain/ +[stow]: http://www.gnu.org/software/stow/ + +Setup +----- + +To install, run `setup.bash`, which is a SimpleSetup installer. By default, it +installs to `/opt/shell-tools`, and thus this step may require root +privileges. For options, including the ability to specify an alternate prefix +path, run `setup.bash -h`. + +Tools +----- + +-------------------------------------------------------------------------------- +Name Description Requirements +-------------- ----------------------------------------------- --------------- +`ascii-colors` Demo terminal color escape sequences. bash + +`cleanup` Remove intermediate build files and other gunk Some Haskell + from a directory tree. implementation, + [HSH] + +`daemon-ctl` `start-stop-daemon` but with extra features. bash, procps + +`filter-urls` Given a list of URLs, filter out live URLs or Python + vice-versa. + +`gen-dates` Generate lists of dates. Python + +`gen-list` Generate lists based on a template string. bash + +`grep-code` Greps a set of directories. bash, Python + +`manage-mounts` Manage a set of mounts. bash + +`map-syms` Search and replace for a symbol in a set of bash, Python + files. + +`memmon` Monitor system resource usage. bash, procps + +`normalize` Given a list of numbers, return the numbers Some Haskell + normalized to their sum. implementation + +`rmhead` Remove the first $n$ lines of a file. bash + +`rmtail` Remove the last $n$ lines of a file. bash + +`show-env` Show the value of an environment variable. bash + Useful for debugging programs that export + environment variables to subprocesses. + +`trash` Move files to a trash directory and group the bash + trashed files by their removal time. + +`unison-merge` A frontend over unison to make conflict bash + resolutions sane. + +`qwerty` `xmodmap` a qwerty keyboard layout. bash + +`dvorak` `xmodmap` a Dvorak keyboard layout. bash + +`refresh-links` Kept solely as a reference, since it uses a bash + bunch of interesting pipe redirection. +-------------------------------------------------------------------------------- + +[HSH]: http://software.complete.org/hsh + +Usage +----- + +For help on any particular tool, please see the tool's man page. + +common.bash +----------- + +Library of various general-purpose utilities that can come in handy for shell +scripting. + +SimpleSetup +----------- + +Framework for writing minimal installers. + +- user named 'pkg' +- http://www.gnu.org/software/bash/[bash] 3.1+: 3.1 fixes a bug with local + array declarations + +License +------- + +Copyright 2008 [Yang Zhang]. +All rights reserved. + +Back to [assorted.sf.net]. + +[Yang Zhang]: http://www.mit.edu/~y_z/ +[assorted.sf.net]: http://assorted.sf.net/ Modified: shell-tools/trunk/TODO =================================================================== --- shell-tools/trunk/TODO 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/TODO 2008-02-29 06:30:19 UTC (rev 530) @@ -2,3 +2,5 @@ - Ignore .svn on install/mirror scripts - Deprecate refresh-links - Deprecate start-ssh-agent (or make it a wrapper for keychain once you determine that it doesn't work with arbitrary usernames) + +- Resolve: bootstrap here, simple-setup's bootstrap, and push-deploy Deleted: shell-tools/trunk/doc/manual.txt =================================================================== --- shell-tools/trunk/doc/manual.txt 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/doc/manual.txt 2008-02-29 06:30:19 UTC (rev 530) @@ -1,74 +0,0 @@ -Assorted Shell Tools User Guide -=============================== -Yang Zhang - -An http://assorted.sf.net/[Assorted Tools] project - -Setup ------ - -Requirements: - -- user named 'pkg' -- http://www.gnu.org/software/bash/[bash] 3.1+: 3.1 fixes a bug with local - array declarations - -Tool-specific dependencies: - -- http://haskell.org/ghc/[GHC] -- http://perl.com/[Perl] -- http://python.org/[Python] 2.4+ -- keychain (bashrc.bash) -- stow (refresh-*) - -To install, run `setup.bash`, which is a SimpleSetup installer. By default, it -installs to `/opt/shell-tools`, and thus this step may require root -privileges. For options, including the ability to specify an alternate prefix -path, run `setup.bash -h`. - -Usage ------ - -For help on any particular tool, please see the tool's man page. - -Bash Commons API Reference --------------------------- - -common.bash -~~~~~~~~~~~ - -Library of various general-purpose utilities that can come in handy for shell -scripting. - -***** -TODO: fill in -***** - -SimpleSetup -~~~~~~~~~~~ - -Framework for writing minimal installers. - -***** -TODO: fill in -***** - -Support -------- - -Shell Tools has been tested under Linux and Cygwin. - -***** -TODO: fill in -***** - -[bash: http://bash.org/] - - - -Tool-Specific Requirements - -ascii-colors: bash -daemon-ctl: bash, procps -memmon: bash, procps -sum-nums: perl Added: shell-tools/trunk/publish.bash =================================================================== --- shell-tools/trunk/publish.bash (rev 0) +++ shell-tools/trunk/publish.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -0,0 +1,5 @@ +project=shell-tools +clean=true +websrcs=( README ) +webfiles=() +. assorted.bash "$@" Property changes on: shell-tools/trunk/publish.bash ___________________________________________________________________ Name: svn:executable + * Modified: shell-tools/trunk/src/ascii-colors.bash =================================================================== --- shell-tools/trunk/src/ascii-colors.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/ascii-colors.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -1,4 +1,8 @@ #!/usr/bin/env bash + +# Script adapted from: +# http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html + # # This file echoes a bunch of colour codes to the terminal to demonstrate # what's available. Each line is one colour on black and gray Modified: shell-tools/trunk/src/bash-commons/assorted.bash =================================================================== --- shell-tools/trunk/src/bash-commons/assorted.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/bash-commons/assorted.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -30,12 +30,16 @@ done fi -tar czf - -C "$stagedir" . | -ssh $prof " - set -o errexit -o nounset - if $clean ; then rm -r $webdir ; fi - mkdir -p $webdir - cd $webdir - tar xzmf - - chmod -R +rX . -" +if [[ "$1" == pretend ]] ; then + echo "$stagedir" +else + tar czf - -C "$stagedir" . | + ssh $prof " + set -o errexit -o nounset + if $clean ; then rm -r $webdir ; fi + mkdir -p $webdir + cd $webdir + tar xzmf - + chmod -R +rX . + " +fi Modified: shell-tools/trunk/src/bash-commons/common.bash =================================================================== --- shell-tools/trunk/src/bash-commons/common.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/bash-commons/common.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -380,6 +380,26 @@ done } +# Given a regex sub-pattern and a set of files, print a sorted list of all the +# words (symbols) in those files that contain that sub-pattern. Example: +# +# $ find-syms jedi * +# jedi_knight +# ReturnOfTheJedi +find-syms() { + local pattern="$1" + shift + sed -n ' + /\b\w*'"$pattern"'\w*\.\(hxx\|cxx\)/I + s/\(\b\w*'"$pattern"'\w*\.\(hxx\|cxx\)\)/\n\1\n/I + p + /\b\w*'"$pattern"'\w*\b/I + s/\(\b\w*'"$pattern"'\w*\b\)/\n\1\n/gI + p' "$@" | + sed -n '/^\w*'"$pattern"'\w*\(\.\(hxx\|cxx\)\)\{0,1\}$/I p' | + sort -u +} + #if ! is_declared indent ; then # noindent #else Modified: shell-tools/trunk/src/bootstrap.bash =================================================================== --- shell-tools/trunk/src/bootstrap.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/bootstrap.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -1,7 +1,7 @@ #!/usr/bin/env bash # vim:et:sw=4 -# Sets up the current user account for synchronizing with your home directory +# Sets up the current user account for synchronizing with your home directory. set -o errexit Modified: shell-tools/trunk/src/cleanup.hs =================================================================== --- shell-tools/trunk/src/cleanup.hs 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/cleanup.hs 2008-02-29 06:30:19 UTC (rev 530) @@ -1,5 +1,10 @@ #!/usr/bin/env runhaskell +{- +"Clean up" a directory tree by removing files like vim .swp files and +intermediate build files. +-} + module Main where import Data.Char Copied: shell-tools/trunk/src/dvorak.bash (from rev 521, shell-tools/trunk/src/use-dvorak-keyboard.bash) =================================================================== --- shell-tools/trunk/src/dvorak.bash (rev 0) +++ shell-tools/trunk/src/dvorak.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -0,0 +1,252 @@ +#!/usr/bin/env bash + +xmodmap - << "EOF" +keycode 8 = +keycode 9 = Escape +keycode 10 = 1 exclam +keycode 11 = 2 at +keycode 12 = 3 numbersign +keycode 13 = 4 dollar +keycode 14 = 5 percent +keycode 15 = 6 asciicircum +keycode 16 = 7 ampersand +keycode 17 = 8 asterisk +keycode 18 = 9 parenleft +keycode 19 = 0 parenright +keycode 20 = bracketleft braceleft +keycode 21 = bracketright braceright +keycode 22 = BackSpace Terminate_Server +keycode 23 = Tab ISO_Left_Tab +keycode 24 = apostrophe quotedbl +keycode 25 = comma less +keycode 26 = period greater +keycode 27 = p P +keycode 28 = y Y +keycode 29 = f F +keycode 30 = g G +keycode 31 = c C +keycode 32 = r R +keycode 33 = l L +keycode 34 = slash question +keycode 35 = equal plus +keycode 36 = Return +keycode 37 = Control_L +keycode 38 = a A +keycode 39 = o O +keycode 40 = e E +keycode 41 = u U +keycode 42 = i I +keycode 43 = d D +keycode 44 = h H +keycode 45 = t T +keycode 46 = n N +keycode 47 = s S +keycode 48 = minus underscore +keycode 49 = grave asciitilde +keycode 50 = Shift_L +keycode 51 = backslash bar +keycode 52 = semicolon colon +keycode 53 = q Q +keycode 54 = j J +keycode 55 = k K +keycode 56 = x X +keycode 57 = b B +keycode 58 = m M +keycode 59 = w W +keycode 60 = v V +keycode 61 = z Z +keycode 62 = Shift_R +keycode 63 = KP_Multiply XF86_ClearGrab +keycode 64 = Alt_L Meta_L +keycode 65 = space +keycode 66 = Caps_Lock +keycode 67 = F1 XF86_Switch_VT_1 +keycode 68 = F2 XF86_Switch_VT_2 +keycode 69 = F3 XF86_Switch_VT_3 +keycode 70 = F4 XF86_Switch_VT_4 +keycode 71 = F5 XF86_Switch_VT_5 +keycode 72 = F6 XF86_Switch_VT_6 +keycode 73 = F7 XF86_Switch_VT_7 +keycode 74 = F8 XF86_Switch_VT_8 +keycode 75 = F9 XF86_Switch_VT_9 +keycode 76 = F10 XF86_Switch_VT_10 +keycode 77 = Num_Lock Pointer_EnableKeys +keycode 78 = Scroll_Lock +keycode 79 = KP_Home KP_7 +keycode 80 = KP_Up KP_8 +keycode 81 = KP_Prior KP_9 +keycode 82 = KP_Subtract XF86_Prev_VMode +keycode 83 = KP_Left KP_4 +keycode 84 = KP_Begin KP_5 +keycode 85 = KP_Right KP_6 +keycode 86 = KP_Add XF86_Next_VMode +keycode 87 = KP_End KP_1 +keycode 88 = KP_Down KP_2 +keycode 89 = KP_Next KP_3 +keycode 90 = KP_Insert KP_0 +keycode 91 = KP_Delete KP_Decimal +keycode 92 = Print Sys_Req +keycode 93 = Mode_switch +keycode 94 = less greater +keycode 95 = F11 XF86_Switch_VT_11 +keycode 96 = F12 XF86_Switch_VT_12 +keycode 97 = Home +keycode 98 = Up +keycode 99 = Prior +keycode 100 = Left +keycode 101 = +keycode 102 = Right +keycode 103 = End +keycode 104 = Down +keycode 105 = Next +keycode 106 = Insert +keycode 107 = Delete +keycode 108 = KP_Enter +keycode 109 = Control_R +keycode 110 = Pause Break +keycode 111 = Print Sys_Req +keycode 112 = KP_Divide XF86_Ungrab +keycode 113 = ISO_Level3_Shift Multi_key +keycode 114 = Pause Break +keycode 115 = Super_L +keycode 116 = Super_R +keycode 117 = Menu +keycode 118 = +keycode 119 = +keycode 120 = +keycode 121 = +keycode 122 = +keycode 123 = +keycode 124 = ISO_Level3_Shift +keycode 125 = NoSymbol Alt_L +keycode 126 = KP_Equal +keycode 127 = NoSymbol Super_L +keycode 128 = NoSymbol Hyper_L +keycode 129 = +keycode 130 = +keycode 131 = +keycode 132 = +keycode 133 = +keycode 134 = +keycode 135 = +keycode 136 = +keycode 137 = +keycode 138 = +keycode 139 = +keycode 140 = +keycode 141 = +keycode 142 = +keycode 143 = +keycode 144 = +keycode 145 = +keycode 146 = +keycode 147 = +keycode 148 = +keycode 149 = +keycode 150 = +keycode 151 = +keycode 152 = +keycode 153 = +keycode 154 = +keycode 155 = +keycode 156 = NoSymbol Meta_L +keycode 157 = +keycode 158 = +keycode 159 = +keycode 160 = +keycode 161 = +keycode 162 = +keycode 163 = +keycode 164 = +keycode 165 = +keycode 166 = +keycode 167 = +keycode 168 = +keycode 169 = +keycode 170 = +keycode 171 = +keycode 172 = +keycode 173 = +keycode 174 = +keycode 175 = +keycode 176 = +keycode 177 = +keycode 178 = +keycode 179 = +keycode 180 = +keycode 181 = +keycode 182 = +keycode 183 = +keycode 184 = +keycode 185 = +keycode 186 = +keycode 187 = +keycode 188 = +keycode 189 = +keycode 190 = +keycode 191 = +keycode 192 = +keycode 193 = +keycode 194 = +keycode 195 = +keycode 196 = +keycode 197 = +keycode 198 = +keycode 199 = +keycode 200 = +keycode 201 = +keycode 202 = +keycode 203 = +keycode 204 = +keycode 205 = +keycode 206 = +keycode 207 = +keycode 208 = +keycode 209 = +keycode 210 = +keycode 211 = +keycode 212 = +keycode 213 = +keycode 214 = +keycode 215 = +keycode 216 = +keycode 217 = +keycode 218 = +keycode 219 = +keycode 220 = +keycode 221 = +keycode 222 = +keycode 223 = +keycode 224 = +keycode 225 = +keycode 226 = +keycode 227 = +keycode 228 = +keycode 229 = +keycode 230 = +keycode 231 = +keycode 232 = +keycode 233 = +keycode 234 = +keycode 235 = +keycode 236 = +keycode 237 = +keycode 238 = +keycode 239 = +keycode 240 = +keycode 241 = +keycode 242 = +keycode 243 = +keycode 244 = +keycode 245 = +keycode 246 = +keycode 247 = +keycode 248 = +keycode 249 = +keycode 250 = +keycode 251 = +keycode 252 = +keycode 253 = +keycode 254 = +keycode 255 = +EOF Deleted: shell-tools/trunk/src/filter-live-urls.py =================================================================== --- shell-tools/trunk/src/filter-live-urls.py 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/filter-live-urls.py 2008-02-29 06:30:19 UTC (rev 530) @@ -1,15 +0,0 @@ -#!/usr/bin/env python -# vim:et:sw=4 - -import common, urllib2, sys - -def main( argv = sys.argv ): - for line in sys.stdin.xreadlines(): - line = line.strip() - try: - file = urllib2.urlopen(line) - print line, - except: - pass - -common.run_main() Copied: shell-tools/trunk/src/filter-urls.py (from rev 521, shell-tools/trunk/src/filter-live-urls.py) =================================================================== --- shell-tools/trunk/src/filter-urls.py (rev 0) +++ shell-tools/trunk/src/filter-urls.py 2008-02-29 06:30:19 UTC (rev 530) @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# vim:et:sw=4 + +import common, urllib2, sys + +def main( argv = sys.argv ): + for line in sys.stdin.xreadlines(): + line = line.strip() + try: + file = urllib2.urlopen(line) + print line, + except: + pass + +common.run_main() Deleted: shell-tools/trunk/src/find-syms.bash =================================================================== --- shell-tools/trunk/src/find-syms.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/find-syms.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -# vim:et:sw=4 - -# Print a list of all symbols found in the specified files. -# No semantics! It's a completely dumb regex search. - -. common.bash - -pattern="$1" -shift -sed -n '/\b\w*'"$pattern"'\w*\.\(hxx\|cxx\)/I s/\(\b\w*'"$pattern"'\w*\.\(hxx\|cxx\)\)/\n\1\n/I p -/\b\w*'"$pattern"'\w*\b/I s/\(\b\w*'"$pattern"'\w*\b\)/\n\1\n/gI p' "$@" | -sed -n '/^\w*'"$pattern"'\w*\(\.\(hxx\|cxx\)\)\{0,1\}$/I p' | -sort -u Deleted: shell-tools/trunk/src/get-queue.bash =================================================================== --- shell-tools/trunk/src/get-queue.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/get-queue.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -1,7 +0,0 @@ -#!/usr/bin/env bash -# vim:et:sw=4 - -# Downloads acm queue articles for offline reading - -gen_list 'http://acmqueue.com/modules.php?name=Content&pa=printer_friendly&pid=' '&page=1' 3 | -wget -i - -k --referer='http://www.acmqueue.org/' Copied: shell-tools/trunk/src/qwerty.bash (from rev 521, shell-tools/trunk/src/use-normal-keyboard.bash) =================================================================== --- shell-tools/trunk/src/qwerty.bash (rev 0) +++ shell-tools/trunk/src/qwerty.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -0,0 +1,252 @@ +#!/usr/bin/env bash + +xmodmap - << "EOF" +keycode 8 = +keycode 9 = Escape +keycode 10 = 1 exclam +keycode 11 = 2 at +keycode 12 = 3 numbersign +keycode 13 = 4 dollar +keycode 14 = 5 percent +keycode 15 = 6 asciicircum +keycode 16 = 7 ampersand +keycode 17 = 8 asterisk +keycode 18 = 9 parenleft +keycode 19 = 0 parenright +keycode 20 = minus underscore +keycode 21 = equal plus +keycode 22 = BackSpace Terminate_Server +keycode 23 = Tab ISO_Left_Tab +keycode 24 = q Q +keycode 25 = w W +keycode 26 = e E +keycode 27 = r R +keycode 28 = t T +keycode 29 = y Y +keycode 30 = u U +keycode 31 = i I +keycode 32 = o O +keycode 33 = p P +keycode 34 = bracketleft braceleft +keycode 35 = bracketright braceright +keycode 36 = Return +keycode 37 = Control_L +keycode 38 = a A +keycode 39 = s S +keycode 40 = d D +keycode 41 = f F +keycode 42 = g G +keycode 43 = h H +keycode 44 = j J +keycode 45 = k K +keycode 46 = l L +keycode 47 = semicolon colon +keycode 48 = apostrophe quotedbl +keycode 49 = grave asciitilde +keycode 50 = Shift_L +keycode 51 = backslash bar +keycode 52 = z Z +keycode 53 = x X +keycode 54 = c C +keycode 55 = v V +keycode 56 = b B +keycode 57 = n N +keycode 58 = m M +keycode 59 = comma less +keycode 60 = period greater +keycode 61 = slash question +keycode 62 = Shift_R +keycode 63 = KP_Multiply XF86_ClearGrab +keycode 64 = Alt_L Meta_L +keycode 65 = space +keycode 66 = Caps_Lock +keycode 67 = F1 XF86_Switch_VT_1 +keycode 68 = F2 XF86_Switch_VT_2 +keycode 69 = F3 XF86_Switch_VT_3 +keycode 70 = F4 XF86_Switch_VT_4 +keycode 71 = F5 XF86_Switch_VT_5 +keycode 72 = F6 XF86_Switch_VT_6 +keycode 73 = F7 XF86_Switch_VT_7 +keycode 74 = F8 XF86_Switch_VT_8 +keycode 75 = F9 XF86_Switch_VT_9 +keycode 76 = F10 XF86_Switch_VT_10 +keycode 77 = Num_Lock Pointer_EnableKeys +keycode 78 = Scroll_Lock +keycode 79 = KP_Home KP_7 +keycode 80 = KP_Up KP_8 +keycode 81 = KP_Prior KP_9 +keycode 82 = KP_Subtract XF86_Prev_VMode +keycode 83 = KP_Left KP_4 +keycode 84 = KP_Begin KP_5 +keycode 85 = KP_Right KP_6 +keycode 86 = KP_Add XF86_Next_VMode +keycode 87 = KP_End KP_1 +keycode 88 = KP_Down KP_2 +keycode 89 = KP_Next KP_3 +keycode 90 = KP_Insert KP_0 +keycode 91 = KP_Delete KP_Decimal +keycode 92 = +keycode 93 = Mode_switch +keycode 94 = less greater bar brokenbar bar brokenbar +keycode 95 = F11 XF86_Switch_VT_11 +keycode 96 = F12 XF86_Switch_VT_12 +keycode 97 = Home +keycode 98 = Up +keycode 99 = Prior +keycode 100 = Left +keycode 101 = +keycode 102 = Right +keycode 103 = End +keycode 104 = Down +keycode 105 = Next +keycode 106 = Insert +keycode 107 = Delete +keycode 108 = KP_Enter +keycode 109 = Control_R +keycode 110 = Pause Break +keycode 111 = Print Sys_Req +keycode 112 = KP_Divide XF86_Ungrab +keycode 113 = Alt_R Meta_R +keycode 114 = +keycode 115 = Super_L +keycode 116 = Super_R +keycode 117 = Menu +keycode 118 = +keycode 119 = +keycode 120 = +keycode 121 = +keycode 122 = +keycode 123 = +keycode 124 = ISO_Level3_Shift +keycode 125 = NoSymbol Alt_L +keycode 126 = KP_Equal +keycode 127 = NoSymbol Super_L +keycode 128 = NoSymbol Hyper_L +keycode 129 = +keycode 130 = +keycode 131 = +keycode 132 = +keycode 133 = +keycode 134 = +keycode 135 = +keycode 136 = +keycode 137 = +keycode 138 = +keycode 139 = +keycode 140 = +keycode 141 = +keycode 142 = +keycode 143 = +keycode 144 = +keycode 145 = +keycode 146 = +keycode 147 = +keycode 148 = +keycode 149 = +keycode 150 = +keycode 151 = +keycode 152 = +keycode 153 = +keycode 154 = +keycode 155 = +keycode 156 = NoSymbol Meta_L +keycode 157 = +keycode 158 = +keycode 159 = +keycode 160 = +keycode 161 = +keycode 162 = +keycode 163 = +keycode 164 = +keycode 165 = +keycode 166 = +keycode 167 = +keycode 168 = +keycode 169 = +keycode 170 = +keycode 171 = +keycode 172 = +keycode 173 = +keycode 174 = +keycode 175 = +keycode 176 = +keycode 177 = +keycode 178 = +keycode 179 = +keycode 180 = +keycode 181 = +keycode 182 = +keycode 183 = +keycode 184 = +keycode 185 = +keycode 186 = +keycode 187 = +keycode 188 = +keycode 189 = +keycode 190 = +keycode 191 = +keycode 192 = +keycode 193 = +keycode 194 = +keycode 195 = +keycode 196 = +keycode 197 = +keycode 198 = +keycode 199 = +keycode 200 = +keycode 201 = +keycode 202 = +keycode 203 = +keycode 204 = +keycode 205 = +keycode 206 = +keycode 207 = +keycode 208 = +keycode 209 = +keycode 210 = +keycode 211 = +keycode 212 = +keycode 213 = +keycode 214 = +keycode 215 = +keycode 216 = +keycode 217 = +keycode 218 = +keycode 219 = +keycode 220 = +keycode 221 = +keycode 222 = +keycode 223 = +keycode 224 = +keycode 225 = +keycode 226 = +keycode 227 = +keycode 228 = +keycode 229 = +keycode 230 = +keycode 231 = +keycode 232 = +keycode 233 = +keycode 234 = +keycode 235 = +keycode 236 = +keycode 237 = +keycode 238 = +keycode 239 = +keycode 240 = +keycode 241 = +keycode 242 = +keycode 243 = +keycode 244 = +keycode 245 = +keycode 246 = +keycode 247 = +keycode 248 = +keycode 249 = +keycode 250 = +keycode 251 = +keycode 252 = +keycode 253 = +keycode 254 = +keycode 255 = +EOF Deleted: shell-tools/trunk/src/refresh-shell-tools.bash =================================================================== --- shell-tools/trunk/src/refresh-shell-tools.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/refresh-shell-tools.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -# vim:et:sw=4 - -# TODO test - -. common.bash - -checkout="$SHELL_TOOLS_DEV_CHECKOUT" -prefix="${1:-$SHELL_TOOLS_DEV_PREFIX}" -[[ "$prefix" ]] || die -[[ "$checkout" ]] || die -remkdir "$prefix" -cd "$prefix" -mkdir bin -"$checkout/setup.bash" -d -p "$prefix" Deleted: shell-tools/trunk/src/start-ssh-agent.bash =================================================================== --- shell-tools/trunk/src/start-ssh-agent.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/start-ssh-agent.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -1,82 +0,0 @@ -#!/usr/bin/env bash -# vim:et:sw=4 - -# Simpler than keychain, and works in Cygwin - -###dir="$HOME/.ssh-agent" -###host="$( hostname )" -###agent_bash="$dir/$host.bash" -###agent_cmd="$dir/$host.cmd" -### -###running_pids="$( pgrep -u "$USER" ssh-agent )" -###pid_count="$( echo "$running_pids" | wc -w )" -###if [[ "$SSH_AGENT_PID" ]] || (( "$pid_count" > 0 )) ; then -### is_running=1 -### if [[ ! "$SSH_AGENT_PID" ]] ; then -### old_pid="$( cat "$agent_bash" | tail -1 | sed 's/.* \([[:digit:]]\+\);/\1/' 2> /dev/null )" -### if [[ ! "$old_pid" ]] || ! echo "$running_pids" | grep "$old_pid" > /dev/null ; then -### die "ssh-agent(s) already running, but sockets unknown" -### fi -### fi -###else -### is_running= -###fi -### -###function add-key { -### local key="$1" -### if ! ssh-add -l | fgrep "$key" > /dev/null ; then -### [[ $verbose ]] && echo "Adding: $key" -### ssh-add "$key" -### fi -###} -### -###OPTIND=0 -### -#### TODO these flags are broken, now that I've added the above code -### -###while getopts 'kfrv' opt ; do -### case "$opt" in -### k ) do_kill=1 ; is_running= ;; -### f ) is_running= ;; -### r ) is_running=1 ;; -### v ) do_verbose=1 ;; -### \? ) cat << EOF && exit ;; -###$cmd_name [OPTIONS] -###Options: -### -k kill all ssh-agents and reload -### -f force ssh agent to start (opposite of -r) -### -r only reload the settings (opposite of -f) -### -v verbose -###EOF -### esac -###done -### -###shift $(( OPTIND - 1 )) -### -###if [[ $do_kill ]] ; then -### killall ssh-agent -###fi -### -###if [[ ! "$SSH_AGENT_PID" ]] ; then -### if [[ ! $is_running ]] ; then -### [[ $do_verbose ]] && echo 'Starting SSH agent...' -### mkdir -p "$dir" -### ssh-agent > "$agent_bash" -### sed -n 's/\(.*\)=\(.*\); export .*/set \1=\2/ p' "$agent_bash" > "$agent_cmd" -### fi -###fi -### -###if [[ -f "$agent_bash" ]] ; then -### . "$agent_bash" -###fi -### -###if [[ ! "$SSH_AGENT_PID" ]] ; then -### if (( $# == 0 )) ; then -### add-key ~/.ssh/id_rsa -### else -### while (( $# > 0 )) ; do -### add-key "$1" -### shift -### done -### fi -###fi Deleted: shell-tools/trunk/src/use-dvorak-keyboard.bash =================================================================== --- shell-tools/trunk/src/use-dvorak-keyboard.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/use-dvorak-keyboard.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -1,252 +0,0 @@ -#!/usr/bin/env bash - -xmodmap - << "EOF" -keycode 8 = -keycode 9 = Escape -keycode 10 = 1 exclam -keycode 11 = 2 at -keycode 12 = 3 numbersign -keycode 13 = 4 dollar -keycode 14 = 5 percent -keycode 15 = 6 asciicircum -keycode 16 = 7 ampersand -keycode 17 = 8 asterisk -keycode 18 = 9 parenleft -keycode 19 = 0 parenright -keycode 20 = bracketleft braceleft -keycode 21 = bracketright braceright -keycode 22 = BackSpace Terminate_Server -keycode 23 = Tab ISO_Left_Tab -keycode 24 = apostrophe quotedbl -keycode 25 = comma less -keycode 26 = period greater -keycode 27 = p P -keycode 28 = y Y -keycode 29 = f F -keycode 30 = g G -keycode 31 = c C -keycode 32 = r R -keycode 33 = l L -keycode 34 = slash question -keycode 35 = equal plus -keycode 36 = Return -keycode 37 = Control_L -keycode 38 = a A -keycode 39 = o O -keycode 40 = e E -keycode 41 = u U -keycode 42 = i I -keycode 43 = d D -keycode 44 = h H -keycode 45 = t T -keycode 46 = n N -keycode 47 = s S -keycode 48 = minus underscore -keycode 49 = grave asciitilde -keycode 50 = Shift_L -keycode 51 = backslash bar -keycode 52 = semicolon colon -keycode 53 = q Q -keycode 54 = j J -keycode 55 = k K -keycode 56 = x X -keycode 57 = b B -keycode 58 = m M -keycode 59 = w W -keycode 60 = v V -keycode 61 = z Z -keycode 62 = Shift_R -keycode 63 = KP_Multiply XF86_ClearGrab -keycode 64 = Alt_L Meta_L -keycode 65 = space -keycode 66 = Caps_Lock -keycode 67 = F1 XF86_Switch_VT_1 -keycode 68 = F2 XF86_Switch_VT_2 -keycode 69 = F3 XF86_Switch_VT_3 -keycode 70 = F4 XF86_Switch_VT_4 -keycode 71 = F5 XF86_Switch_VT_5 -keycode 72 = F6 XF86_Switch_VT_6 -keycode 73 = F7 XF86_Switch_VT_7 -keycode 74 = F8 XF86_Switch_VT_8 -keycode 75 = F9 XF86_Switch_VT_9 -keycode 76 = F10 XF86_Switch_VT_10 -keycode 77 = Num_Lock Pointer_EnableKeys -keycode 78 = Scroll_Lock -keycode 79 = KP_Home KP_7 -keycode 80 = KP_Up KP_8 -keycode 81 = KP_Prior KP_9 -keycode 82 = KP_Subtract XF86_Prev_VMode -keycode 83 = KP_Left KP_4 -keycode 84 = KP_Begin KP_5 -keycode 85 = KP_Right KP_6 -keycode 86 = KP_Add XF86_Next_VMode -keycode 87 = KP_End KP_1 -keycode 88 = KP_Down KP_2 -keycode 89 = KP_Next KP_3 -keycode 90 = KP_Insert KP_0 -keycode 91 = KP_Delete KP_Decimal -keycode 92 = Print Sys_Req -keycode 93 = Mode_switch -keycode 94 = less greater -keycode 95 = F11 XF86_Switch_VT_11 -keycode 96 = F12 XF86_Switch_VT_12 -keycode 97 = Home -keycode 98 = Up -keycode 99 = Prior -keycode 100 = Left -keycode 101 = -keycode 102 = Right -keycode 103 = End -keycode 104 = Down -keycode 105 = Next -keycode 106 = Insert -keycode 107 = Delete -keycode 108 = KP_Enter -keycode 109 = Control_R -keycode 110 = Pause Break -keycode 111 = Print Sys_Req -keycode 112 = KP_Divide XF86_Ungrab -keycode 113 = ISO_Level3_Shift Multi_key -keycode 114 = Pause Break -keycode 115 = Super_L -keycode 116 = Super_R -keycode 117 = Menu -keycode 118 = -keycode 119 = -keycode 120 = -keycode 121 = -keycode 122 = -keycode 123 = -keycode 124 = ISO_Level3_Shift -keycode 125 = NoSymbol Alt_L -keycode 126 = KP_Equal -keycode 127 = NoSymbol Super_L -keycode 128 = NoSymbol Hyper_L -keycode 129 = -keycode 130 = -keycode 131 = -keycode 132 = -keycode 133 = -keycode 134 = -keycode 135 = -keycode 136 = -keycode 137 = -keycode 138 = -keycode 139 = -keycode 140 = -keycode 141 = -keycode 142 = -keycode 143 = -keycode 144 = -keycode 145 = -keycode 146 = -keycode 147 = -keycode 148 = -keycode 149 = -keycode 150 = -keycode 151 = -keycode 152 = -keycode 153 = -keycode 154 = -keycode 155 = -keycode 156 = NoSymbol Meta_L -keycode 157 = -keycode 158 = -keycode 159 = -keycode 160 = -keycode 161 = -keycode 162 = -keycode 163 = -keycode 164 = -keycode 165 = -keycode 166 = -keycode 167 = -keycode 168 = -keycode 169 = -keycode 170 = -keycode 171 = -keycode 172 = -keycode 173 = -keycode 174 = -keycode 175 = -keycode 176 = -keycode 177 = -keycode 178 = -keycode 179 = -keycode 180 = -keycode 181 = -keycode 182 = -keycode 183 = -keycode 184 = -keycode 185 = -keycode 186 = -keycode 187 = -keycode 188 = -keycode 189 = -keycode 190 = -keycode 191 = -keycode 192 = -keycode 193 = -keycode 194 = -keycode 195 = -keycode 196 = -keycode 197 = -keycode 198 = -keycode 199 = -keycode 200 = -keycode 201 = -keycode 202 = -keycode 203 = -keycode 204 = -keycode 205 = -keycode 206 = -keycode 207 = -keycode 208 = -keycode 209 = -keycode 210 = -keycode 211 = -keycode 212 = -keycode 213 = -keycode 214 = -keycode 215 = -keycode 216 = -keycode 217 = -keycode 218 = -keycode 219 = -keycode 220 = -keycode 221 = -keycode 222 = -keycode 223 = -keycode 224 = -keycode 225 = -keycode 226 = -keycode 227 = -keycode 228 = -keycode 229 = -keycode 230 = -keycode 231 = -keycode 232 = -keycode 233 = -keycode 234 = -keycode 235 = -keycode 236 = -keycode 237 = -keycode 238 = -keycode 239 = -keycode 240 = -keycode 241 = -keycode 242 = -keycode 243 = -keycode 244 = -keycode 245 = -keycode 246 = -keycode 247 = -keycode 248 = -keycode 249 = -keycode 250 = -keycode 251 = -keycode 252 = -keycode 253 = -keycode 254 = -keycode 255 = -EOF Deleted: shell-tools/trunk/src/use-normal-keyboard.bash =================================================================== --- shell-tools/trunk/src/use-normal-keyboard.bash 2008-02-29 05:38:46 UTC (rev 529) +++ shell-tools/trunk/src/use-normal-keyboard.bash 2008-02-29 06:30:19 UTC (rev 530) @@ -1,252 +0,0 @@ -#!/usr/bin/env bash - -xmodmap - << "EOF" -keycode 8 = -keycode 9 = Escape -keycode 10 = 1 exclam -keycode 11 = 2 at -keycode 12 = 3 numbersign -keycode 13 = 4 dollar -keycode 14 = 5 percent -keycode 15 = 6 asciicircum -keycode 16 = 7 ampersand -keycode 17 = 8 asterisk -keycode 18 = 9 parenleft -keycode 19 = 0 parenright -keycode 20 = minus underscore -keycode 21 = equal plus -keycode 22 = BackSpace Terminate_Server -keycode 23 = Tab ISO_Left_Tab -keycode 24 = q Q -keycode 25 = w W -keycode 26 = e E -keycode 27 = r R -keycode 28 = t T -keycode 29 = y Y -keycode 30 = u U -keycode 31 = i I -keycode 32 = o O -keycode 33 = p P -keycode 34 = bracketleft braceleft -keycode 35 = bracketright braceright -keycode 36 = Return -keycode 37 = Control_L -keycode 38 = a A -keycode 39 = s S -keycode 40 = d D -keycode 41 = f F -keycode 42 = g G -keycode 43 = h H -keycode 44 = j J -keycode 45 = k K -keycode 46 = l L -keycode 47 = semicolon colon -keycode 48 = apostrophe quotedbl -keycode 49 = grave asciitilde -keycode 50 = Shift_L -keycode 51 = backslash bar -keycode 52 = z Z -keycode 53 = x X -keycode 54 = c C -keycode 55 = v V -keycode 56 = b B -keycode 57 = n N -keycode 58 = m M -keycode 59 = comma less -keycode 60 = period greater -keycode 61 = slash question -keycode 62 = Shift_R -keycode 63 = KP_Multiply XF86_ClearGrab -keycode 64 = Alt_L Meta_L -keycode 65 = space -keycode 66 = Caps_Lock -keycode 67 = F1 XF86_Switch_VT_1 -keycode 68 = F2 XF86_Switch_VT_2 -keycode 69 = F3 XF86_Switch_VT_3 -keycode 70 = F4 XF86_Switch_VT_4 -keycode 71 = F5 XF86_Switch_VT_5 -keycode 72 = F6 XF86_Switch_VT_6 -keycode 73 = F7 XF86_Switch_VT_7 -keycode 74 = F8 XF86_Switch_VT_8 -keycode 75 = F9 XF86_Switch_VT_9 -keycode 76 = F10 XF86_Switch_VT_10 -keycode 77 = Num_Lock Pointer_EnableKeys -keycode 78 = Scroll_Lock -keycode 79 = KP_Home KP_7 -keycode 80 = KP_Up KP_8 -keycode 81 = KP_Prior KP_9 -keycode 82 = KP_Subtract XF86_Prev_VMode -keycode 83 = KP_Left KP_4 -keycode 84 = KP_Begin KP_5 -keycode 85 = KP_Right KP_6 -keycode 86 = KP_Add XF86_Next_VMode -keycode 87 = KP_End KP_1 -keycode 88 = KP_Down KP_2 -keycode 89 = KP_Next KP_3 -keycode 90 = KP_Insert KP_0 -keycode 91 = KP_Delete KP_Decimal -keycode 92 = -keycode 93 = Mode_switch -keycode 94 = less greater bar brokenbar bar brokenbar -keycode 95 = F11 XF86_Switch_VT_11 -keycode 96 = F12 XF86_Switch_VT_12 -keycode 97 = Home -keycode 98 = Up -keycode 99 = Prior -keycode 100 = Left -keycode 101 = -keycode 102 = Right -keycode 103 = End -keycode 104 = Down -keycode 105 = Next -keycode 106 = Insert -keycode 107 = Delete -keycode 108 = KP_Enter -keycode 109 = Control_R -keycode 110 = Pause Break -keycode 111 = Print Sys_Req -keycode 112 = KP_Divide XF86_Ungrab -keycode 113 = Alt_R Meta_R -keycode 114 = -keycode 115 = Super_L -keycode 116 = Super_R -keycode 117 = Menu -keycode 118 = -keycode 119 = -keycode 120 = -keycode 121 = -keycode 122 = -keycode 123 = -keycode 124 = ISO_Level3_Shift -keycode 125 = NoSymbol Alt_L -keycode 126 = KP_Equal -keycode 127 = NoSymbol Super_L -keycode 128 = NoSymbol Hyper_L -keycode 129 = -keycode 130 = -keycode 131 = -keycode 132 = -keycode 133 = -keycode 134 = -keycode 135 = -keycode 136 = -keycode 137 = -keycode 138 = -keycode 139 = -keycode 140 = -keycode 141 = -keycode 142 = -keycode 143 = -keycode 144 = -keycode 145 = -keycode 146 = -keycode 147 = -keycode 148 = -keycode 149 = -keycode 150 = -keycode 151 = -keycode 152 = -keycode 153 = -keycode 154 = -keycode 155 = -keycode 156 = NoSymbol Meta_L -keycode 157 = -keycode 158 = -keycode 159 = -keycode 160 = -keycode 161 = -keycode 162 = -keycode 163 = -keycode 164 = -keycode 165 = -keycode 166 = -keycode 167 = -keycode 168 = -keycode 169 = -keycode 170 = -keycode 171 = -keycode 172 = -keycode 173 = -keycode 174 = -keycode 175 = -keycode 176 = -keycode 177 = -keycode 178 = -keycode 179 = -keycode 180 = -keycode 181 = -keycode 182 = -keycode 183 = -keycode 184 = -keycode 185 = -keycode 186 = -keycode 187 = -keycode 188 = -keycode 189 = -keycode 190 = -keycode 191 = -keycode 192 = -keycode 193 = -keycode 194 = -keycode 195 = -keycode 196 = -keycode 197 = -keycode 198 = -keycode 199 = -keycode 200 = -keycode 201 = -keycode 202 = -keycode 203 = -keycode 204 = -keycode 205 = -keycode 206 = -keycode 207 = -keycode 208 = -keycode 209 = -keycode 210 = -keycode 211 = -keycode 212 = -keycode 213 = -keycode 214 = -keycode 215 = -keycode 216 = -keycode 217 = -keycode 218 = -keycode 219 = -keycode 220 = -keycode 221 = -keycode 222 = -keycode 223 = -keycode 224 = -keycode 225 = -keycode 226 = -keycode 227 = -keycode 228 = -keycode 229 = -keycode 230 = -keycode 231 = -keycode 232 = -keycode 233 = -keycode 234 = -keycode 235 = -keycode 236 = -keycode 237 = -keycode 238 = -keycode 239 = -keycode 240 = -keycode 241 = -keycode 242 = -keycode 243 = -keycode 244 = -keycode 245 = -keycode 246 = -keycode 247 = -keycode 248 = -keycode 249 = -keycode 250 = -keycode 251 = -keycode 252 = -keycode 253 = -keycode 254 = -keycode 255 = -EOF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 05:38:48
|
Revision: 529 http://assorted.svn.sourceforge.net/assorted/?rev=529&view=rev Author: yangzhang Date: 2008-02-28 21:38:46 -0800 (Thu, 28 Feb 2008) Log Message: ----------- removed on account of num-utils Removed Paths: ------------- shell-tools/trunk/src/avg.pl shell-tools/trunk/src/sum-nums.pl Deleted: shell-tools/trunk/src/avg.pl =================================================================== --- shell-tools/trunk/src/avg.pl 2008-02-29 03:59:26 UTC (rev 528) +++ shell-tools/trunk/src/avg.pl 2008-02-29 05:38:46 UTC (rev 529) @@ -1,4 +0,0 @@ -#!/usr/bin/env perl -# vim:et:sw=4 - -while (<>) { $sum += $_ ; $cnt += 1; } print $sum/$cnt; Deleted: shell-tools/trunk/src/sum-nums.pl =================================================================== --- shell-tools/trunk/src/sum-nums.pl 2008-02-29 03:59:26 UTC (rev 528) +++ shell-tools/trunk/src/sum-nums.pl 2008-02-29 05:38:46 UTC (rev 529) @@ -1,4 +0,0 @@ -#!/usr/bin/env perl -# vim:et:sw=4 - -while (<>) { $sum += $_ ; } print $sum; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <yan...@us...> - 2008-02-29 03:59:21
|
Revision: 528 http://assorted.svn.sourceforge.net/assorted/?rev=528&view=rev Author: yangzhang Date: 2008-02-28 19:59:26 -0800 (Thu, 28 Feb 2008) Log Message: ----------- assorted.bash ready to rock Modified Paths: -------------- shell-tools/trunk/src/bash-commons/assorted.bash Modified: shell-tools/trunk/src/bash-commons/assorted.bash =================================================================== --- shell-tools/trunk/src/bash-commons/assorted.bash 2008-02-29 03:59:00 UTC (rev 527) +++ shell-tools/trunk/src/bash-commons/assorted.bash 2008-02-29 03:59:26 UTC (rev 528) @@ -6,31 +6,36 @@ . common.bash || exit 1 root_site_dir="$( parent-dir named assorted )/assorted-site/trunk" -clean= +: ${clean:=false} prof=shell-sf base_web_dir=assorted/htdocs -webdir=$base_web_dir/public_html +webdir=$base_web_dir/$project stagedir="$( mktemp -d )" -cp -r "${webfiles[@]}" "$stagedir" +if (( ${#webfiles} > 0 )) +then cp -r "${webfiles[@]}" "$stagedir" +fi -for src in "${websrcs[@]}" ; do - if [[ src == README ]] - then out=index.html - else out="$( basename "${src%.*}.html" )" - fi - pandoc -s -S --tab-stop=2 \ - -c http://assorted.sf.net/main.css \ - -H "$(root_site_dir)/header.html" \ - -A "$(root_site_dir)/footer.html" \ - -o "$stagedir/$out" "$src" -done +if (( ${#websrcs} > 0 )) ; then + for src in "${websrcs[@]}" ; do + if [[ $src == README ]] + then out=index.html + else out="$( basename "${src%.*}.html" )" + fi + pandoc -s -S --tab-stop=2 \ + -c http://assorted.sf.net/main.css \ + -H "$root_site_dir/header.html" \ + -A "$root_site_dir/footer.html" \ + -o "$stagedir/$out" "$src" + done +fi tar czf - -C "$stagedir" . | ssh $prof " set -o errexit -o nounset - if [[ $clean ]] ; then rm -r $webdir ; fi + if $clean ; then rm -r $webdir ; fi mkdir -p $webdir cd $webdir - tar xzf - + tar xzmf - + chmod -R +rX . " This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |