mirror of
https://github.com/kennethreitz-archive/sphinx-to-github.git
synced 2026-06-05 23:40:17 +00:00
Added old script for historic interest
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/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