diff options
author | P. J. McDermott <pjm@nac.net> | 2013-10-06 17:17:51 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-10-06 17:17:51 (EDT) |
commit | 74b69932c81e33156034bbb573352c992158496c (patch) | |
tree | 5edc10793e5745e5a2ca26f1b5ccffc3af44e8fe | |
parent | f2a273dbd9f0caa96e0d4f9b1993631b60f5e4ab (diff) |
source.mk: Make slightly more generic.
The same file data is used by tzdata and tzcode.
-rw-r--r-- | source.mk | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,6 @@ -# The tzdata archive has no top-level directory, as opkbuild requires. +# The tz archives have no top-level directory, as opkbuild requires. -upstream_archive = tzdata$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz +upstream_archive = $(OPK_SOURCE)$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz upstream_url = ftp://ftp.iana.org/tz/releases/$(upstream_archive) source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz keys = 62AA7E34 @@ -16,10 +16,10 @@ $(source_archive): gpg --verify --keyring ../keyring.gpg \ '$(upstream_archive).asc'; \ fi - mkdir -p tzdata && cd tzdata && tar -xzf '../$(upstream_archive)' && \ + mkdir -p $(OPK_SOURCE) && cd $(OPK_SOURCE) && tar -xzf '../$(upstream_archive)' && \ cd .. rm -f '$(upstream_archive)' '$(upstream_archive).asc' - tar -czf '$(source_archive)' tzdata - mv tzdata src + tar -czf '$(source_archive)' $(OPK_SOURCE) + mv $(OPK_SOURCE) src source: $(source_archive) |