From: data Date: Wed, 10 Aug 2005 10:04:37 +0000 (+0000) Subject: Added post_read(). X-Git-Url: https://git.hcoop.net/clinton/abcde.git/commitdiff_plain/65f3ebb1eb2e4d92774d4b8fdfaa21488d58c297?ds=sidebyside Added post_read(). Corrected some typos. git-svn-id: http://abcde.googlecode.com/svn/trunk@86 a0fa61bc-5347-0410-a1a9-7f54aa4e1825 --- diff --git a/abcde b/abcde index 2390440..7c83716 100755 --- a/abcde +++ b/abcde @@ -2017,6 +2017,13 @@ pre_read () : } +# post_read +# Empty post_read function, to be defined in the configuration file. +post_read () +{ +: +} + ############################################################################### # End of functions # @@ -2800,6 +2807,9 @@ if [ "$BATCH" = "y" ] || [ "$ONETRACK" = "y" ]; then echo NEXTTRACK fi +# Execute the user-defined post_read funtion before ejecting CD +post_read + # We are now finished with the cdrom - it can be safely ejected. Note that # abcde will not have completed yet. if [ "$EJECTCD" = "y" ] && [ -x $(which $EJECT) ]; then diff --git a/abcde.1 b/abcde.1 index 3f5326f..2787b9d 100644 --- a/abcde.1 +++ b/abcde.1 @@ -239,7 +239,7 @@ files even you have requested the "clean" action. .TP .B PADTRACKS If set to "y", it adds 0's to the file numbers to complete a two-number -holder. Usefull when encoding tracks 1-9. +holder. Useful when encoding tracks 1-9. .TP .B INTERACTIVE Set to "n" if you want to perform automatic rips, without user intervention. @@ -384,7 +384,7 @@ after all tracks have been read. .TP .B EXTRAVERBOSE If set to "y", some operations which are usually now shown to the end user -are visible, such as CDDB queries. Usefull for initial debug and if your +are visible, such as CDDB queries. Useful for initial debug and if your network/CDDB server is slow. .SH EXAMPLES Possible ways one can call abcdeƑ diff --git a/abcde.conf b/abcde.conf index b049eff..5afae17 100644 --- a/abcde.conf +++ b/abcde.conf @@ -273,11 +273,24 @@ # set it here. In Debian, eject -x and cdset -x do the job. # KEEP IN MIND that executables included in pre_read must be in your $PATH or # you have to define them with full /path/to/binary +# Uncomment and substitute the ":" with your commands. #pre_read () #{ #: #} +# Custom post-read function +# By default it does nothing. +# You can set some things to get abcde funtion in better ways: +# * Store a copy of the CD TOC. +# KEEP IN MIND that executables included in post_read must be in your $PATH or +# you have to define them with full /path/to/binary +# Uncomment and substitute the ":" with your commands. +#post_read () +#{ +#: +#} + # If you'd like to have abcde eject the cdrom after all the tracks have been # read, uncomment the following line. #EJECTCD=y diff --git a/debian/changelog b/debian/changelog index 2672cdd..afbc846 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,8 +17,10 @@ abcde (2.3.0-1) unstable; urgency=low as a post-process action. * Applied patches from Fedora Core (Credit goes to Nils Philippsen ) + * Added a post_read() function to be executed before ejecting the CD. + * Typos reported by A Costa corrected (Closes: #311463) - -- Jesus Climent Sun, 7 Aug 2005 18:26:48 +0300 + -- Jesus Climent Tue, 9 Aug 2005 06:12:36 +0300 abcde (2.2.6-1) unstable; urgency=low