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 -- Daniel Schepler