31
31
# start by creating the initial tarball using the dist-bzip2 target.
32
# This uses the default version for Gnash. which is 'cvs'. So we
32
# This uses the default version for Gnash. which is 'trunk'. So we
33
33
# rename it to the dir we want to stay clear. Then we change the default
34
# version from 'cvs' to a date stamped version of cvs, like '20080202cvs'
35
snapshot: distdir dist-hook
34
# version from 'trunk' to a date stamped version of trunk, like
36
37
-@now=`date "+%Y%m%d"`; \
37
pkgname="gnash-$${now}cvs"; \
38
pkgname="gnash-$${now}trunk"; \
38
39
snapshot_dir="$${pkgname}"; \
39
40
snapshot_tar="$${pkgname}.tar.gz"; \
40
41
if test -d $${snapshot_dir}; then \
41
42
rm -fr $${snapshot_dir}; \
43
mv -f gnash-cvs $${snapshot_dir}; \
44
mv -f gnash-trunk $${snapshot_dir}; \
44
45
if test ! -f $${snapshot_dir}/configure.ac.orig; then \
45
46
mv -f $${snapshot_dir}/configure.ac $${snapshot_dir}/configure.ac.orig; \
46
sed -e "s/AC_INIT(gnash, cvs)/AC_INIT(gnash, $${now}cvs)/" \
47
sed -e "s/AC_INIT(gnash, trunk)/AC_INIT(gnash, $${now}trunk)/" \
47
48
$${snapshot_dir}/configure.ac.orig > $${snapshot_dir}/configure.ac; \
48
49
cd $${snapshot_dir} ; ./autogen.sh; cd .. ;\
50
tar zcvf $${snapshot_tar} --exclude="*CVS" --exclude=$${snapshot_dir}/autom4te.cache \
51
tar zcvf $${snapshot_tar} --exclude=$${snapshot_dir}/autom4te.cache \
51
52
--exclude=$${snapshot_dir}/configure.ac.orig $${snapshot_dir}
52
53
# $(RM) -fr $${snapshot_dir}
54
55
snapshot-configure: snapshot
55
56
-@now=`date "+%Y%m%d"`; \
56
pkgname="gnash-$${now}cvs"; \
57
pkgname="gnash-$${now}trunk"; \
57
58
snapshot_dir="$${pkgname}"; \
58
59
snapshot_build="$${snapshot_dir}/_build"; \
59
60
if test ! -d $${snapshot_build}; then \
80
81
snapshot-build: snapshot-configure
81
82
-@now=`date "+%Y%m%d"`; \
82
pkgname="gnash-$${now}cvs"; \
83
pkgname="gnash-$${now}trunk"; \
83
84
snapshot_dir="$${pkgname}"; \
84
85
snapshot_build="$${snapshot_dir}/_build"; \
85
86
$(LN_S) -f $${snapshot_build}/packaging/doc $${snapshot_build}/packaging/; \
90
91
# DocBook and DocBook2X aren't installed on this machine.
91
92
snapshot-install: #snapshot-build
92
93
now=`date "+%Y%m%d"`; \
93
snapshot_dir="gnash-$${now}cvs"; \
94
snapshot_dir="gnash-$${now}trunk"; \
94
95
snapshot_build="$${snapshot_dir}/_build"; \
95
snapshot_dest="/tmp/gnash-$${now}cvs-tmp"; \
96
snapshot_dest="/tmp/gnash-$${now}trunk-tmp"; \
96
97
$(MAKE) $(AM_MAKEFLAGS) -C $${snapshot_build} install install-plugins DESTDIR=$${snapshot_dest}
98
99
# We only want to bundle an installed gnash, so all the linker paths are
100
101
snapshot-bundle: #snapshot-install
101
102
-@now=`date "+%Y%m%d"`; \
102
pkgname="gnash-$${now}cvs"; \
103
pkgname="gnash-$${now}trunk"; \
103
104
snapshot_dest="/tmp/$${pkgname}-tmp"; \
104
105
snapshot_tmp="/tmp/$${pkgname}"; \
105
106
snapshot_tar="$${snapshot_tmp}-$(host_cpu)-$(host_os).tar.gz"; \
124
125
snapshot-rpm: snapshot $(srcdir)/packaging/redhat/gnash.spec
125
126
-@rm -f /usr/src/redhat/SPECS/gnash.spec
126
127
now=`date "+%Y%m%d"`; \
127
pkgname="gnash-$${now}cvs"; \
128
pkgname="gnash-$${now}trunk"; \
128
129
snapshot_tar="$${pkgname}.tar.gz"; \
129
130
sed -e "s:%define version .*:%define version $${now}:" $(srcdir)/packaging/redhat/gnash.spec > /usr/src/redhat/SPECS/gnash.spec; \
130
131
cp $${snapshot_tar} /usr/src/redhat/SOURCES/