Changeset 7135

Show
Ignore:
Timestamp:
02/05/10 00:08:16 (7 months ago)
Author:
metamorph68
Message:
  • Add a disclaimer when building a svn snapshot.
  • Move some part of utils.liq that are not yet available in current SVN.
Location:
trunk/liquidsoap
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/liquidsoap/configure.ac

    r7130 r7135  
    66dnl $libdir/liquidsoap/$libs_dir_version 
    77 
     8# Remove +svn and set svn_snapshot to false 
     9# before releasing 
    810AC_INIT([liquidsoap],[0.9.2+svn]) 
    9 version="0.9.2+svn" 
    10 libs_dir_version="svn" 
     11svn_snapshot=true 
     12version=0.9.2 
     13 
     14if test $svn_snapshot != "false"; then 
     15  version="$version+svn" 
     16  libs_dir_version="svn" 
     17else 
     18  libs_dir_version="$version" 
     19fi 
    1120AC_SUBST(version) 
    1221AC_SUBST(libs_dir_version) 
     
    4150cat > src/configure.ml << _BLAH_ 
    4251let version = "$version" 
     52let svn_snapshot = $svn_snapshot 
    4353let conf = Dtools.Conf.void "Liquidsoap configuration" 
    4454let var_script = ref "default" 
     
    17021712fi 
    17031713 
    1704 AC_PATH_PROG(TEXT2WAVE,text2wave$(EXEEXT),false) 
    1705 AC_PATH_PROG(SOX,sox,false) 
    1706 AC_PATH_PROG(NORMALIZE,normalize,false) 
     1714if 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) 
     1718fi 
    17071719 
    17081720if test "$TEXT2WAVE" = false ; then 
  • trunk/liquidsoap/scripts/external.liq

    r7061 r7135  
    420420                    -vc null -vo null #{quote(s)} 2>/dev/null") 
    421421end 
     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 
     429def 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) 
     441end 
  • trunk/liquidsoap/scripts/utils.liq

    r7061 r7135  
    477477add_protocol("replay_gain", replaygain_protocol) 
    478478 
    479 # Enable replay gain metadata resolver. This resolver will  
    480 # process any file decoded by liquidsoap and add a @replay_gain@  
    481 # metadata when this value could be computed. For a finer-grained  
    482 # replay gain processing, use the @replay_gain@ protocol. 
    483 # @category Liquidsoap 
    484 # @param ~extract_replaygain The extraction program 
    485 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) != "" then 
    491       [("replay_gain",list.hd(x))] 
    492     else 
    493       [] 
    494     end 
    495   end 
    496   add_metadata_resolver("replay_gain", replaygain_metadata) 
    497 end 
  • trunk/liquidsoap/src/configure.mli

    r7110 r7135  
    33(** String describing the version. *) 
    44val version : string 
     5 
     6(** Is this build a SVN snapshot ? *) 
     7val svn_snapshot : bool 
    58 
    69(** Substitution of configured variables *) 
  • trunk/liquidsoap/src/main.ml

    r7128 r7135  
    390390let log = Log.make ["main"] 
    391391 
    392 let () = 
    393   log#f 3 "Liquidsoap %s%s" Configure.version SVN.rev 
     392let () =  
     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 !"] 
    394415 
    395416(** Just like Arg.parse_argv but with Arg.parse's behavior on errors.. *)