Code cleaned ; readme ; help
This commit is contained in:
parent
00d48233d0
commit
caeba3da7b
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -53,10 +53,10 @@ case "$2" in
|
||||||
# Post exists (maybe with different position)
|
# Post exists (maybe with different position)
|
||||||
gsl__logs_print \
|
gsl__logs_print \
|
||||||
"$gsl_log_w" \
|
"$gsl_log_w" \
|
||||||
"Sidebar" \
|
"Sidebar" \
|
||||||
"Post" \
|
"Post" \
|
||||||
"$gsl_listing_process $4 ; already in list !" \
|
"$gsl_listing_process $4 ; already in list !" \
|
||||||
"$gsl_dir_domain_listings/"
|
"$gsl_dir_domain_listings/"
|
||||||
gsl_checker_war=true
|
gsl_checker_war=true
|
||||||
|
|
||||||
elif [[ "$gsl_post_old_inlist" ]];then
|
elif [[ "$gsl_post_old_inlist" ]];then
|
||||||
|
@ -65,10 +65,10 @@ case "$2" in
|
||||||
rm -f "$gsl_dir_domain_listings/$gsl_post_old_inlist"
|
rm -f "$gsl_dir_domain_listings/$gsl_post_old_inlist"
|
||||||
gsl__logs_print \
|
gsl__logs_print \
|
||||||
"$gsl_log_w" \
|
"$gsl_log_w" \
|
||||||
"Sidebar" \
|
"Sidebar" \
|
||||||
"Post" \
|
"Post" \
|
||||||
"$gsl_listing_process $4 ; replace $gsl_post_old_inlist !" \
|
"$gsl_listing_process $4 ; replace $gsl_post_old_inlist !" \
|
||||||
"$gsl_dir_domain_listings/$gsl_post_old_inlist"
|
"$gsl_dir_domain_listings/$gsl_post_old_inlist"
|
||||||
gsl_checker_war=true
|
gsl_checker_war=true
|
||||||
gsl__page_sidebar $2 $3 $4
|
gsl__page_sidebar $2 $3 $4
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue