Added post_read().
authordata <data@a0fa61bc-5347-0410-a1a9-7f54aa4e1825>
Wed, 10 Aug 2005 10:04:37 +0000 (10:04 +0000)
committerdata <data@a0fa61bc-5347-0410-a1a9-7f54aa4e1825>
Wed, 10 Aug 2005 10:04:37 +0000 (10:04 +0000)
Corrected some typos.

git-svn-id: http://abcde.googlecode.com/svn/trunk@86 a0fa61bc-5347-0410-a1a9-7f54aa4e1825

abcde
abcde.1
abcde.conf
debian/changelog

diff --git a/abcde b/abcde
index 2390440..7c83716 100755 (executable)
--- 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 (file)
--- 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Ƒ
index b049eff..5afae17 100644 (file)
 #   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
index 2672cdd..afbc846 100644 (file)
@@ -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
     <nphilipp@redhat.com>)
+  * Added a post_read() function to be executed before ejecting the CD.
+  * Typos reported by A Costa corrected (Closes: #311463)
 
- -- Jesus Climent <jesus.climent@hispalinux.es>  Sun,  7 Aug 2005 18:26:48 +0300
+ -- Jesus Climent <jesus.climent@hispalinux.es>  Tue,  9 Aug 2005 06:12:36 +0300
 
 abcde (2.2.6-1) unstable; urgency=low