mirror of
https://github.com/kennethreitz-archive/sphinx-to-github.git
synced 2026-06-05 23:40:17 +00:00
Removed legacy script and added alternatives section to README
This commit is contained in:
+6
-6
@@ -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
|
||||
-------
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user