[med-svn] r5885 - trunk/packages/biomaj/trunk/debian
olivier sallou
osallou-guest at alioth.debian.org
Fri Feb 4 11:03:34 UTC 2011
Author: osallou-guest
Date: 2011-02-04 11:02:52 +0000 (Fri, 04 Feb 2011)
New Revision: 5885
Modified:
trunk/packages/biomaj/trunk/debian/get-orig-source
Log:
update get orig source to handle errors
Modified: trunk/packages/biomaj/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/biomaj/trunk/debian/get-orig-source 2011-02-04 10:21:44 UTC (rev 5884)
+++ trunk/packages/biomaj/trunk/debian/get-orig-source 2011-02-04 11:02:52 UTC (rev 5885)
@@ -17,24 +17,36 @@
cp BioMAJ-$BMAJVERSION/lib/commons-cli-2.0-SNAPSHOT.jar biomaj_deb/usr/share/biomaj/lib/
-
+if [ -e biomaj_deb/usr/share/biomaj/lib/biomaj.jar ]
+then
rm biomaj_deb/usr/share/biomaj/lib/biomaj.jar
+fi
+echo "Copy files..."
cp -R BioMAJ-$BMAJVERSION/src/* biomaj_deb/usr/share/biomaj/src/
cp -R BioMAJ-$BMAJVERSION/sql/* biomaj_deb/usr/share/biomaj/sql/
cp -R BioMAJ-$BMAJVERSION/workflows/* biomaj_deb/usr/share/biomaj/workflows/
cp -R BioMAJ-$BMAJVERSION/xslt/* biomaj_deb/usr/share/biomaj/xslt/
-cp BioMAJ-$BMAJVERSION/* biomaj_deb/usr/share/biomaj/
+cp BioMAJ-$BMAJVERSION/*.* biomaj_deb/usr/share/biomaj/
+cp BioMAJ-$BMAJVERSION/License* biomaj_deb/usr/share/biomaj/
+cp BioMAJ-$BMAJVERSION/MANIFEST biomaj_deb/usr/share/biomaj/
+cp BioMAJ-$BMAJVERSION/README biomaj_deb/usr/share/biomaj/
+cp BioMAJ-$BMAJVERSION/RELEASE biomaj_deb/usr/share/biomaj/
+cp BioMAJ-$BMAJVERSION/TODO biomaj_deb/usr/share/biomaj/
+
+echo "Delete unnecessary files"
+
rm biomaj_deb/usr/share/biomaj/general.conf
-
rm -rf biomaj_deb/usr/share/biomaj/xslt/css
rm -rf biomaj_deb/usr/share/biomaj/doc
+echo "Update configuration"
cp -R BioMAJ-$BMAJVERSION/conf/* biomaj_deb/etc/biomaj/
sed 's/data.dir=/data.dir=\/var\/lib\/biomaj\//' biomaj_deb/etc/biomaj/db_properties/global.properties > biomaj_deb/etc/biomaj/db_properties/global.properties.tmp
mv biomaj_deb/etc/biomaj/db_properties/global.properties.tmp biomaj_deb/etc/biomaj/db_properties/global.properties
mv biomaj_deb/etc/biomaj/process/* biomaj_deb/usr/share/biomaj/conf/process/
rmdir biomaj_deb/etc/biomaj/process
+echo "Updating file rights"
chmod 644 biomaj_deb/usr/share/biomaj/lib/*.jar
chmod 644 biomaj_deb/usr/share/biomaj/src/org/inria/biomaj/sql/*.java
chmod 644 biomaj_deb/usr/share/biomaj/src/org/inria/biomaj/internal/ant/task/net/test/*.java
@@ -47,9 +59,10 @@
#rm biomaj_deb/debian/conffiles
#rm biomaj_deb/debian/fichier
-
+echo "Update debian build file"
mv biomaj_deb/usr/share/biomaj/build.xml_deb biomaj_deb/usr/share/biomaj/build.xml
+echo "Removing temporary directories"
rm -rf BioMAJ-$BMAJVERSION
mv biomaj_deb biomaj_$BMAJVERSION
More information about the debian-med-commit
mailing list