Mercurial > mxe-octave
annotate src/msys-dos2unix.mk @ 3561:ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 08 Mar 2014 17:40:00 -0500 |
parents | 13be64f9f16d |
children | cb76b5f50b68 |
rev | line source |
---|---|
3260
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE. |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
3 |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
4 PKG := msys-dos2unix |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3260
diff
changeset
|
6 $(PKG)_VERSION := 6.0.3-1 |
3260
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := bab553c740877d02311bfc5d0be3acadbcc375d0 |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_REMOTE_SUBDIR := dos2unix/dos2unix-$($(PKG)_VERSION) |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_FILE := dos2unix-$($(PKG)_VERSION)-msys-1.0.17-bin.tar.lzma |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
11 $(PKG)_URL := $(MSYS_EXTENSION_URL)/$($(PKG)_REMOTE_SUBDIR)/$($(PKG)_FILE)/download |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
12 $(PKG)_DEPS := |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
13 |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
14 define $(PKG)_UPDATE |
3561
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
15 $(WGET) -q -O- '$(MSYS_EXTENSION_URL)/dos2unix' | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
16 $(SED) -n 's,.*title="dos2unix-\([0-9][^"]*\)".*,\1,p' | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
17 head -1 |
3260
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
18 endef |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
19 |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
21 mkdir -p '$(MSYS_EXTENSION_DIR)' |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
22 cd '$(1)' && tar cf - . | ( cd '$(MSYS_EXTENSION_DIR)'; tar xpf - ) |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
23 mkdir -p '$(MSYS_INFO_DIR)' |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
24 cd '$(1)' && find . > '$(MSYS_INFO_DIR)'/$(PKG).list |
16321a166cc4
add dos2unix and wget.
Markus Bergholz <markuman+again@gmail.com>
parents:
diff
changeset
|
25 endef |