Introduction
Introduction Statistics Contact Development Disclaimer Help
pharc: Sorting archives in reverse mode
Saturday Jan 28 10:37:58 2017
"pharc" used to sort archives from older to newer. It was fine to me
but thinking it twice, and thanks to grugly for pointing that out,
it was a little bit confusing because when you visited the gopherhole
you got the new posts of the year on top and then the archives in
older to newer order.
Well, changing the layout was easy to achieve, I simply had to
reverse the sorting order and that's it.
commit 2d19ace027fc3fbad6e667751e6d57302d608cec
Refs: v.5.0-3-g2d19ace
Author: Carlos Zuferri <[email protected]>
AuthorDate: Sat Jan 28 09:38:36 2017 +0100
Commit: Carlos Zuferri <[email protected]>
CommitDate: Sat Jan 28 09:38:36 2017 +0100
Sorting Archives in reverse mode.
---
scripts/gopher/pharc6 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/gopher/pharc6 b/scripts/gopher/pharc6
index 6cd4fc1..dd8a9f7 100755
--- a/scripts/gopher/pharc6
+++ b/scripts/gopher/pharc6
@@ -156,7 +156,7 @@ mv gophermap gophermap~
sed -e "/1Archive.*/d" -e "/^1.*(*-*-${PHARC_ARCHIVE#20}$/d" <
chmod 640 gophermap
-DIRS=$(ls -d 20??)
+DIRS=$(ls -d 20?? | sort -r)
You can check it out at: gopher://sdf-eu.org:70/1/users/chals/phlog
Thanks grugly :)
______________________________________________________________________
Gophered by Gophernicus/1.6 on NetBSD/amd64 9.1
You are viewing proxied material from sdfeu.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.