Commit graph

261 commits

Author SHA1 Message Date
ayakael
39455e0083
[print_cue_breaklist] Fixed misnamed function 2018-05-18 13:55:32 -07:00
ayakael
28f4c230f5
[gen_cue] Fixed misnamed function 2018-05-18 13:54:43 -07:00
ayakael
2663681ab3
[cmd_import_images] Finished function name change from cueripper to images 2018-05-18 13:53:03 -07:00
ayakael
d829f8e8d3
[gen_trackid] Fixed misnamed function 2018-05-18 13:51:12 -07:00
ayakael
db4d479e14
[print_meta_mtag] Fixed dependency info 2018-05-18 13:48:43 -07:00
ayakael
00bdfdc025
[cmd_import] Fixed function names 2018-05-18 13:47:48 -07:00
ayakael
817a79b4d4
[all] Added function dependency information 2018-05-18 13:39:39 -07:00
ayakael
b45c5a8e6b
[build] Added ability to specify dependent functions 2018-05-18 13:12:49 -07:00
ayakael
9829bc32d0
[print_meta_tracks] Changed function name 2018-05-18 12:38:21 -07:00
ayakael
35fbaad084
[cmd_import] Updated documentation
[cmd_import_tracks] Rewrote function to accomodate fragmented files
[cmd_import_images] Renamed cmd_import_cueripper to cmd_import_images in preparation for rewri
te of import_images functions
[gen_cue] Adjusted variable names to fit actual output of print_meta functions
[gen_image] Removed error messages in favor of exit codes
[gen_mtag] Rewrote to accomodate multiple track files.
[import_dir] Added to deal with importing directories after consolidation by import_track
[import_cueripper] Renamed to import_images in preparation for rewrite
[import_track] Added to deal with consolidation of disparate track files
[import_tracks] Removed in favor of import_track and import_dir functions
[iszip] Added as an easy way to see if zip file
[print_meta_track] Renamed function
2018-05-18 12:37:03 -07:00
ayakael
2741e72574
Merge branch 'dev-0.2.6' into dev-0.3 2018-05-17 19:48:39 -07:00
ayakael
3c57238b42
[cmd_init] Fixed missing semi-colon 2018-05-16 00:14:05 -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
9df4e5fb0d
[db_set] Updated to ignore REPO_ID field 2018-05-16 00:04:35 -07:00
ayakael
3d5ceacf0b
[parser] Added init command 2018-05-16 00:03:13 -07:00
ayakael
03438ec426
[cmd_init] Initializes database in target 2018-05-16 00:02:48 -07:00
ayakael
5fc92f1620
[db_update] Now added tracks are unselected by default. 2018-05-15 23:51:40 -07:00
ayakael
7acf7f5d99
[cmd_exclude] Fixed UI bug with "OK output 2018-05-15 23:47:55 -07:00
ayakael
d4200094cc
[print_imageid_du] When gracefull exit occurs, assume that files represent 0 bytes 2018-05-15 23:46:57 -07:00
ayakael
2d4c714ba2
[print_imageid_du] Function exits gracefully when no imageids are present 2018-05-15 23:45:28 -07:00
ayakael
d06aa7beb6
[db_set] All conditional will now not overwrite LAST_DEPLOY and LAST_UPDATE rows 2018-05-15 23:32:10 -07:00
ayakael
dba832edba
[print_imageid_du] Attempt at fixing "dc: stack empty" message when no tracks are selected, this time with return 2018-05-15 23:29:00 -07:00
ayakael
b9f882d5d1
[print_imageid_du] Attempt at fixing "dc: stack empty" message when no tracks are selected 2018-05-15 23:28:13 -07:00
ayakael
71753962bd
[db_set] In the event of "all" conditional, will output full DB_FILE for match count 2018-05-15 23:25:55 -07:00
ayakael
0c670b69db
[db_set] Fixed bug with awk statement 2018-05-15 23:24:01 -07:00
ayakael
dc2f09d4e3
[db_set] Added if statement for "all" condition to apply selection to all tracks 2018-05-15 23:22:28 -07:00
ayakael
1c9dc28a03
[deploy_meta] Fixed bug where sed would not proper convert semi colon output from print_meta into newlines to feed into metaflac 2018-05-15 23:18:02 -07:00
ayakael
3670bb268b
[cmd_import] Optimized delegation
[cmd_import_cueripper] [cmd_import_tracks] Changed names of old functions
2018-05-15 22:52:31 -07:00
ayakael
9e4e9327b2
Merge branch 'dev-0.2.5' into dev-0.3
Merging bug fixes from dev-0.2.5
2018-05-05 11:27:18 -07:00
ayakael
b55b55ce7b
[parser] Fixed merge conflict 2018-05-04 12:33:10 -07:00
ayakael
fb4cedb3d7
[parser] Fixed over-break and a shift what was not needed 2018-05-04 12:31:01 -07:00
ayakael
8a7cdff149
[parser] Changed return to break 2018-05-04 12:20:58 -07:00
ayakael
54013450b4
[parser] Another attempt at dealing with options parsing 2018-05-04 12:19:19 -07:00
ayakael
a299939cb0
[parser] Fixed broken option handling 2018-05-04 10:31:53 -07:00
ayakael
50c5511912
[cmd_deploy] Attempt at deploy_cp bad error handling 2018-05-04 10:26:20 -07:00
ayakael
45fc52df36
[parser] Fixed indentation for general options, try 2 2018-04-30 08:54:24 -07:00
ayakael
e160d6df7e
[parser] Fixed indentation for general options 2018-04-30 08:51:23 -07:00
ayakael
e2805cf381
[parser] Fixed typo 2018-04-15 23:05:39 -04: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
5d199f8315
[chk_nonexistent_ids] 2nd attempt at ignoring LAST rows 2018-04-15 22:46:17 -04:00
ayakael
29b8f4d4af
[chk_nonexistent_ids] Fixed logging handling 2018-04-15 22:43:35 -04:00
ayakael
c3217d543a
[chk_nonexistent_ids] Proper exit codes introduces 2018-04-15 22:40:31 -04:00
ayakael
90ddcd930c
[parser] Made while loop non-infinite 2018-04-15 22:33:45 -04:00
ayakael
d137ace072
[parser] fsck options can not be put after or before target 2018-04-15 22:32:21 -04:00
ayakael
c8f81c2ecd
[parser] [cmd_fsck] Test specification now done by parser 2018-04-15 22:29:45 -04:00
ayakael
20cb57ecef
[chk_nonexistent_ids] Now ignores LAST_DEPLOY and LAST_UPDATE rows 2018-04-15 22:22:44 -04:00
ayakael
511c997c4e
[chk_nonexistent_ids] Fixed typo in gawk command 2018-04-15 22:21:06 -04:00
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
a7eb032bc2
Imported functions from git2git 2018-04-08 16:52:56 -04:00
ayakael
908995efa7
Imported functions from cue2git 2018-04-08 16:52:56 -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
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
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
ayakael
1ded1a99e0
Added _msg functions to deploy_imageid and update_db 2018-03-28 11:29:07 -04:00
ayakael
35f92513dd
Optmized print_meta_field function 2018-03-28 11:07:17 -04:00
ayakael
86525440f4
Removed eval addition by src/dam 2018-03-28 09:54:01 -04:00
ayakael
7dcd6db0b7
Tested and bug fixed deploy_image_id and its dependant functions 2018-03-28 09:52:57 -04:00
ayakael
d024a0dc02
Program now executes on a track by track basis, rather than image id by image id basis
Added support for track  selection/exclusion.
Rewrote code
2018-03-26 19:34:44 -04:00
ayakael
48d5fb91af
Initial commit - migration from music repo to own repo 2018-03-19 15:09:06 -04:00