File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929$darkmode
3030$extrastylesheet
3131< link href ="$relpath^version.css " rel ="stylesheet " type ="text/css " />
32- < script type ="text/javascript " src ="../../version.js "> </ script >
32+ < script type ="text/javascript " src ="../../../ version.js "> </ script >
3333</ head >
3434< body >
3535<!--BEGIN DISABLE_INDEX-->
5353 <!--BEGIN PROJECT_NUMBER-->  < span id ="projectnumber "> < script type ="text/javascript ">
5454 <!--
5555 writeHeader . call ( this ) ;
56- writeVersionDropdown . call ( this , "$projectname" ) ;
56+ writeVersionDropdown . call ( this ) ;
5757 //-->
5858 </ script >
5959 </ span > <!--END PROJECT_NUMBER-->
Original file line number Diff line number Diff line change @@ -77,7 +77,10 @@ function generate() {
7777 projectName=$( grep -E " PROJECT_NAME\s+=" $1 .dxy.in | sed -r -e ' s/[^"]*"([^"]+)".*/\1/' )
7878 projectNumberFull=" $2 "
7979 if [ -z " ${projectNumberFull} " ]; then
80- projectNumberFull=$( grep -E " PROJECT_NUMBER\s+=" $1 .dxy.in | sed -r -e ' s/[^"]*"[^0-9]*([0-9]+\.[0-9]+(\.[0-9]+)?(-.+)?)".*/\1/' )
80+ projectNumberFull=$( grep -E " PROJECT_NUMBER\s+=" $1 .dxy.in | sed -r -e ' s/[^"]*"[^0-9]*(([0-9]+\.[0-9]+(\.[0-9]+)?(-.+)?)?)".*/\1/' )
81+ fi
82+ if [ -z " ${projectNumberFull} " ]; then
83+ projectNumberFull=" $( git rev-parse --short HEAD) "
8184 fi
8285 projectNumber=" ${projectNumberFull% +* } "
8386 datetime=$( date -u +' %a %b %e %Y %H:%M:%S' )
You can’t perform that action at this time.
0 commit comments