home
·
contact
·
privacy
projects
/
redo-blog
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify all.do script.
[redo-blog]
/
processor
/
helpers.sh
diff --git
a/processor/helpers.sh
b/processor/helpers.sh
index cc12358cdd1618c3b6c27f0fdbe2a1b26091af72..20905ab6a9e5f06eb01763088ad2e4310784fabb 100644
(file)
--- a/
processor/helpers.sh
+++ b/
processor/helpers.sh
@@
-16,7
+16,7
@@
escape_url() {
}
get_basepath() {
}
get_basepath() {
- url_file=
url.meta
+ url_file=
"$1"url
redo-ifchange "$url_file"
base_url=`cat "$url_file" | head -1`
url_protocol=`echo $base_url | cut -d ':' -f 1`
redo-ifchange "$url_file"
base_url=`cat "$url_file" | head -1`
url_protocol=`echo $base_url | cut -d ':' -f 1`
@@
-27,8
+27,8
@@
get_basepath() {
}
get_source_file() {
}
get_source_file() {
- md_file="${1%.*}.md"
- rst_file="${1%.*}.rst"
+ md_file="
../
${1%.*}.md"
+ rst_file="
../
${1%.*}.rst"
if [ -f "$rst_file" ]; then
src_file="$rst_file"
elif [ -f "$md_file" ]; then
if [ -f "$rst_file" ]; then
src_file="$rst_file"
elif [ -f "$md_file" ]; then