Commit graph

256 commits

Author SHA1 Message Date
ayakael
cae230c11d
[print_meta_field] Renamed to print_mtag_field in preparation for import functions
[print_track_no] Renamed to print_mtag_trackno in preparation for import functions
[deploy_meta] Applied function rename for print_track_no
[print_meta_mtag] Applied function rename for print_mtag_field
2018-04-08 14:43:54 -04:00
ayakael
b9a328591b
[cmd_deploy] Now echoes a completion notice 2018-04-08 14:24:42 -04:00
ayakael
f08dcd417b
[db_update] Fixed bug with detection of deleted IMAGEIDs in git directory-side, and reporting in database file
[db_update] Now exits with specific code per possibility for IMAGEID (if added, exit code 0, if removed, exit code 1)
[cmd_update] Depending on exit code from db_update, echoes message now
2018-04-08 13:51:31 -04:00
ayakael
a5b5b27426
[parser] Fixed typo in cmd_include call 2018-04-08 13:03:22 -04:00
ayakael
9ab2fec0f1
[cmd_exclude][cmd_include] Will now output the number of matches for condition 2018-04-08 13:02:18 -04:00
ayakael
1960232553
[cmd_update] Made CLI logging prettier 2018-04-08 13:01:55 -04:00
ayakael
d9adfac99f
[db_update] Fixed typo where all existing TRACKIDs would be reported as deleted when it really wasnt 2018-04-08 13:00:23 -04:00
ayakael
a9c9e80c06
[db_update] Now only processes one IMAGEID at a time 2018-04-07 22:48:02 -04:00
ayakael
5034f4c1bb
[cmd_deploy][chk_deployed_idas][chk_metadata][chk_nonexistent_ids][cmd_deploy] Status will now not stay on just one line 2018-04-07 22:43:55 -04:00
ayakael
1874482e55
[parser] Added exit commenrs for deploy and update 2018-04-07 22:40:46 -04:00
ayakael
5991f4beb1
Updated Changelog 2018-04-07 21:42:21 -04:00
ayakael
0dfc40aaa8
[cmd_*][parser] Exit code for missing database file is now 3 2018-04-07 21:40:41 -04:00
ayakael
7ae4f59c5d
[deploy_cp] GIT_DIR side cleaning now working 2018-04-07 21:38:30 -04:00
ayakael
87d8f8e167
[cmd_*] Fixed typo with detection of git directory
[parser] Fixed bug with exit code detection
2018-04-07 21:18:44 -04:00
ayakael
0c22fcdf49
Removed test file for it is kinda useless 2018-04-07 21:10:22 -04:00
ayakael
a5e9701e62
Updated changelog 2018-04-07 21:09:35 -04:00
ayakael
342d7d7eed
[build.sh] Rewritten to build help menus
[help/conditions] [help/general] [help/info] Initial version
[parser] Added support for help
2018-04-07 21:02:31 -04:00
ayakael
dc6464ab54
[parser] Added --git-dir option. Otherwise, GIT_DIR is defined as the current working directory
[cmd_deploy] [cmd_du] [cmd_exclude] [cmd_fsck] [cmd_include] [cmd_update] Added checks to ensure DB_FILE and GIT_DIR exist
2018-04-07 20:31:51 -04:00
ayakael
81a132c1e4
[cmd_deploy] Added "Nothing to do" line for when there is nothing to update 2018-04-07 20:13:53 -04:00
ayakael
1e2d22cfbb
[parser] [cmd_fsck] Added fsck command to check integrity of db file 2018-04-07 20:08:23 -04:00
ayakael
1fc797418e
[chk_deployed_ids] [chk_metadata] [chk_nonexistent_ids] Made interface prettier 2018-04-07 19:59:47 -04:00
ayakael
6cae40f84d
[env] Env now does not source from /usr/lib/bash/bunc 2018-04-07 19:59:35 -04:00
ayakael
abef0cd0d3
[build.sh] Now adds bunc functions 2018-04-07 19:58:45 -04:00
ayakael
b975360ba8
Added bunc submodules 2018-04-07 19:58:14 -04:00
ayakael
271b515080
[deploy_gen] Now return 0 instead of 1 when split reattempt is succesful
[deploy_meta] Now uses sed to convert FUTURE_META's semi colon in new line
[deploy_mv] Fixed bug where certain syntax in mtag would throw off the trackidList generation
[deploy_meta_field] [ and ] characters, which are used for empty fields, are now replaced my space
[deploy_meta_mtag] Fixed bug with tagList generation
2018-04-07 18:33:41 -04:00
ayakael
383139e943
[deploy_cp] Fixed typo in variable name for imageid 2018-04-07 17:13:19 -04:00
ayakael
d65b85be8f
[chk_metadata] [cmd_deploy] [deploy_meta] Added prettier CLI logging 2018-04-07 17:09:22 -04:00
ayakael
3e6cec87fd
[deploy_meta] Exit with code 1 when either checks have failed (i.e, when path is wrong or applied metada is different) 2018-04-07 15:17:05 -04:00
ayakael
df25a5c2bd
[chk_metadata] Checks all metadata of FLAC files present in DB_FILE 2018-04-07 15:16:12 -04:00
ayakael
3de3d82b33
[print_future_path] When no track defined, prints track number is TITLE 2018-04-07 13:34:20 -04:00
ayakael
07cf6d3298
[print_meta_field] Added documentation
[print_meta_mtag] The value for "TITLE" field now does not get inherited.
2018-04-07 13:27:37 -04:00
ayakael
834594e217
[db_set] Fixed typo in awk command 2018-04-07 12:56:46 -04:00
ayakael
8b57e47a00
[print_track_no] Fixed bug with TITLEless tracks 2018-04-07 12:56:12 -04:00
ayakael
de4f4f9ae8
Updated changelog 2018-04-06 19:09:05 -04:00
ayakael
ad853a61bf
[cmd_du] Added function to check total projected disk usage of selected IMAGEIDs 2018-04-06 19:02:10 -04:00
ayakael
72aac8134f
Deprecations in favour of changes in deployment workflow:
[is_selected] Deprecated (and exterminated)
[deploy_imageid] Deprecated in favor of deploy_cp, deploy_rm and deploy_meta
[deploy_trackid] Deprecated in favor of deploy_cp, deploy_rm and deploy_meta

