Commit f06cec1a authored by Faustino E. Osuna's avatar Faustino E. Osuna Committed by Jean-Baptiste Kempf

Cosmetic: clean up ws & comments in Pre-Compile.sh

- Remove blank lines
- Align comments
- Update comment used to partition end of vlc_install_object
function.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2b64aa25
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
# This is for some creepy reasons also used by legacy VLC.app or # This is for some creepy reasons also used by legacy VLC.app or
# the moz plugin. # the moz plugin.
# #
# We are building VLC.app or the moz plugin # We are building VLC.app or the moz plugin
# #
...@@ -56,14 +55,12 @@ linked_libs="" ...@@ -56,14 +55,12 @@ linked_libs=""
prefix=".libs/" prefix=".libs/"
suffix="dylib" suffix="dylib"
########################## ##########################
# @function vlc_install_object(src_lib, dest_dir, type, lib_install_prefix, destination_name, suffix) # @function vlc_install_object(src_lib, dest_dir, type, lib_install_prefix, destination_name, suffix)
# @description Installs the specified library into the destination folder, automatically changes the references to dependencies # @description Installs the specified library into the destination folder, automatically changes the references to dependencies
# @param src_lib source library to copy to the destination directory # @param src_lib source library to copy to the destination directory
# @param dest_dir destination directory where the src_lib should be copied to # @param dest_dir destination directory where the src_lib should be copied to
vlc_install_object() { vlc_install_object() {
local src_lib=${1} local src_lib=${1}
local dest_dir=${2} local dest_dir=${2}
local type=${3} local type=${3}
...@@ -94,7 +91,7 @@ vlc_install_object() { ...@@ -94,7 +91,7 @@ vlc_install_object() {
return return
fi fi
if ((! test -e ${lib_dest}) || test ${src_lib} -nt ${lib_dest} ); then if ( (! test -e ${lib_dest}) || test ${src_lib} -nt ${lib_dest} ); then
mkdir -p ${dest_dir} mkdir -p ${dest_dir}
...@@ -130,7 +127,7 @@ vlc_install_object() { ...@@ -130,7 +127,7 @@ vlc_install_object() {
fi fi
fi fi
} }
# @function vlc_install # @function vlc_install_object
########################## ##########################
########################## ##########################
...@@ -164,7 +161,7 @@ vlc_install() { ...@@ -164,7 +161,7 @@ vlc_install() {
local arch_src="$VLC_BUILD_DIR/$arch/$src_dir/$src" local arch_src="$VLC_BUILD_DIR/$arch/$src_dir/$src"
# Only install if the new image is newer than the one we have installed. # Only install if the new image is newer than the one we have installed.
if ((! test -e ${fatdest}) || test ${arch_src} -nt ${fatdest} ); then if ( (! test -e ${fatdest}) || test ${arch_src} -nt ${fatdest} ); then
vlc_install_object "$arch_src" "$tmp_dest_dir" "$type" "$5" "" ".$arch" vlc_install_object "$arch_src" "$tmp_dest_dir" "$type" "$5" "" ".$arch"
local dest="$tmp_dest_dir/$src.$arch" local dest="$tmp_dest_dir/$src.$arch"
if test -e ${dest}; then if test -e ${dest}; then
...@@ -224,7 +221,6 @@ else ...@@ -224,7 +221,6 @@ else
vlc_install "bin/${prefix}" "vlc" "${target}/bin" "bin" "@loader_path/../lib" vlc_install "bin/${prefix}" "vlc" "${target}/bin" "bin" "@loader_path/../lib"
fi fi
########################## ##########################
# Build the plugins folder (Same as VLCKit.framework/plugins in Makefile) # Build the plugins folder (Same as VLCKit.framework/plugins in Makefile)
echo "Building plugins folder..." echo "Building plugins folder..."
...@@ -238,7 +234,6 @@ done ...@@ -238,7 +234,6 @@ done
########################## ##########################
# Build the lib folder # Build the lib folder
vlc_install "lib/${prefix}" "libvlc.5.dylib" "${target_lib}" "library" vlc_install "lib/${prefix}" "libvlc.5.dylib" "${target_lib}" "library"
vlc_install "src/${prefix}" "libvlccore.5.dylib" "${target_lib}" "library" vlc_install "src/${prefix}" "libvlccore.5.dylib" "${target_lib}" "library"
pushd `pwd` > /dev/null pushd `pwd` > /dev/null
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment