pkgsrc-WIP-discuss archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] cache filename change for mk/git-package.mk
I have written:
| From: Makoto Fujiwara <makoto%ki.nu@localhost>
| Subject: [PATCH] cache filename change for mk/git-package.mk
| Date: Wed, 28 Jul 2010 13:14:31 +0900
| Message-ID: <yfm1vaockew.wl%makoto%ki.nu@localhost>
> I found wip/emacs-current-nox11 was outdated.
> While modifying it for git-package version, I thought
> following line of mk/git-package.mk is NOT appropriate (,which I wrote).
> If no objection in a few days, I would like to commit this, thanks.
And it is committed now. But I found following is more appropriate
to find the exact cached file.
Thank you,
---
Makoto Fujiwara,
Chiba, Japan, Narita Airport and Disneyland prefecture.
Index: ../mk/git-package.mk
===================================================================
RCS file: /cvsroot/pkgsrc-wip/wip/mk/git-package.mk,v
retrieving revision 1.4
diff -u -r1.4 git-package.mk
--- ../mk/git-package.mk 29 Jul 2010 23:02:48 -0000 1.4
+++ ../mk/git-package.mk 29 Jul 2010 23:19:18 -0000
@@ -116,9 +116,9 @@
cd ${WRKDIR}; \
if [ ! -d ${_GIT_DISTDIR} ]; then mkdir -p ${_GIT_DISTDIR:Q}; fi;
\
${_GIT_EXTRACT_CACHED.${_repo_}}; \
- p="$$(cd ${_GIT_DISTDIR} && ls -t ${GIT_MODULE.${_repo_}}-* | head -n
1)"; \
+ p="$$(cd ${_GIT_DISTDIR} && ls -t ${GIT_MODULE.${_repo_}}-[0-9-]+.tar |
head -n 1)"; \
if [ -n "$$p" ]; then \
- q="$$(cd ${_GIT_DISTDIR} && ls -t ${GIT_MODULE.${_repo_}}-* | wc
-l)" && \
+ q="$$(cd ${_GIT_DISTDIR} && ls -t
${GIT_MODULE.${_repo_}}-[0-9]+.tar | wc -l)" && \
if [ $$(($$q)) -gt 3 ] ; then \
${STEP_MSG} "(1a) more than 3 generation files found in
${_GIT_DISTDIR}, you may"; \
${STEP_MSG} " delete them manually to avoid getting them fat
--> $$p etc" ; \
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss
Home |
Main Index |
Thread Index |
Old Index