Skip to content

Commit

Permalink
jGRASP IDE: update auto-updater
Browse files Browse the repository at this point in the history
thanks to Larry for the version URL and documentation provided
  • Loading branch information
theofficialgman committed Jul 29, 2024
1 parent 158263b commit 0134131
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/updates/jGRASP IDE.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/bash

version=$(curl -Ls 'https://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html' | grep "jGRASP - Version" | sed 's/.*jGRASP - Version //' | sed 's/<br>//' | tr -d .)
# The format of the returned data is:
# final;last_major;location:final_bundled;last_major;location:non-final;last_major;location:non-final_bundled;last_major;location
# if there is a non-final release available
#
# and:
# final;last_major;location:final_bundled;last_major;location
# if there is only a final release available.

version=$(wget -qO- https://spider.eng.auburn.edu/user-cgi/grasp/version7.pl | awk -F '[;:]' '{ print $3 } { if ($7) print $9 }' | tail -n 1 | sed 's;/dl4g/jgrasp/jgrasp;;g')

all_url="https://www.jgrasp.org/dl4g/jgrasp/jgrasp${version}.zip"

Expand Down

0 comments on commit 0134131

Please sign in to comment.