Commit graph

23 commits

Author SHA1 Message Date
ayakael
817a79b4d4
[all] Added function dependency information 2018-05-18 13:39:39 -07:00
ayakael
cf5127a59a
[cmd_update] [cmd_deploy] [cmd_exclude] [cmd_include] [cmd_fsck] Now makes sure git_dir being used is indeed the right repo 2018-05-16 00:09:46 -07:00
ayakael
50c5511912
[cmd_deploy] Attempt at deploy_cp bad error handling 2018-05-04 10:26:20 -07:00
ayakael
cfd00e3e2d
[cmd_deploy][cmd_update][parser] Added --from option to define OLD_COMMIT
[parser] --git-dir option now expects no = in front of it
2018-04-15 22:58:41 -04:00
ayakael
88c6e17d52
[cmd_deploy] Now does not mention target during remove operation 2018-04-15 21:59:01 -04:00
ayakael
65c9b5b937
[cmd_depoy] Now properly generates removablelists array 2018-04-15 21:49:49 -04:00
ayakael
187a00f32e
[cmd_deploy] Fixed bug with git annex get failure to download when files were already present 2018-04-15 21:34:17 -04:00
ayakael
2d8bebb9db
[cmd_deploy] Fixed typo in git annex get graceful exit 2018-04-15 21:28:50 -04:00
ayakael
b77b5290a7
[cmd_deploy] RemovableIDs now includes all tracks that are tagged with "null" 2018-04-15 21:19:23 -04:00
ayakael
3b66148c9b
[cmd_deploy] Now has proper exit strategy in case of git annex get failure 2018-04-15 21:13:46 -04:00
ayakael
240eb94286
[cmd_deploy] now gets image files from server if not present 2018-04-15 21:09:34 -04:00
ayakael
b9a328591b
[cmd_deploy] Now echoes a completion notice 2018-04-08 14:24:42 -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
0dfc40aaa8
[cmd_*][parser] Exit code for missing database file is now 3 2018-04-07 21:40:41 -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
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
d65b85be8f
[chk_metadata] [cmd_deploy] [deploy_meta] Added prettier CLI logging 2018-04-07 17:09:22 -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
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
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
48d5fb91af
Initial commit - migration from music repo to own repo 2018-03-19 15:09:06 -04:00