]> gitweb.fluxo.info Git - brweather.git/commitdiff
DIRNAME needs to be set just once
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Feb 2013 21:00:31 +0000 (19:00 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Feb 2013 21:00:31 +0000 (19:00 -0200)
brweather/bin/inpe-4
brweather/bin/inpe-5
brweather/bin/inpe-6
brweather/bin/moon
brweather/bin/open-3
brweather/bin/open-4
brweather/bin/open-5
brweather/bin/seasons

index 10ecd76dd1e9165c4fe3ad1db8a73a5d6dbdb9e8..54eaab8ee3b86135c36d89c1dec455a9375dfb92 100644 (file)
@@ -6,9 +6,6 @@
 # http://brweatherproject.blogspot.com/
 # Distribuído sob licença GPLv3
 
-# Pasta base
-DIRNAME="$(dirname `dirname $0`)"
-
 NCN=`grep "javascript:janela('http://tempo.cptec.inpe.br/~rtempo/legenda.shtml'" ~/.brweather/cache/cache | cut -f12 -d'/' | cut -f1 -d'.'`
 NC1=`grep -m1 'title="Clique sobre o ícone para ver a legenda"></a></div>' ~/.brweather/cache/cache | cut -f12 -d'/' | cut -f1 -d'.'`
 
index 9e25767434354e8c6a35794776ebec497d3a7a25..4216e69ebb1dc542841e04e7f101c8ad9a5170bb 100644 (file)
@@ -6,9 +6,6 @@
 # http://brweatherproject.blogspot.com/
 # Distribuído sob licença GPLv3
 
-# Pasta base
-DIRNAME="$(dirname `dirname $0`)"
-
 NC2=`grep -m2 'title="Clique sobre o ícone para ver a legenda"></a></div>' ~/.brweather/cache/cache | cut -f12 -d'/' | cut -f1 -d'.' | tail -n1`
 NC3=`grep -m3 'title="Clique sobre o ícone para ver a legenda"></a></div>' ~/.brweather/cache/cache | cut -f12 -d'/' | cut -f1 -d'.' | tail -n1`
 NC4=`grep -m4 'title="Clique sobre o ícone para ver a legenda"></a></div>' ~/.brweather/cache/cache | cut -f12 -d'/' | cut -f1 -d'.' | tail -n1`
index 49463492237c1de7fb0984af2f08e2bbf16c0b54..6f9503e96a59de115c2f38b4d633b8173917a89d 100644 (file)
@@ -6,9 +6,6 @@
 # http://brweatherproject.blogspot.com/
 # Distribuído sob licença GPLv3
 
-# Pasta base
-DIRNAME="$(dirname `dirname $0`)"
-
 NC5=`grep -m5 'title="Clique sobre o ícone para ver a legenda"></a></div>' ~/.brweather/cache/cache | cut -f12 -d'/' | cut -f1 -d'.' | tail -n1`
 NC6=`grep -m6 'title="Clique sobre o ícone para ver a legenda"></a></div>' ~/.brweather/cache/cache | cut -f12 -d'/' | cut -f1 -d'.' | tail -n1`
 NC7=`grep -m7 'title="Clique sobre o ícone para ver a legenda"></a></div>' ~/.brweather/cache/cache | cut -f12 -d'/' | cut -f1 -d'.' | tail -n1`
index e79e82e995991354bf88b7b8de3374df15401056..074d9bdf9b21d9c6b942180d60537f7fece8f076 100755 (executable)
@@ -6,9 +6,6 @@
 # http://brweatherproject.blogspot.com/
 # Distribuído sob licença GPLv3
 
-# Pasta base
-DIRNAME="$(dirname `dirname $0`)"
-
 #Ano atual
 YEAR=`date "+%Y"`
 
index f542a709fd401943423d5e6174dea9b1d8aca90f..2aa698ede9511094b3da7008a513bb1bb95d4dac 100644 (file)
@@ -6,9 +6,6 @@
 # http://brweatherproject.blogspot.com/
 # Distribuído sob licença GPLv3
 
-# Pasta base
-DIRNAME="$(dirname `dirname $0`)"
-
 AWE=$(echo awk -F"[,:]" '{for(i=1;i<=NF;i++){if($i~/id\042/){print$(i+1)}}}')
 WID=$(awk -F"[,:]" '{for(i=1;i<=NF;i++){if($i~/weather\042/){print$(i+2)}}}' ~/.brweather/cache/open1)
 
index 363748cc4b07c858a45c195c0b7d0104e50502ab..8e89715dfad50ef0609aa11aa1331e6f9c424de7 100644 (file)
@@ -6,9 +6,6 @@
 # http://brweatherproject.blogspot.com/
 # Distribuído sob licença GPLv3
 
-# Pasta base
-DIRNAME="$(dirname `dirname $0`)"
-
 AWE=$(echo awk -F"[,:]" '{for(i=1;i<=NF;i++){if($i~/id\042/){print$(i+1)}}}')
 
 D2=$(grep -m1 $(date -d "1 day" "+%a") ~/.brweather/cache/open2 | tail -n1)
index 998c504cda27e2ba1c5076fdfa369731f7fa1ce8..dce32c07cf533205bde5a564eb7065f5bdadd309 100644 (file)
@@ -6,9 +6,6 @@
 # http://brweatherproject.blogspot.com/
 # Distribuído sob licença GPLv3
 
-# Pasta base
-DIRNAME="$(dirname `dirname $0`)"
-
 AWE=$(echo awk -F"[,:]" '{for(i=1;i<=NF;i++){if($i~/id\042/){print$(i+1)}}}')
 
 D5=$(grep -m1 $(date -d "4 day" "+%a") ~/.brweather/cache/open2 | tail -n1)
index b4adf4e66f6e9eb7e68ee49501884460ae6d1132..4af2a8d558009b7fbe4e45aa00895bb15d0fc740 100644 (file)
@@ -6,9 +6,6 @@
 # http://brweatherproject.blogspot.com/
 # Distribuído sob licença GPLv3
 
-# Pasta base
-DIRNAME="$(dirname `dirname $0`)"
-
 YEAR=`date +%Y`
 DATA0=`date +%d`