Commit graph

62 commits

Author SHA1 Message Date
ayakael
6b047c87f9
[cmd_fsck] Fixed command use 2018-04-15 22:13:19 -04:00
ayakael
ff71d6530d
[cmd_fsck] Now permits choice in what tests one does 2018-04-15 22:05:35 -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
bba5a8680a
[deploy_rm] Now exits with proper exit code on success 2018-04-15 21:40:11 -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
5eb4577994
[parser] Fixed typos 2018-04-15 21:30:01 -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
525c54296f
[db_update] Fixed bug where script would return too soon during database update 2018-04-15 19:01:39 -04:00
ayakael
93b4f51495
[print_mtag_field] Completed rename in documentation 2018-04-08 14:46:46 -04:00
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
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
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
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
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