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]:
add | -A : Must set a Position number before [FILE]
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
remove | -R : No Position to set, just [FILE].
add/remove will build last-posts-list.html
create | -C : rebuild last-posts-list.html

View File

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

View File

@ -499,8 +499,8 @@ $ gsl [ARG]
[ARG]:
add | -A : Must set a Position number before [FILE]
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
remove | -R : No Position to set, just [FILE].
add/remove will build last-posts-list.html
create | -C : rebuild last-posts-list.html

View File

@ -48,8 +48,8 @@ $ gsl [ARG]
[ARG]:
add | -A : Must set a Position number before [FILE]
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
remove | -R : No Position to set, just [FILE].
add/remove will build last-posts-list.html
create | -C : rebuild last-posts-list.html

View File

@ -127,50 +127,7 @@ do
;;
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)
gsl_checker_war=true
case "$2" in

View File

@ -53,10 +53,10 @@ case "$2" in
# Post exists (maybe with different position)
gsl__logs_print \
"$gsl_log_w" \
"Sidebar" \
"Post" \
"$gsl_listing_process $4 ; already in list !" \
"$gsl_dir_domain_listings/"
"Sidebar" \
"Post" \
"$gsl_listing_process $4 ; already in list !" \
"$gsl_dir_domain_listings/"
gsl_checker_war=true
elif [[ "$gsl_post_old_inlist" ]];then
@ -65,10 +65,10 @@ case "$2" in
rm -f "$gsl_dir_domain_listings/$gsl_post_old_inlist"
gsl__logs_print \
"$gsl_log_w" \
"Sidebar" \
"Post" \
"$gsl_listing_process $4 ; replace $gsl_post_old_inlist !" \
"$gsl_dir_domain_listings/$gsl_post_old_inlist"
"Sidebar" \
"Post" \
"$gsl_listing_process $4 ; replace $gsl_post_old_inlist !" \
"$gsl_dir_domain_listings/$gsl_post_old_inlist"
gsl_checker_war=true
gsl__page_sidebar $2 $3 $4
else