Added release target to automatically add tarball and

update Installation Notes wiki - not finished yet



git-svn-id: http://s3fs.googlecode.com/svn/trunk@248 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
mooredan@suncup.net 2010-11-23 01:32:41 +00:00
parent 45b1256966
commit f7f7003985

View File

@ -1 +1,19 @@
SUBDIRS=src test
release : dist
MD5SUM=`md5sum $(DIST_ARCHIVES) | awk '{print $$1}'`
if test -d "../tarballs"; then \
cp $(DIST_ARCHIVES) ../tarballs;\
cd ../tarballs;\
ln -f -s $(DIST_ARCHIVES) latest;\
fi;
if test -w "../wiki/InstallationNotes.wiki"; then \
sed -i -e "/Download:/s/s3fs-.*.gz/$(DIST_ARCHIVES)/" ../wiki/InstallationNotes.wiki ;\
sed -i -e "/ checksum:/s/ checksum:.*/ checksum: `sha1sum $(DIST_ARCHIVES) | awk '{print $$1}'`/" ../wiki/InstallationNotes.wiki ;\
sed -i -e "/ size:/s/ size:.*/ size: `/bin/ls -l $(DIST_ARCHIVES) | awk '{print $$5}'`/" ../wiki/InstallationNotes.wiki ;\
sed -i -e "/tar xvzf/s/s3fs-.*.gz/$(DIST_ARCHIVES)/" ../wiki/InstallationNotes.wiki ;\
sed -i -e "/cd s3fs/s/s3fs-.*/$(DIST_ARCHIVES)/" ../wiki/InstallationNotes.wiki ;\
sed -i -e "/cd s3fs/s/.tar.gz/\//" ../wiki/InstallationNotes.wiki ;\
fi;
cat ../wiki/InstallationNotes.wiki