On 5/2/06, Eddy Petrişor <[EMAIL PROTECTED]> wrote:
On 5/2/06, Daniel Schepler <[EMAIL PROTECTED]> wrote:
> Le Dimanche 30 Avril 2006 23:24, Eddy Petrişor a écrit:
> > > -install:
> > > +build:
> > > +       VERSION=$(shell dpkg-parsechangelog | grep 'Version: ' | cut -f2
> > > -d' ') +#      @echo $(value VERSION)
> > > +       sed "s/^[[:space:]]*\(APTZIPVERSION=\).*$$/\1$(VERSION)/"
> > > <common.sh.in >common.sh
> > > +       sed s/APTZIPVERSION=.*$$/$(value VERSION)/ <common.sh.in
> > >common.sh
>
> The problem with this is that it's trying to execute the VERSION=... as a
> shell command in the target -- and on a line by itself, the result gets lost
> immediately, since each line gets passed to a separate subshell.  You could
> fix this either by moving the VERSION=... outside the target (and removing
> the tab), or by doing something like
>         VERSION=`dpkg-parsechangelog ...`; \
>         sed "...$$VERSION" <common.sh.in >common.sh

It worked by putting out the line with the VERSION evaluation; the
part with $$(VERSION) didn't work.


Thanks Daniel

--
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

Reply via email to