Changeset 7135
- Timestamp:
- 02/05/10 00:08:16 (7 months ago)
- Location:
- trunk/liquidsoap
- Files:
-
- 5 modified
-
configure.ac (modified) (3 diffs)
-
scripts/external.liq (modified) (1 diff)
-
scripts/utils.liq (modified) (1 diff)
-
src/configure.mli (modified) (1 diff)
-
src/main.ml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/liquidsoap/configure.ac
r7130 r7135 6 6 dnl $libdir/liquidsoap/$libs_dir_version 7 7 8 # Remove +svn and set svn_snapshot to false 9 # before releasing 8 10 AC_INIT([liquidsoap],[0.9.2+svn]) 9 version="0.9.2+svn" 10 libs_dir_version="svn" 11 svn_snapshot=true 12 version=0.9.2 13 14 if test $svn_snapshot != "false"; then 15 version="$version+svn" 16 libs_dir_version="svn" 17 else 18 libs_dir_version="$version" 19 fi 11 20 AC_SUBST(version) 12 21 AC_SUBST(libs_dir_version) … … 41 50 cat > src/configure.ml << _BLAH_ 42 51 let version = "$version" 52 let svn_snapshot = $svn_snapshot 43 53 let conf = Dtools.Conf.void "Liquidsoap configuration" 44 54 let var_script = ref "default" … … 1702 1712 fi 1703 1713 1704 AC_PATH_PROG(TEXT2WAVE,text2wave$(EXEEXT),false) 1705 AC_PATH_PROG(SOX,sox,false) 1706 AC_PATH_PROG(NORMALIZE,normalize,false) 1714 if test $OS_TYPE != "Win32"; then 1715 AC_PATH_PROG(TEXT2WAVE,text2wave,false) 1716 AC_PATH_PROG(SOX,sox,false) 1717 AC_PATH_PROG(NORMALIZE,normalize,false) 1718 fi 1707 1719 1708 1720 if test "$TEXT2WAVE" = false ; then -
trunk/liquidsoap/scripts/external.liq
r7061 r7135 420 420 -vc null -vo null #{quote(s)} 2>/dev/null") 421 421 end 422 423 # Enable replay gain metadata resolver. This resolver will 424 # process any file decoded by liquidsoap and add a @replay_gain@ 425 # metadata when this value could be computed. For a finer-grained 426 # replay gain processing, use the @replay_gain@ protocol. 427 # @category Liquidsoap 428 # @param ~extract_replaygain The extraction program 429 def enable_replaygain_metadata( 430 ~extract_replaygain="#{configure.libdir}/extract-replaygain") 431 def replaygain_metadata(~format,file) 432 x = get_process_lines("#{extract_replaygain} \ 433 #{quote(file)}") 434 if list.hd(x) != "" then 435 [("replay_gain",list.hd(x))] 436 else 437 [] 438 end 439 end 440 add_metadata_resolver("replay_gain", replaygain_metadata) 441 end -
trunk/liquidsoap/scripts/utils.liq
r7061 r7135 477 477 add_protocol("replay_gain", replaygain_protocol) 478 478 479 # Enable replay gain metadata resolver. This resolver will480 # process any file decoded by liquidsoap and add a @replay_gain@481 # metadata when this value could be computed. For a finer-grained482 # replay gain processing, use the @replay_gain@ protocol.483 # @category Liquidsoap484 # @param ~extract_replaygain The extraction program485 def enable_replaygain_metadata(486 ~extract_replaygain="#{configure.libdir}/extract-replaygain")487 def replaygain_metadata(~format,file)488 x = get_process_lines("#{extract_replaygain} \489 #{quote(file)}")490 if list.hd(x) != "" then491 [("replay_gain",list.hd(x))]492 else493 []494 end495 end496 add_metadata_resolver("replay_gain", replaygain_metadata)497 end -
trunk/liquidsoap/src/configure.mli
r7110 r7135 3 3 (** String describing the version. *) 4 4 val version : string 5 6 (** Is this build a SVN snapshot ? *) 7 val svn_snapshot : bool 5 8 6 9 (** Substitution of configured variables *) -
trunk/liquidsoap/src/main.ml
r7128 r7135 390 390 let log = Log.make ["main"] 391 391 392 let () = 393 log#f 3 "Liquidsoap %s%s" Configure.version SVN.rev 392 let () = 393 log#f 1 "Liquidsoap %s%s" Configure.version SVN.rev ; 394 if Configure.svn_snapshot then 395 List.iter (log#f 1 "%s") 396 ["DISCLAIMER: This version of Liquidsoap was"; 397 "compiled from a snapshot of the developpement"; 398 "code. As such, it should not be used in production"; 399 "unless you know what you are doing !"; 400 ""; 401 "We are, however, very interested in any feedback"; 402 "about our developpement code and commited to fix"; 403 "issues as soon as possible."; 404 ""; 405 "If you are interested into collaborating with"; 406 "the developpement of Liquidsoap, feel free to"; 407 "drop us a mail at: savonet-devl@lists.sf.net"; 408 "or to join our #savonet IRC channel on Freenode"; 409 ""; 410 "Please send any bug report of feature request"; 411 "using our trac system at: http://savonet.rastageeks.org"; 412 ""; 413 "We hope you will enjoy the use of this snapshot"; 414 "build of Liquidsoap !"] 394 415 395 416 (** Just like Arg.parse_argv but with Arg.parse's behavior on errors.. *)
