Skip to content
Snippets Groups Projects
Commit 4874d4d9 authored by Toke Eskildsen's avatar Toke Eskildsen
Browse files

Condensed link list for alternatives

parent 4bf15877
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ function resolveAlternatives() { ...@@ -41,6 +41,7 @@ function resolveAlternatives() {
for A in `find . -name "${IMAGE}" | sort`; do for A in `find . -name "${IMAGE}" | sort`; do
# "../../.././Apex/B3/2012-01-05-01/Dagbladet-2012-01-05-01-0130B.jp2 -> Apex/B3 # "../../.././Apex/B3/2012-01-05-01/Dagbladet-2012-01-05-01-0130B.jp2 -> Apex/B3
local LINK=`echo "$A" | sed 's/[./]\\+\\([^\\/]\\+\\/[^\\/]\\+\\).*/\\1/g'` local LINK=`echo "$A" | sed 's/[./]\\+\\([^\\/]\\+\\/[^\\/]\\+\\).*/\\1/g'`
local LINK=$(dirname "$LINK")/
local D="${A%.*}" local D="${A%.*}"
ALTERNATIVES_HTML="${ALTERNATIVES_HTML}<li><a href=\"${UP}${D}.html\">${LINK}</a></li>"$'\n' ALTERNATIVES_HTML="${ALTERNATIVES_HTML}<li><a href=\"${UP}${D}.html\">${LINK}</a></li>"$'\n'
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment