mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-04 08:04:06 +01:00 
			
		
		
		
	which was caused by the fix for Lame and FFmpeg detection.  Now,
    the Audacity.sh script will only be used for "release" versions.
2)  Provides a new "Manual" target that the developer can use to
    retrieve the Audacity manual and put it in the "help" directory
    to facilitate testing.
3)  Provides a new "Plugins" target that the developer can use to
    build the 3 Ladspa plugins that are distributed with Audacity.
    They will be built into the "plug-in" directory.  The main
    reason for this one was because no one could remember how to
    build them, so now it will be available to everyone.
4)  Supports the "install" build action for creating an output
    direcotry that is fully distributable.  (DMG and ZIP creation
    will be added soon.)  This provides the ability for anyone
    to create Mac releases.
		
	
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
#
 | 
						|
# This script retrieves and build the Audacity manual
 | 
						|
#
 | 
						|
 | 
						|
function cleanAction
 | 
						|
{
 | 
						|
   [ -d "${TARGET_TEMP_DIR}" ] && rm -rf "${TARGET_TEMP_DIR}"
 | 
						|
   [ -d "${TOPLEVEL}/help/manual" ] && rm -r "${TOPLEVEL}/help/manual"
 | 
						|
   rm -rf "${TARGET_BUILD_DIR}"
 | 
						|
}
 | 
						|
 | 
						|
function buildAction
 | 
						|
{
 | 
						|
   # Retrieve the manual
 | 
						|
   if [ ! -d "${TOPLEVEL}/help/manual" ]
 | 
						|
   then 
 | 
						|
       cd "${TOPLEVEL}/scripts/mw2html_audacity"
 | 
						|
       ./wiki2htm.sh
 | 
						|
       cd "${SRCROOT}"
 | 
						|
   fi
 | 
						|
 | 
						|
   # Create the destination directory if it's not already there
 | 
						|
   if [ ! -d "${TARGET_BUILD_DIR}" ]
 | 
						|
   then 
 | 
						|
      mkdir -p "${TARGET_BUILD_DIR}"
 | 
						|
      chmod -RH "${INSTALL_MODE_FLAG}" "${TARGET_BUILD_DIR}"
 | 
						|
      chown -RH "${INSTALL_OWNER}:${INSTALL_GROUP}" "${TARGET_BUILD_DIR}"
 | 
						|
   fi
 | 
						|
 | 
						|
   # Copy the manual to the destination
 | 
						|
   cp -pPR "${TOPLEVEL}/help/manual/" "${TARGET_BUILD_DIR}"
 | 
						|
 | 
						|
   # Remove svn files
 | 
						|
   find "${TARGET_BUILD_DIR}" -name .svn -print0 | xargs -0 rm -rf
 | 
						|
} 
 | 
						|
 | 
						|
function installAction
 | 
						|
{
 | 
						|
   # Just do the build to put things where the belong
 | 
						|
   buildAction
 | 
						|
}
 | 
						|
 | 
						|
case "${ACTION}" in
 | 
						|
   "" | build)
 | 
						|
      TARGET_BUILD_DIR="${TARGET_BUILD_DIR}/help/manual"
 | 
						|
      buildAction
 | 
						|
   ;;
 | 
						|
 | 
						|
   install)
 | 
						|
      TARGET_BUILD_DIR="${DSTROOT}/Audacity/help/manual"
 | 
						|
      installAction
 | 
						|
   ;;
 | 
						|
 | 
						|
   clean)
 | 
						|
      TARGET_BUILD_DIR="${TARGET_BUILD_DIR}/help/manual"
 | 
						|
      cleanAction
 | 
						|
   ;;
 | 
						|
esac
 | 
						|
 | 
						|
exit
 |