#!/bin/csh -f # bitbucketcommits_api # ----------------------------------------------------------------------------- # C shell script to access W4DT REST API BitBucket in specified browser and # go directly to the commits page. # ----------------------------------------------------------------------------- # Revision History: # $Log$ # ----------------------------------------------------------------------------- set browser = "open" set commit = "all" if ($#argv > 0) then if ("$1" == "open" || "$1" == "ff" || "$1" == "chr" || "$1" == "chrome" || "$1" == "safari" ) then set browser = $1:q shift endif set commit = "$*:q" endif echo $browser https://bitbucket.org/whatsfordinner/thyme-api/commits/$commit $browser https://bitbucket.org/whatsfordinner/thyme-api/commits/$commit