gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/packaging deb.am


From: Rob Savoye
Subject: [Gnash-commit] gnash/packaging deb.am
Date: Sun, 02 Mar 2008 00:27:22 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Rob Savoye <rsavoye>    08/03/02 00:27:21

Modified files:
        packaging      : deb.am 

Log message:
                * packaging/deb.am: Add snapshot-deb target.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/packaging/deb.am?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: deb.am
===================================================================
RCS file: /sources/gnash/gnash/packaging/deb.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- deb.am      7 Feb 2008 03:20:45 -0000       1.1
+++ deb.am      2 Mar 2008 00:27:21 -0000       1.2
@@ -22,6 +22,17 @@
        cp -fr $(srcdir)/packaging/debian gnash-${VERSION}/
        (cd gnash-${VERSION}; dpkg-buildpackage)
 
-.PHONY : deb debian 
-
+# Build a .deb snapshot, which means we have to munge the date
+# into the proper files to build a package with the version in
+# all the right places. This involves editing the debian/changelog
+# file. Configure.ac is edited by the snapshot target.
+snapshot-deb: # snapshot
+       now=`date "+%Y%m%d"`; \
+       snapshot_dir="gnash-$${now}cvs"; \
+       mv -f $${snapshot_dir}/packaging/debian/changelog 
$${snapshot_dir}/packaging/debian/changelog.orig; \
+       sed -e "s:(.*):($${now}cvs):" 
$${snapshot_dir}/packaging/debian/changelog.orig > 
$${snapshot_dir}/packaging/debian/changelog; \
+       sed -e "s:(.*):($${now}cvs):" 
$${snapshot_dir}/packaging/debian/changelog.orig > 
$${snapshot_dir}/packaging/debian/changelog; \
+       ln -s $${snapshot_dir}/packaging/debian $${snapshot_dir}/debian;\
+       (cd $${snapshot_dir}; dpkg-buildpackage)
 
+.PHONY : deb debian 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]