summaryrefslogtreecommitdiff
path: root/scite/prep-for-updating.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scite/prep-for-updating.sh')
-rwxr-xr-xscite/prep-for-updating.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scite/prep-for-updating.sh b/scite/prep-for-updating.sh
index b020cdf..d811558 100755
--- a/scite/prep-for-updating.sh
+++ b/scite/prep-for-updating.sh
@@ -5,7 +5,7 @@
# rmadison, git, awk, wget, tar
cd ~/dev/salsa/scite || { mkdir -p ~/dev/salsa; cd ~/dev/salsa ; git clone https://salsa.debian.org/debian/scite.git scite ; cd ~/dev/salsa/scite ; } ; git pull
# get latest scite source version, without character period
-latest="$( rmadison --url debian --suite sid scite | awk -F'|' '{print $2}' | awk -F'-' '{print $1}' | xargs )"
+latest="$( rmadison --url debian --suite sid scite | awk -F'|' '{print $2}' | awk -F'-' '{print $1}' | tail -n1 | xargs )"
latest_no_period="$( echo "${latest}" | tr -d '.' )"
cd ~/dev ; wget --continue "https://www.scintilla.org/scite${latest_no_period}.tgz" ; ln -s "scite${latest_no_period}.tgz" scite_"${latest}".orig.tar.gz
mkdir -p scite.1 ; cd scite.1
bgstack15