ASF Bugzilla – Attachment 35638 Details for
Bug 61957
Add year change support to update-index-monthly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix year end processing
update-index-monthly.patch (text/plain), 679 bytes, created by
Sebb
on 2018-01-02 17:14:08 UTC
(
hide
)
Description:
Fix year end processing
Filename:
MIME Type:
Creator:
Sebb
Created:
2018-01-02 17:14:08 UTC
Size:
679 bytes
patch
obsolete
>Index: scripts/update-index-monthly >=================================================================== >--- scripts/update-index-monthly (revision 1812828) >+++ scripts/update-index-monthly (working copy) >@@ -2,9 +2,15 @@ > # ZSH 4+ script to ensure that we are up-to-date last month > DATE=`date -u "+%Y%m"` > typeset -i DATE >-# add year support sometime... > CURDATE=$DATE >-DATE=$DATE-1 >+# date is of the form YYYYMM >+# if the date ends in 01, we need to subtract 1 year and add 11 months >+if [[ $(($DATE % 100)) == 1 ]] >+then >+ DATE=$DATE-89 # i.e. -100 (1 year) +11 (months) >+else >+ DATE=$DATE-1 >+fi > ARCHIVES_PATH=$HOME/archives/mbox-archives.conf > > if [ $# -ge 1 ]; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 61957
: 35638