[Freeciv-Dev] (PR#4131) 'make dist' for the daily snapshot
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
[baumans@xxxxxxxxxxxxx - Mon May 5 19:59:23 2003]:
> Oh, okay. Here's a version that does that, extracts the tar.gz into a
> temporary directory (I hope tar zxvf works, or you could change that)
> changes the directory name (not sure if it needs to do anything else) and
> then tars and bzip2s it back to where it's supposed to be. Not very
elegant.
Here is a third version - similar to the previous, but the directory (in
addition to the tarball) is renamed from 'freeciv' to
'freeciv-cvs-$TODAY'. It also does less work in the extracted freeciv
CVS directory, which may be safer.
I haven't been able to test this, since it requires a pretty exact
directory setup which I don't have. Note that any errors could have
significant results (an erronous rm -rf could be very bad).
jason
? ftp
? latest
? mklatest.log
Index: mklatest
===================================================================
RCS file: /home/freeciv/CVS/admin_bin/mklatest,v
retrieving revision 1.43
diff -u -r1.43 mklatest
--- mklatest 2003/01/20 17:53:03 1.43
+++ mklatest 2003/05/08 14:41:38
@@ -185,21 +185,31 @@
log "Skipping the cvs up."
fi
-log "Building the cvs file."
+log "Building distribution tarball."
+cd freeciv
+./autogen.sh >/dev/null || error "Autogen run failed."
+make dist >/dev/null 2>&1 || error "Make dist failed."
+cd ..
-tar -cf - freeciv | bzip2 -9 > $LATESTSNAP/freeciv-cvs-$TODAY.tar.bz2
-[ ! -s $LATESTSNAP/freeciv-cvs-$TODAY.tar.bz2 ] && \
- error "Could not make $LATESTSNAP/freeciv-cvs-$TODAY.tar.bz2."
+# Rename freeciv-<version> as freeciv-cvs-$TODAY
+FREECIV=freeciv-cvs-$TODAY
+tar zxf freeciv/freeciv-*.tar.gz
+rm -rf freeciv
+mv freeciv-*/ $FREECIV/
+tar -cf - $FREECIV | bzip2 -9 > $LATESTSNAP/$FREECIV.tar.bz2
+[ ! -s $LATESTSNAP/$FREECIV.tar.bz2 ] && \
+ error "Could not make $LATESTSNAP/$FREECIV.tar.bz2."
+
# build and publish the latest freeciv.pot and *.po.bz2 files
cd $HOME
log "Building the freeciv.pot.bz2 and *.po.bz2 files."
rm -rf pot-tmp
-untgz pot-tmp $LATESTSNAP/freeciv-cvs-$TODAY.tar.bz2
+untgz pot-tmp $LATESTSNAP/$FREECIV.tar.bz2
[ ! -s pot-tmp/freeciv/autogen.sh ] && \
- error "Could not extract $LATESTSNAP/freeciv-cvs-$TODAY.tar.bz2."
+ error "Could not extract $LATESTSNAP/$FREECIV.tar.bz2."
cd pot-tmp/freeciv
( ./autogen.sh --disable-client --disable-server --disable-gtktest
--disable-imlibtest >/dev/null )
- [Freeciv-Dev] (PR#4131) 'make dist' for the daily snapshot,
Jason Short <=
|
|