Let binaries produce the correct svn revision
authorReinhard Tartler <siretart@tauware.de>
Sat, 22 Feb 2014 14:48:54 +0000 (14:48 +0000)
committerReinhard Tartler <siretart@tauware.de>
Sat, 22 Feb 2014 18:00:42 +0000 (18:00 +0000)
debian/rules

index 007004e038c1e60274095aca9b22ba260737b909..d3386b4ffa180f3bb426320012d782a1260249ba 100755 (executable)
@@ -22,6 +22,7 @@ override_dh_auto_configure:
            --enable-debug \
            --disable-ssl \
            $(DEB_EXTRA_CONFIGURE_FLAGS)
+       echo "#define GPAC_SVN_REVISION \"$(GPAC_SVN_REVISION)\"" > include/gpac/revision.h
 
 override_dh_auto_install:
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
@@ -36,6 +37,7 @@ override_dh_auto_clean:
 
 override_dh_clean:
        dh_clean config.h bin/gcc/libgpac*
+       dh_clean gpac.pc include/gpac/revision.h
        find $(CURDIR) -name *.opic -delete
 
 override_dh_strip: