r3223 - in jhalfs/trunk/common: . libs

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sun Nov 12 04:10:26 PST 2006


Author: manuel
Date: 2006-11-12 05:10:25 -0700 (Sun, 12 Nov 2006)
New Revision: 3223

Modified:
   jhalfs/trunk/common/libs/func_custom_pkgs
   jhalfs/trunk/common/libs/func_wrt_Makefile
   jhalfs/trunk/common/makefile-functions
Log:
Reordered makefile_functions.

Modified: jhalfs/trunk/common/libs/func_custom_pkgs
===================================================================
--- jhalfs/trunk/common/libs/func_custom_pkgs	2006-11-12 09:55:20 UTC (rev 3222)
+++ jhalfs/trunk/common/libs/func_custom_pkgs	2006-11-12 12:10:25 UTC (rev 3223)
@@ -69,7 +69,7 @@
 	@\$(call echo_message, Building)
 	@./progress_bar.sh \$@ \$\$PPID &
 	@\$(call remove_existing_dirs2,${PKG_FILE})
-	@\$(call unpack3,${PKG_FILE})
+	@\$(call unpack2,${PKG_FILE})
 	@\$(call get_pkg_root2)
 	@( time { source envars && /\$(SCRIPT_ROOT)/custom-commands/scripts/${THIS_SCRIPT} >>logs/${THIS_SCRIPT} 2>&1 ; } ) 2>>logs/${THIS_SCRIPT}
 	@\$(call remove_build_dirs2,${PKG})

Modified: jhalfs/trunk/common/libs/func_wrt_Makefile
===================================================================
--- jhalfs/trunk/common/libs/func_wrt_Makefile	2006-11-12 09:55:20 UTC (rev 3222)
+++ jhalfs/trunk/common/libs/func_wrt_Makefile	2006-11-12 12:10:25 UTC (rev 3223)
@@ -162,7 +162,7 @@
   fi
 (
 cat  << EOF
-	@\$(call unpack3,$FILE)
+	@\$(call unpack2,$FILE)
 	@\$(call get_pkg_root2)
 EOF
 ) >> $MKFILE.tmp

Modified: jhalfs/trunk/common/makefile-functions
===================================================================
--- jhalfs/trunk/common/makefile-functions	2006-11-12 09:55:20 UTC (rev 3222)
+++ jhalfs/trunk/common/makefile-functions	2006-11-12 12:10:25 UTC (rev 3223)
@@ -16,6 +16,8 @@
 tab_    = "	"
 nl_     = ""
 
+#==== BUILD MESSAGES ===
+
 define echo_PHASE
   @clear
   @echo $(BOLD)--------------------------------------------------------------------------------
@@ -36,7 +38,7 @@
   @echo $(BOLD)--------------------------------------------------------------------------------
   @echo $(BOLD)$(BLUE)$@
   @echo $(WHITE)You are going to log into the user account $(BOLD)$(YELLOW)$(LUSER)$(OFF)
-  @echo su requires a password 
+  @echo su requires a password
 endef
 
 define echo_CHROOT_request
@@ -52,6 +54,11 @@
   @echo $(BOLD)$(1) target $(BLUE)$@$(BOLD)$(WHITE)
 endef
 
+#=======================
+
+
+#=== BUILD FUNCTIONS ===
+
 define remove_existing_dirs
   @PKG_PATH=`ls -t $(SRCSDIR)/$(1) | head -n1` && \
   ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
@@ -66,26 +73,20 @@
   rm -rf $(SRC)/$${ROOT%-*}-build
 endef
 
-define remove_build_dirs
-  @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
-  rm -rf $(SRCSDIR)/$$ROOT && \
-  rm -rf $(SRCSDIR)/$(1)-build
+#==#
+
+define unpack
+  @cd $(SRCSDIR) && \
+  tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
 endef
 
-define remove_build_dirs2
-  @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
-  rm -rf $(SRC)/$$ROOT && \
-  rm -rf $(SRC)/$(1)-build
+define unpack2
+  @cd $(SRC) && \
+  tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
 endef
 
-define housekeeping
-  @touch  $@ && \
-  sleep .25 && \
-  echo  -e "\n" $(BOLD)Target $(BLUE)$@ $(WHITE)$(BOLD)OK && \
-  echo --------------------------------------------------------------------------------$(WHITE)
+#==#
 
-endef
-
 define get_pkg_root
   @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
   if [ "$(1)" != "nouser" ]; then \
@@ -106,21 +107,35 @@
   echo "export PKGDIR=$(SRCSDIR)/$$ROOT" > envars
 endef
 
-define unpack
-  @cd $(SRCSDIR) && \
-  tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
+#==#
+
+define remove_build_dirs
+  @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
+  rm -rf $(SRCSDIR)/$$ROOT && \
+  rm -rf $(SRCSDIR)/$(1)-build
 endef
 
-define unpack2
-  @cd $(SRCSDIR) && \
-  /tools/bin/tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
+define remove_build_dirs2
+  @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
+  rm -rf $(SRC)/$$ROOT && \
+  rm -rf $(SRC)/$(1)-build
 endef
 
-define unpack3
-  @cd $(SRC) && \
-  tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
+#==#
+
+define housekeeping
+  @touch  $@ && \
+  sleep .25 && \
+  echo  -e "\n" $(BOLD)Target $(BLUE)$@ $(WHITE)$(BOLD)OK && \
+  echo --------------------------------------------------------------------------------$(WHITE)
+
 endef
 
+#=======================
+
+
+#==== FINAL MESSAGES ===
+
 define echo_report
   @echo
   @echo $(BOLD) The report file $(BLUE)$(1)$(BOLD) has been created




More information about the alfs-log mailing list