Skip to content

Commit

Permalink
Update from Hackage at 2021-01-10T22:47:58Z
Browse files Browse the repository at this point in the history
  • Loading branch information
all-cabal-tool committed Jan 10, 2021
1 parent a90c2bd commit 36f52a9
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
76 changes: 76 additions & 0 deletions group-by-date/0.1.0.4/group-by-date.cabal
@@ -0,0 +1,76 @@
Cabal-Version: 2.2
Name: group-by-date
Version: 0.1.0.4
License: BSD-3-Clause
License-File: LICENSE
Author: Henning Thielemann <haskell@henning-thielemann.de>
Maintainer: Henning Thielemann <haskell@henning-thielemann.de>
Homepage: https://hub.darcs.net/thielema/group-by-date/
Category: Console
Synopsis: Shell command for grouping files by dates into folders
Description:
This program is intended for grouping photography images by date
into a hierarchy of date related folders.
.
If you have a folder of photographies, say @photos@,
you may run
.
> group-by-date -r photos
.
The program will emit a Bash script like this one:
.
> mkdir -p 2017/2017-06/2017-06-28 && mv photos/0001.jpeg 2017/2017-06/2017-06-28
> mkdir -p 2017/2017-06/2017-06-28 && mv photos/0002.jpeg 2017/2017-06/2017-06-28
> mkdir -p 2017/2017-06/2017-06-28 && mv photos/0003.jpeg 2017/2017-06/2017-06-28
.
You can inspect the script and if you like it, you can run it:
.
> group-by-date -r photos | bash
.
If you want a different command,
say copying with preservation of modification time, you can call
.
> group-by-date --command='cp -p' -r photos
.
Alternatively, you can run the actions immediately,
that is, without a Bash script:
.
> group-by-date --mode=move -r photos
> group-by-date --mode=copy -r photos
.
You can also change the target directory structure
using the @--format@ option.
You can list all options and default values using @--help@.
.
Attention:
Media for photographies is often formatted with FAT.
This may yield trouble with respect to timezones.
Tested-With: GHC==7.8.4, GHC==8.2.1
Build-Type: Simple

Source-Repository this
Tag: 0.1.0.4
Type: darcs
Location: https://hub.darcs.net/thielema/group-by-date/

Source-Repository head
Type: darcs
Location: https://hub.darcs.net/thielema/group-by-date/

Executable group-by-date
Build-Depends:
shell-utility >=0.0 && <0.2,
filemanip >=0.3.5 && <0.4,
pathtype >=0.8 && <0.9,
time >=1.5 && <1.10,
unix-compat >=0.3 && <0.6,
explicit-exception >=0.1 && <0.2,
transformers >=0.2 && <0.6,
utility-ht >=0.0.1 && <0.1,
base >=3 && <5

Default-Language: Haskell98
GHC-Options: -Wall
Hs-source-dirs: src
Other-Modules: GroupByDate
Main-Is: Main.hs
1 change: 1 addition & 0 deletions group-by-date/0.1.0.4/group-by-date.json
@@ -0,0 +1 @@
{"package-hashes":{"MD5":"23483cb4e3e7d5451226546eb98c3286","Skein512_512":"8f36c6523534924af0ab572c023509a865f0a490e978fd6beef67c6706060700cc864793f9861bf908a09859b284f37b381ca957b19416a23336ed7cebdd67e8","SHA1":"0e24b718c8d067abe57d0fa4ec7789b8bec6ed7d","SHA512":"6b108c6ecbbb77086a99ec12c1295215e3209cc706260f624931450f50ef391153bbd6cca9133a8f12311265e059184a384701bd04826b9ec0728461b74b8ccd","SHA256":"4a27d9a48fa4f80dc17c265c13b1f9b3a9821f0962e15cfc7cbf883fc3b4abcc"},"package-locations":["https://hackage.haskell.org/package/group-by-date-0.1.0.4/group-by-date-0.1.0.4.tar.gz","https://s3.amazonaws.com/hackage.fpcomplete.com/package/group-by-date-0.1.0.4.tar.gz"],"package-size":4388}

0 comments on commit 36f52a9

Please sign in to comment.