Code cleaned ; readme ; help

This commit is contained in:
Cyrille L 2022-04-15 09:07:23 +02:00
parent 00d48233d0
commit caeba3da7b
6 changed files with 13 additions and 56 deletions

View File

@ -499,8 +499,8 @@ $ gsl [ARG]
[ARG]: [ARG]:
add | -A : Must set a Position number before [FILE] add | -A : Must set a Position number before [FILE]
Max posts in list is set in gsl.conf Max posts in list is set in gsl.conf
remove | -R : No Position to set, just [FILE].
Replace post position if post not exists in list Replace post position if post not exists in list
remove | -R : No Position to set, just [FILE].
add/remove will build last-posts-list.html add/remove will build last-posts-list.html
create | -C : rebuild last-posts-list.html create | -C : rebuild last-posts-list.html

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# Version: 0.0.3 # Version: 0.0.3.1
# file: gsl # file: gsl
# Folder: /usr/local/bin # Folder: /usr/local/bin
# By echolib # By echolib

View File

@ -499,8 +499,8 @@ $ gsl [ARG]
[ARG]: [ARG]:
add | -A : Must set a Position number before [FILE] add | -A : Must set a Position number before [FILE]
Max posts in list is set in gsl.conf Max posts in list is set in gsl.conf
remove | -R : No Position to set, just [FILE].
Replace post position if post not exists in list Replace post position if post not exists in list
remove | -R : No Position to set, just [FILE].
add/remove will build last-posts-list.html add/remove will build last-posts-list.html
create | -C : rebuild last-posts-list.html create | -C : rebuild last-posts-list.html

View File

@ -48,8 +48,8 @@ $ gsl [ARG]
[ARG]: [ARG]:
add | -A : Must set a Position number before [FILE] add | -A : Must set a Position number before [FILE]
Max posts in list is set in gsl.conf Max posts in list is set in gsl.conf
remove | -R : No Position to set, just [FILE].
Replace post position if post not exists in list Replace post position if post not exists in list
remove | -R : No Position to set, just [FILE].
add/remove will build last-posts-list.html add/remove will build last-posts-list.html
create | -C : rebuild last-posts-list.html create | -C : rebuild last-posts-list.html

View File

@ -128,49 +128,6 @@ do
esac esac
;; ;;
listing)
# Continue if post changed
[[ "$gsl_post_new_hash" ]] \
&& gsl__logs_print \
"$gsl_log_e" \
"Listing" \
"$gsl_listing_process" \
"file ; $gsl_post has changed !" \
"$gsl_file_db_post" \
&& continue
case "$gsl_listing_process" in
add)
gsl__page_sidebar
;;
remove)
gsl__page_sidebar
;;
esac
;;
post-list)
case "$gsl_db_post_status" in
wip|www)
gsl_process="wip"
gsl__post_begin
gsl__get_needed_headers
gsl__page_prepare_datas
gsl__page_listing_create "$gsl_post_list"
;;
*)
gsl__logs_print \
"$gsl_log_e" \
"Post" \
"Status" \
"$gsl_db_post_status: $gsl_post not Converted" \
"$gsl_file_db_posts"
gsl_checker_err=true
;;
esac
;;
www) www)
gsl_checker_war=true gsl_checker_war=true
case "$2" in case "$2" in