On Tue, Mar 14, 2006 at 12:05:21AM +0100, Michelle Konzack wrote:
> I have a script which do:
[...]
> 1)  Create a directory with the source and a debian/ directors
> 2)  cd into the source root to create a "pristine" package
> 3)  type:   tdbuildpackage --make-orig

FYI, I'm doing this now with make:

--- clip ---
DEBIAN_DIR = debian
BUILDPKG = cgames stx2any b5 bf tinyscheme gauche-readline userland-scripts \
           sokoedit selecting cf-modify
ORIG_DIRS = $(BUILDPKG:=.orig)

all: debian/Packages.gz debian/Sources.gz

$(DEBIAN_DIR): orig-dirs-stamp
orig-dirs-stamp: $(ORIG_DIRS)
        touch orig-dirs-stamp

$(DEBIAN_DIR): $(BUILDPKG)
        mkdir -p $@
        for dir in $(filter-out orig-dirs-stamp, $?); do \
          ( cd $$dir && chmod +x debian/rules && \
            dpkg-buildpackage -rfakeroot -I_darcs -i_darcs -tc ) \
        done
        -mv *.deb *.changes *.orig.tar.gz *.diff.gz *.dsc $@
        touch $@

%.orig: %.orig.orig
        rsync -a --exclude _darcs $</ $@/

%.orig: %
        ( cd $< && fakeroot make -f debian/rules clean )
        rsync -a --exclude _darcs --exclude debian $</ $@/

%.gz: %
        gzip -f $<

$(DEBIAN_DIR)/Packages: $(DEBIAN_DIR)
        dpkg-scanpackages $< /dev/null >$@

$(DEBIAN_DIR)/Sources: $(DEBIAN_DIR)
        dpkg-scansources $< >$@

%: configs/%
        -rm -r $@
        darcs get --partial `sed -ne 1p $<`

%.orig.orig: configs/%
        -rm -r $@
        darcs get --partial `sed -ne 2p $<`

--- clip ---

-- 
personal contact:       [EMAIL PROTECTED], +35841 5323835
technical contact:      [EMAIL PROTECTED], http://www.iki.fi/atehwa/
PGP fingerprint:        0EA5 9D33 6590 FFD4 921C  5A5F BE85 08F1 3169 70EC


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to