Changeset 398a037 for common/makefile-functions
- Timestamp:
- 08/11/2006 03:34:10 AM (18 years ago)
- Branches:
- experimental
- Children:
- 6a9d41e
- Parents:
- 755cd36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/makefile-functions
r755cd36 r398a037 16 16 endef 17 17 18 define remove_existing_dirs 19 @PKG_PATH=`ls -t $(SRCSDIR)/$(1) | head -n1` && \ 20 ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \ 21 rm -rf $(SRCSDIR)/$$ROOT && \ 22 rm -rf $(SRCSDIR)/$${ROOT%-*}-build 23 endef 24 25 define remove_existing_dirs2 26 @PKG_PATH=\`ls -t $(SRC)/$(1) | head -n1\` && \ 27 ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \ 28 rm -rf $(SRC)/$$ROOT && \ 29 rm -rf $(SRC)/$${ROOT-*}-build 30 endef 31 32 define remove_build_dirs 33 @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \ 34 rm -rf $(SRCSDIR)/$$ROOT && \ 35 rm -rf $(SRCSDIR)/$(1)-build 36 endef 37 38 define remove_build_dirs2 39 @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \ 40 rm -rf $(SRC)/$$ROOT && \ 41 rm -rf $(SRC)/$(1)-build 42 endef 43 44 define housekeeping 45 @touch $@ && \ 46 sleep .25 && \ 47 echo -e "\n\n "$(BOLD)Target $(BLUE)$@ $(BOLD)OK && \ 48 echo --------------------------------------------------------------------------------$(WHITE) 49 50 endef 51 52 define get_pkg_root 53 @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \ 54 if [ "$(1)" != "nouser" ]; then \ 55 echo "export PKGDIR=$(SRCSDIR)/$$ROOT" > envars; \ 56 chown -R $(LUSER) $(SRCSDIR)/$$ROOT; \ 57 else \ 58 echo "export PKGDIR=$(crSRCSDIR)/$$ROOT" > envars; \ 59 fi; 60 endef 61 62 define get_pkg_root2 63 @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \ 64 echo "export PKGDIR=$(SRC)/$$ROOT" > envars 65 endef 66 18 67 define unpack 19 @cd $( MOUNT_PT)$(SRC) && \68 @cd $(SRCSDIR) && \ 20 69 tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST) 21 70 endef 22 71 23 72 define unpack2 24 @cd $( MOUNT_PT)$(SRC) && \73 @cd $(SRCSDIR) && \ 25 74 /tools/bin/tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST) 26 75 endef
Note:
See TracChangeset
for help on using the changeset viewer.