implement cleanLogs() & cleanTemp()
This commit is contained in:
parent
8ac9902ef0
commit
3b864d8f59
24
ezbuild
24
ezbuild
|
@ -1,24 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# Copyright 2010-2012, Asio Software Technologies
|
|
||||||
# Distributed under the terms of the GNU General Public License v3
|
|
||||||
|
|
||||||
|
|
||||||
# Declare basic system variables
|
|
||||||
EZNAME=$(basename ${0})
|
|
||||||
EZROOT=$(dirname $(readlink -ne ${0}))
|
|
||||||
|
|
||||||
# Load necessary files
|
|
||||||
source /etc/profile
|
|
||||||
source ${EZROOT}/libraries/common
|
|
||||||
|
|
||||||
# Load EzBuild libraries & configuration
|
|
||||||
loadLibraries
|
|
||||||
loadConfiguration
|
|
||||||
|
|
||||||
# Print EzBuild notice
|
|
||||||
printNotice
|
|
||||||
|
|
||||||
# Check system requirements
|
|
||||||
printInfo "Checking system prerequisites..."
|
|
||||||
checkPrerequisites
|
|
||||||
[ ${?} -ne 0 ] && die "Your environment does not meet EzBuild requirements"
|
|
24
ezsync
24
ezsync
|
@ -1,24 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# Copyright 2010-2012, Asio Software Technologies
|
|
||||||
# Distributed under the terms of the GNU General Public License v3
|
|
||||||
|
|
||||||
|
|
||||||
# Declare basic system variables
|
|
||||||
EZNAME=$(basename ${0})
|
|
||||||
EZROOT=$(dirname $(readlink -ne ${0}))
|
|
||||||
|
|
||||||
# Load necessary files
|
|
||||||
source /etc/profile
|
|
||||||
source ${EZROOT}/libraries/common
|
|
||||||
|
|
||||||
# Load EzBuild libraries & configuration
|
|
||||||
loadLibraries
|
|
||||||
loadConfiguration
|
|
||||||
|
|
||||||
# Print EzBuild notice
|
|
||||||
printNotice
|
|
||||||
|
|
||||||
# Check system requirements
|
|
||||||
printInfo "Checking system prerequisites..."
|
|
||||||
checkPrerequisites
|
|
||||||
[ ${?} -ne 0 ] && die "Your environment does not meet EzBuild requirements"
|
|
|
@ -3,6 +3,20 @@
|
||||||
# Distributed under the terms of the GNU General Public License v3
|
# Distributed under the terms of the GNU General Public License v3
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Completely removes log files
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
function cleanLogs() {
|
||||||
|
rm -rf ${LOGFILE} &> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Completely removes temp directory
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
function cleanTemp() {
|
||||||
|
rm -rf ${TEMPDIR} &> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Downloads files into specified or current directory
|
# Downloads files into specified or current directory
|
||||||
# Parameters: %url% %directory%
|
# Parameters: %url% %directory%
|
||||||
|
|
Loading…
Reference in New Issue