Skip to content

Commit 3955ab8

Browse files
author
Cameron Hall
committed
Fixed version number with leading "v"
1 parent 7cc196d commit 3955ab8

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ ifneq ($(.SHELLSTATUS), 0)
1414
VERSION := $(shell git describe --tags)
1515
endif
1616

17+
VERSION := $(firstword $(subst -, ,${VERSION}))
18+
1719
build-assets:
1820
npm run-script build
1921

@@ -23,14 +25,14 @@ update-whois:
2325
replace:
2426
sed -i${SED_PARAM} "s/{{VERSION}}/${VERSION}/g" "README.txt"
2527
sed -i${SED_PARAM} "s/{{RELEASE_DATE}}/${RELEASE_DATE}/g" "README.txt"
26-
sed -i${SED_PARAM} "s/{{VERSION}}/${VERSION}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php"
28+
sed -i${SED_PARAM} "s/{{VERSION}}/${VERSION:v%=%}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php"
2729
sed -i${SED_PARAM} "s/{{API}}/${SW_API_HOSTNAME}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php"
2830
sed -i${SED_PARAM} "s/{{FRONTEND}}/${SW_FRONTEND_HOSTNAME}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php"
2931

3032
revert:
3133
sed -i${SED_PARAM} "s/${VERSION}/{{VERSION}}/g" "README.txt"
3234
sed -i${SED_PARAM} "s/${RELEASE_DATE}/{{RELEASE_DATE}}/g" "README.txt"
33-
sed -i${SED_PARAM} "s/${VERSION}/{{VERSION}}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php"
35+
sed -i${SED_PARAM} "s/${VERSION:v%=%}/{{VERSION}}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php"
3436
sed -i${SED_PARAM} "s/${SW_API_HOSTNAME}/{{API}}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php"
3537
sed -i${SED_PARAM} "s/${SW_FRONTEND_HOSTNAME}/{{FRONTEND}}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php"
3638

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
=============================================================
2-
Synergy Wholesale WHMCS Domains Module v{{VERSION}}
2+
Synergy Wholesale WHMCS Domains Module {{VERSION}}
33
Released: {{RELEASE_DATE}}
44
=============================================================
55

modules/registrars/synergywholesaledomains/hooks.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Synergy Wholesale Registrar Module
45
*
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
23
/**
34
* Synergy Wholesale Registrar Module
45
*
56
* @copyright Copyright (c) Synergy Wholesale Pty Ltd 2020
67
* @license https://github.com/synergywholesale/whmcs-domains-module/LICENSE
78
*/
9+
810
header('Location: ../../../index.php');

modules/registrars/synergywholesaledomains/synergywholesaledomains.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Synergy Wholesale Registrar Module
45
*

0 commit comments

Comments
 (0)