Misc changes and bugfixes for print functions
[print_future_path] In the event that TITLE is not set, TITLE will now be ALBUM, for tracks without titles.
[print_meta_flac] Track TITLES with colons are now kept
[print_present_path] Now needs IMAGEID and TRACKID in argument for TRACKID wasn't unique enough
[print_trackids_to_imageids] Prints the IMAGEIDs of all TRACKIDs

New functions for new deployment workflow that allows for deletion first, copying later, and smarter metadata adjustments
[deploy_rm] Removes all given TRACKIDs (i.e, what FILE_DB defines as false, but target_dir is not null)
[deploy_cp] Function copies TRACKIDs on a IMAGEID by IMAGEID basis to TARGET
[deploy_meta] Function applies metadata to IMAGEID tracks
[cmd_deploy] Rewrote cmd_deploy for use of new deploy functions

Bug fixes to db selections and db update
[db_set] Now ignores all lines that have LAST_DEPLOY and LAST_UPDATE
[db_update] Added function to report a file as removed from git dir. (null in selection column)
[cmd_update] LAST_COMMIT is now LAST_UPDATE in favour of LAST_DEPLOY, which is for commit of when last deployment occured
[cmd_update] Gawk is now used for inplace editing of database

Misc. adjustements
[cmd_deploy] Rewrote disk usage check
2018-04-06 18:55:34 -04:00
ayakael
bff31996f2
[print_present_path] Now needs only TRACKID to print current path 2018-04-06 18:55:34 -04:00
ayakael
23359c835c
[cmd_exclude] Fixed syntax bugs, now outputs projected disk usage at end
[cmd_include] Fixed syntax bugs, now outputs projected disk usage at end
2018-03-29 13:33:08 -04:00
ayakael
10de67b3be
[db_set] Is now case insensitive when doing FIELD and VALUE comparisons 2018-03-29 12:53:21 -04:00
ayakael
16b733b568
[print_imageid_du] Added to calculate disk usage of provided IMAGEIDs
[cmd_deploy] Now warns when target does not have sufficient space for deployable IDs
2018-03-29 12:45:53 -04:00
ayakael
badc5c28c9
[chk_nonexistent_ids] Added to check for TRACKIDs that point to non-existent files 2018-03-29 11:35:26 -04:00
ayakael
c1d3609089
[chk_deployed_ids] Now outputs to database with tab delimiters rather that space 2018-03-29 11:20:25 -04:00
ayakael
bceb0679dc
[env] Fixed mis-defined IFS variable. 2018-03-29 10:57:56 -04:00
ayakael
356d6b269f
[chk_deployed_ids] added to check a DB_FILE for missing files 2018-03-29 10:57:12 -04:00
ayakael
50b8612081
[print_meta_flac] can now accept arguments that define which tags should be printed 2018-03-29 10:56:30 -04:00
ayakael
a22a2d1575
[cmd_update] Now updates DB_FILE with new commit hash when database update success 2018-03-29 09:24:58 -04:00
ayakael
df69dbe70e
Added license, readme and changelog 2018-03-28 20:30:14 -04:00
ayakael
d3c141cbd8
[build.sh] Updated build script to remove debug eval command.
[build.sh] Build script now has 'env' file at head and 'parser' file tail
[cmd_deploy] Now uses the _OPT_DB_FILE variable instead of DB_FILE
[cmd_deploy] now generates imageidList using DB_FILE if imageid not provided by user
[cmd_exclude] Rewrote to operate as front end to db_set's exclude function
[cmd_include] Added as front end to db_set's include function
[cmd_update] Fixed some typos
[db_set] Added as backend to DB_FILE trackid selection
[env] Now defines _OPT_DB_FILE as .dam.db
[parser] Updates parser to support cmd_deploy, cmd_include, cmd_exclude and cmd_update
[print_meta_mtag] Last line now does not trail with ";" character
2018-03-28 19:26:38 -04:00
ayakael
e05faf010f
Renamed function print_present_meta to print_meta_flac
Renamed function print_future_meta to print_meta_mtag, and added ability to define what field to extract
Renamed function update_db to db_update, and updated to support new database format
Created function db_set to set selection of trackid depending on conditions
Updated cmd_deploy to support deploy_imageid
Updated cmd_update to support new db_update
2018-03-28 12:48:49 -04:00
ayakael
06a0491448
print_future_meta can now selectively extract tags, if told to 2018-03-28 12:14:58 -04:00