r45356 - /packages/code-aster/aster/trunk/debian/rules
apalazzi-guest at users.alioth.debian.org
apalazzi-guest at users.alioth.debian.org
Wed Sep 19 07:49:44 UTC 2012
Author: apalazzi-guest
Date: Wed Sep 19 07:49:43 2012
New Revision: 45356
URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=45356
Log:
Modified rules file to fix lintian warnings.
Modified:
packages/code-aster/aster/trunk/debian/rules
Modified: packages/code-aster/aster/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/aster/trunk/debian/rules?rev=45356&op=diff
==============================================================================
--- packages/code-aster/aster/trunk/debian/rules (original)
+++ packages/code-aster/aster/trunk/debian/rules Wed Sep 19 07:49:43 2012
@@ -10,7 +10,6 @@
PYVERS := $(shell pyversions -vr debian/control)
-
STA_VERSION=STA10.6
PTA_VERSION=STA10.6_mpi
ASTER_VERSION=10.6.0
@@ -26,59 +25,18 @@
ASTOUT_EXPORT=$(STA_VERSION)/astout.export
build: build-stamp
-build-stamp:
- @echo "ASTER_ROOT=$(ASTER_ROOT)"
+
+build-stamp: build-indep build-arch
+
+build-arch: build-serial build-mpi
+
+build-serial:
mkdir -p $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/dtag
cp -r $(STA_VERSION) $(DEB_DESTDIR)/$(ASTER_ROOT)
- mkdir -p $(DEB_DESTDIR)/$(ASTER_ROOT)/$(PTA_VERSION)/dtag
- cp -r $(STA_VERSION)/* $(DEB_DESTDIR)/$(ASTER_ROOT)/$(PTA_VERSION)
-# Export file replacements for running tests
- sed -i 's:?ASTER_ROOT?:$(ASTER_ROOT):' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
- sed -i 's:?ASTER_VERSION?:$(STA_VERSION):' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
-# Create liste_short_without_homard
- cat $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/liste_short | grep -v -f debian/liste_homard > $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/liste_short_without_homard
-# Create liste_without_homard
- cat $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/liste_internet | grep -v -f debian/liste_homard > $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/liste_internet_without_homard
-# Use the short test list without homard by default
- sed -i '/liste_internet/ s/^/#/' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
- sed -i 's:#\(.*liste_short.*\):#\1\n\1:' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
- sed -i '/^F/ s:liste_short:&_without_homard:' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
-# Results will be in /tmp for writing permission
- sed -i '/resu_test/ s:$(ASTER_ROOT)/$(STA_VERSION):/tmp:' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
-
# Remove extra license file
rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/LICENSE.TERMS
rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/GPL.txt
-# Remove UMAT binaries from test cases
- rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/astest/umat001a.44
- rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/astest/umat001b.44
- rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/astest/umat002a.44
- rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/astest/umat002a.46
-
-# Add as_test.sh
- mkdir -p $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest
- cp debian/as_test.sh $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest
- chmod 755 $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/as_test.sh
- touch $@
-
-
-clean:
- dh_testdir
- dh_testroot
-# Default cleaning
- rm -f setup.cache setup.dbg* setup.log*
- rm -f variables.init cfg___main__ cfg_aster
- -find . -name "*.pyc" -exec rm {} \;
- -rm -rf *-stamp
-# Removing build and install tree
- rm -rf $(DEB_DESTDIR)
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
-#
HOME=$(DEB_DESTDIR); \
set -ex; \
for v in $(PYVERS); do \
@@ -99,7 +57,15 @@
ln -sf /usr/bin/onmetis $(DEB_DESTDIR)/$(ASTER_ROOT)/outils
ln -sf /usr/bin/onmetis.exe $(DEB_DESTDIR)/$(ASTER_ROOT)/outils
-#
+ touch $@
+
+build-mpi:
+ mkdir -p $(DEB_DESTDIR)/$(ASTER_ROOT)/$(PTA_VERSION)/dtag
+ cp -r $(STA_VERSION)/* $(DEB_DESTDIR)/$(ASTER_ROOT)/$(PTA_VERSION)
+# Remove extra license file
+ rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/LICENSE.TERMS
+ rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/GPL.txt
+
# For MPI version
HOME=$(DEB_DESTDIR); \
set -ex; \
@@ -121,8 +87,57 @@
#
# 4. change mumps_scotch to mumps_ptscotch?
# 5. disable openmp?
-
-#
+ touch $@
+
+build-indep:
+ mkdir -p $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/dtag
+ cp -r $(STA_VERSION) $(DEB_DESTDIR)/$(ASTER_ROOT)
+# Export file replacements for running tests
+ sed -i 's:?ASTER_ROOT?:$(ASTER_ROOT):' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
+ sed -i 's:?ASTER_VERSION?:$(STA_VERSION):' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
+# Create liste_short_without_homard
+ cat $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/liste_short | grep -v -f debian/liste_homard > $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/liste_short_without_homard
+# Create liste_without_homard
+ cat $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/liste_internet | grep -v -f debian/liste_homard > $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/liste_internet_without_homard
+# Use the short test list without homard by default
+ sed -i '/liste_internet/ s/^/#/' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
+ sed -i 's:#\(.*liste_short.*\):#\1\n\1:' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
+ sed -i '/^F/ s:liste_short:&_without_homard:' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
+# Results will be in /tmp for writing permission
+ sed -i '/resu_test/ s:$(ASTER_ROOT)/$(STA_VERSION):/tmp:' $(DEB_DESTDIR)/$(ASTER_ROOT)/$(ASTOUT_EXPORT)
+
+# Remove extra license file
+ rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/LICENSE.TERMS
+ rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/GPL.txt
+
+# Remove UMAT binaries from test cases
+ rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/astest/umat001a.44
+ rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/astest/umat001b.44
+ rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/astest/umat002a.44
+ rm -f $(DEB_DESTDIR)$(ASTER_ROOT)/$(STA_VERSION)/astest/umat002a.46
+
+# Add as_test.sh
+ mkdir -p $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest
+ cp debian/as_test.sh $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest
+ chmod 755 $(DEB_DESTDIR)/$(ASTER_ROOT)/$(STA_VERSION)/astest/as_test.sh
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+# Default cleaning
+ rm -f setup.cache setup.dbg* setup.log*
+ rm -f variables.init cfg___main__ cfg_aster
+ -find . -name "*.pyc" -exec rm {} \;
+ -rm -rf *-stamp
+# Removing build and install tree
+ rm -rf $(DEB_DESTDIR)
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+
find . -name "*.pyc" -exec rm {} \;
find . -type d -empty -delete
dh_install --sourcedir=debian/tmp --list-missing
More information about the debian-science-commits
mailing list