Changeset c3c4e1d for common/makefile-functions
- Timestamp:
- 03/19/2006 11:14:42 AM (19 years ago)
- Branches:
- experimental
- Children:
- ad71d98
- Parents:
- c0cbd50
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/makefile-functions
rc0cbd50 rc3c4e1d 1 2 # $Id$ 3 1 4 BOLD= "[0;1m" 2 5 RED= "[1;31m" … … 14 17 15 18 define unpack 16 @if [ -f $(MOUNT_PT)$(SRC)/$(1).bz2 ] ; then \ 17 cd $(MOUNT_PT)$(SRC) ; tar -xvjf $(1).bz2 > /tmp/unpacked ; \ 18 else \ 19 cd $(MOUNT_PT)$(SRC) ; tar -xvzf $(1).gz > /tmp/unpacked ; \ 20 fi ; 19 @cd $(MOUNT_PT)$(SRC) && \ 20 tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked 21 21 endef 22 22 23 23 define unpack2 24 @cd $(MOUNT_PT)$(SRC) ; /tools/bin/tar -xvf $(1) > /tmp/unpacked 24 @cd $(MOUNT_PT)$(SRC) && \ 25 /tools/bin/tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked 25 26 endef 26 27 27 28 define unpack3 28 @cd $(MOUNT_PT)$(SRC) ; tar -xvf $(1) > /tmp/unpacked 29 endef 30 31 define unpack4 32 @cd $(SRC) ; tar -xvf $(1) > /tmp/unpacked 29 @cd $(SRC) && \ 30 tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked 33 31 endef 34 32
Note:
See TracChangeset
for help on using the changeset viewer.