Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] [quill PATCH v2 4/4] libcopy: Sort presented grimoire and section lists

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Ismael Luceno <ismael AT sourcemage.org>
  • To: Jaka Kranjc <smgl AT lynxlynx.info>
  • Cc: Ismael Luceno <ismael AT sourcemage.org>, sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] [quill PATCH v2 4/4] libcopy: Sort presented grimoire and section lists
  • Date: Thu, 25 Dec 2014 20:11:43 -0300

Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
---
var/lib/quill/modules/libcopy | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/var/lib/quill/modules/libcopy b/var/lib/quill/modules/libcopy
index a514f70..354913b 100644
--- a/var/lib/quill/modules/libcopy
+++ b/var/lib/quill/modules/libcopy
@@ -20,13 +20,14 @@ function copy_new_to_git()
find "$QUILL_GIT_DIR" -maxdepth 1 -type d |
while read dir; do
[[ -d $dir/.git ]] && basename $dir
- done | column
+ done | sort | column
query_string grimoire "Which of the above is the target git grimoire? "
while ! dir_check "$QUILL_GIT_DIR/$grimoire"; do
query_string grimoire "Which of the above is the target git grimoire? "
done
echo
- find "$QUILL_GIT_DIR/$grimoire" -maxdepth 1 -type d -printf "%P\n" |
column
+ find "$QUILL_GIT_DIR/$grimoire" -maxdepth 1 -type d -printf "%P\n" |
+ sort | column
query_string section "Which section do you want to put it in? "
while ! dir_check "$QUILL_GIT_DIR/$grimoire/$section"; do
query_string section "Which section do you want to put it in? "
--
2.2.1





Archive powered by MHonArc 2.6.24.

Top of Page