Removed legacy script and added alternatives section to README

This commit is contained in:
mpj
2009-11-26 11:30:36 +00:00
parent eacd0e25d5
commit 5ebb0c3b7a
2 changed files with 6 additions and 29 deletions
+6 -6
View File
@@ -47,13 +47,13 @@ Requirements
The script uses ``/usr/bin/env`` and ``python``.
Note
----
Alternatives
------------
The first incarnation of this script was written in bash using ``find`` and
``sed``. It was delightfully old school but not very portable and not very fast.
It is available as ``sphinx-to-github.legacy`` because the author isn't ready to
let go yet.
`dinoboff's <http://github.com/dinoboff>`_ project `github-tools
<http://github.com/dinoboff/github-tools>`_ provides similar functionality
combined with a much more comprehensive set of tools for helping you to manage
Python based projects on github.
Credits
-------
-23
View File
@@ -1,23 +0,0 @@
#!/bin/bash
sed=`which gsed || which sed`
for underscore_folder in _*
do
echo "Processing matches for: " $underscore_folder
folder_without_underscore=`echo -n $underscore_folder | $sed 's/^.//'`
for underscore_file in $( find $underscore_folder -type f )
do
file_without_underscore=`echo -n $underscore_file | $sed 's/^.//'`
for file in $( find . -type f -name "*.html" )
do
$sed -i "s/${underscore_file//\//\/}/${file_without_underscore//\//\/}/g" $file
done
done
mv $underscore_folder $folder_without_underscore
done