[DebianGIS-dev] [SCM] polsarpro branch, master, updated. upstream/4.1.5+ds-7-g14f599e
Antonio Valentino
antonio.valentino at tiscali.it
Tue Jan 18 17:43:55 UTC 2011
The following commit has been merged in the master branch:
commit 14f599ea6cb54a3b64a8a15c228583da5876044e
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Tue Jan 18 18:43:45 2011 +0100
The wapper script is now more conformant to the Debian policy (set -e)
diff --git a/debian/polsarpro.sh b/debian/polsarpro.sh
index 2315de1..8e33d3b 100644
--- a/debian/polsarpro.sh
+++ b/debian/polsarpro.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
SHAREROOT=/usr/share/polsarpro
DOCROOT=/usr/share/doc/polsarpro-doc
PSPROOT=${HOME}/.polsarpro
@@ -16,14 +18,15 @@ ln -s -f ${DOCROOT}/TechDoc
ln -s -f ${DOCROOT}/Tutorial
mkdir -p ${PSPROOT}/Config
-cp -n ${SHAREROOT}/Config/gpl*.txt ${SHAREROOT}/Config/Version.txt ${PSPROOT}/Config
-for f in ${SHAREROOT}/Config/*.txt; do
- if [ ! -f ${PSPROOT}/Config/$(basename $f) ]; then
- cp $f ${PSPROOT}/Config
- fi
-done
-
-cp -s ${SHAREROOT}/Config/* ${PSPROOT}/Config >> /dev/null 2>&1
+cp -u ${SHAREROOT}/Config/gpl*.txt ${SHAREROOT}/Config/Version.txt ${PSPROOT}/Config
+cp -n ${SHAREROOT}/Config/*.txt ${PSPROOT}/Config
+
+cp -sn ${SHAREROOT}/Config/*.pal ${PSPROOT}/Config
+cp -sn ${SHAREROOT}/Config/*.kml ${PSPROOT}/Config
+cp -sn ${SHAREROOT}/Config/*.bat ${PSPROOT}/Config
+cp -sn ${SHAREROOT}/Config/*.bmp ${PSPROOT}/Config
+cp -sn ${SHAREROOT}/Config/*.tif ${PSPROOT}/Config
+cp -sn ${SHAREROOT}/Config/*.gif ${PSPROOT}/Config
if [ ! -d ${PSPROOT}/Config/MyRoutines ]; then
cp -R ${SHAREROOT}/Config/MyRoutines ${PSPROOT}/Config
--
Polarimetric SAR Data Processing and Educational Tool
More information about the Pkg-grass-devel
mailing list