[SCM] elmer-doc -- Elmer multiphysics FEA package documentation branch, master, updated. debian/2011.09.06-1-13-g9e975a2
Boris Pek
tehnick-8 at yandex.ru
Wed Mar 27 23:33:28 UTC 2013
The following commit has been merged in the master branch:
commit 725ccc4a1c8e2c2c85629016f53f11b0aebd3980
Author: Boris Pek <tehnick-8 at yandex.ru>
Date: Thu Mar 28 00:44:00 2013 +0200
Update debian/rules: add section get-orig-source.
diff --git a/debian/rules b/debian/rules
index 0e3374d..c70d7b9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,22 @@
override_dh_compress:
dh_compress -i -X.pdf -X.tar.gz -X.txt
+
+PACKAGE = elmer-doc
+DOCS = ElmerGridFiles.tar.gz ElmerGridManual.pdf ElmerModelsManual.pdf \
+ ElmerOverview.pdf ElmerParamManual.pdf ElmerProgrammersTutorial.pdf \
+ ElmerSolverManual.pdf ElmerTutorialFilesGUI.tar.gz ElmerTutorials.pdf \
+ ElmerTutorialsFiles_nonGUI.tar.gz ElmerguiManual.pdf MATCManual.pdf \
+ README.txt
+
+LAST_MOD=$(shell curl -I 'ftp://ftp.funet.fi/index/elmer/doc/ElmerDocumentation.tar.gz' 2>&1 | sed -ne "s/^.*Last-Modified: \(.*\) GMT.*/\1/p")
+NEW_VER=$(shell date -d "$(LAST_MOD)" "+%Y.%m.%d")
+
+get-orig-source:
+ rm -rf "$(PACKAGE)-$(NEW_VER)"
+ mkdir "$(PACKAGE)-$(NEW_VER)"
+ cd "$(PACKAGE)-$(NEW_VER)" && for FILE in $(DOCS); do \
+ wget -4 "ftp://ftp.funet.fi/index/elmer/doc/$$FILE" 2> /dev/null; \
+ done
+ tar -czf "$(PACKAGE)_$(NEW_VER).orig.tar.gz" "$(PACKAGE)-$(NEW_VER)"
+ rm -rf "$(PACKAGE)-$(NEW_VER)"
--
elmer-doc -- Elmer multiphysics FEA package documentation
More information about the debian-science-commits
mailing list