[Lunar-commits] <moonbase> gzip: use standard method in PRE_BUILD

Paul Bredbury brebs at lunar-linux.org
Wed Oct 7 23:16:31 CEST 2009


commit 78236e47751db0bdabcf4cb55143118d097ddcf0
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Thu Oct 8 04:16:31 2009 +0700

    gzip: use standard method in PRE_BUILD
    
    No need for brackets.
    
    Use standard functions validate_source_dir and mk_source_dir.
---
 archive/gzip/PRE_BUILD |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/archive/gzip/PRE_BUILD b/archive/gzip/PRE_BUILD
index 19f01d2..a0d258b 100644
--- a/archive/gzip/PRE_BUILD
+++ b/archive/gzip/PRE_BUILD
@@ -1,8 +1,6 @@
-(
 # Workaround for missing xz depacker
-  cd $BUILD_DIRECTORY       &&
-  rm -rf $SOURCE_DIRECTORY  &&
-  tar -xJpvf $SOURCE_CACHE/$SOURCE &&
-  cd $SOURCE_DIRECTORY
-
-)
+validate_source_dir $SOURCE_DIRECTORY &&
+mk_source_dir       $SOURCE_DIRECTORY &&
+cd $BUILD_DIRECTORY                   &&
+tar -xJpvf $SOURCE_CACHE/$SOURCE      &&
+cd $SOURCE_DIRECTORY


More information about the Lunar-commits mailing list