|
@ -30,22 +30,22 @@ cacheclean=0 |
|
|
|
|
|
|
|
|
cleanup_usage() { |
|
|
cleanup_usage() { |
|
|
cat <<EOT |
|
|
cat <<EOT |
|
|
Usage: sde cleanup [ -build ] [ -cache ] [ -full ] [ -nocheck ] [ -download ] |
|
|
|
|
|
|
|
|
Usage: sde cleanup [ --build ] [ --cache ] [ --full ] [ --nocheck ] [ --download ] |
|
|
sde cleanup [ dir(s) ] |
|
|
sde cleanup [ dir(s) ] |
|
|
EOT |
|
|
EOT |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
while [ "$1" ] ; do |
|
|
while [ "$1" ] ; do |
|
|
case "$1" in |
|
|
case "$1" in |
|
|
-build) |
|
|
|
|
|
|
|
|
-build|--build) |
|
|
buildclean=1 ;; |
|
|
buildclean=1 ;; |
|
|
-cache) |
|
|
|
|
|
|
|
|
-cache|--cache) |
|
|
cacheclean=1 ;; |
|
|
cacheclean=1 ;; |
|
|
-full) |
|
|
|
|
|
|
|
|
-full|--full) |
|
|
buildclean=1 ; cacheclean=1 ;; |
|
|
buildclean=1 ; cacheclean=1 ;; |
|
|
-nocheck) |
|
|
|
|
|
|
|
|
-nocheck|--nochek) |
|
|
nocheck=1 ;; |
|
|
nocheck=1 ;; |
|
|
-download) |
|
|
|
|
|
|
|
|
-download|--download) |
|
|
downclean=1 ;; |
|
|
downclean=1 ;; |
|
|
-*) cleanup_usage |
|
|
-*) cleanup_usage |
|
|
exit 1 ;; |
|
|
exit 1 ;; |
|
@ -135,8 +135,8 @@ done |
|
|
if [ $fullhelp -eq 1 ]; then |
|
|
if [ $fullhelp -eq 1 ]; then |
|
|
cat <<-EOT |
|
|
cat <<-EOT |
|
|
|
|
|
|
|
|
Use '$0 -build' to remove builds |
|
|
|
|
|
and '$0 -cache' to also flush the cache. |
|
|
|
|
|
|
|
|
Use '$0 --build' to remove builds |
|
|
|
|
|
and '$0 --cache' to also flush the cache. |
|
|
EOT |
|
|
EOT |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|