File tree 1 file changed +11
-2
lines changed 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -555,7 +555,11 @@ fn regen_illumos_sh<P: AsRef<Path>>(
555
555
* numbers:
556
556
*/
557
557
BuildType :: Quick | BuildType :: QuickDebug | BuildType :: Full => {
558
- let vers = "$(git describe --long --all HEAD | cut -d/ -f2-)" ;
558
+ let vers = "$($(git describe --all --long --dirty \
559
+ --match $(git branch --show-current) --exact-match \
560
+ 2>/dev/null || \
561
+ git describe --all --long --dirty) | \
562
+ cut -d/ -f2-)";
559
563
( 999999 , vers. into ( ) , "Oxide Helios Version ^v ^w-bit (onu)" )
560
564
}
561
565
} ;
@@ -599,7 +603,12 @@ fn regen_illumos_sh<P: AsRef<Path>>(
599
603
smatch,$SMATCHBIN,smatch\" \n ";
600
604
}
601
605
}
602
- env += "export BUILDVERSION_EXEC=\" git describe --all --long --dirty\" \n " ;
606
+ env += "helios_build_buildversion_exec_function() { \n \
607
+ git describe --all --long --dirty \
608
+ --match $(git branch --show-current) --exact-match 2>/dev/null || \
609
+ git describe --all --long --dirty \n \
610
+ }\n ";
611
+ env += "export BUILDVERSION_EXEC=helios_build_buildversion_exec_function\n " ;
603
612
env += & format ! ( "export DMAKE_MAX_JOBS={}\n " , maxjobs) ;
604
613
env += "export ENABLE_SMB_PRINTING='#'\n " ;
605
614
match relver {
You can’t perform that action at this time.
0 commit comments