Subversion Repositories vgwhois

Rev

Rev 91 | Rev 143 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 91 Rev 100
Line 3... Line 3...
3
 
3
 
4
#
4
#
5
#  VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois)
5
#  VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois)
6
#  Maintenance / Developer utilities
6
#  Maintenance / Developer utilities
7
#
7
#
8
#  (c) 2012-2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
8
#  (c) 2012-2022 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
9
#
9
#
10
#  License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2)
10
#  License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2)
11
#
11
#
12
 
12
 
13
# TODO: strikte trennung zwischen pattern entwicklung ( = im sdk enthalten ) und lokaler gwi entwicklung ( = packages, eigene vwi services )
13
# TODO: strikte trennung zwischen pattern entwicklung ( = im sdk enthalten ) und lokaler gwi entwicklung ( = packages, eigene vwi services )
Line 162... Line 162...
162
	$global_status=1;
162
	$global_status=1;
163
}
163
}
164
 
164
 
165
# ---
165
# ---
166
 
166
 
167
$own_debian = '20120626.1.3';
167
$their_debian = getLatestGWIversion();
168
$own_github = 4; // Latest commit f712050  on 30 Nov 2018
168
$own_debian_base = '20120626.0-1'; // 17 October 2022: Taken over by Debian QA Team. No difference in the code towards gwhois_20120626-1.3, just Debian files changed.
169
 
169
 
170
echo "* Check if there is a newer official version of gwhois which needs to be merged with the ViaThinkSoft fork\n";
170
$their_github = github_commit_count('julijane', 'gwhois'); // this repo is dead
-
 
171
$own_github_base = 4; // Latest commit f712050  on 30 Nov 2018
171
 
172
 
172
$their_debian = str_replace('-', '.', getLatestGWIversion()); // they use the reserved '-' character in their versions (used for delimiting upstream versions)
173
echo "* Check if there is a newer official version of gwhois which needs to be merged with the ViaThinkSoft fork\n";
173
$their_github = github_commit_count('julijane', 'gwhois');
-
 
174
 
174
 
175
$loc_good = true;
175
$loc_good = true;
176
 
176
 
177
if ($own_debian != $their_debian) {
177
if ($own_debian_base != $their_debian) {
178
	echo '[ !! ] Their DEBIAN version: '.$their_debian." (Our version is based on: ".$own_debian.")\n";
178
	echo '[ !! ] Their DEBIAN version: '.$their_debian." (Our version is based on: ".$own_debian_base.")\n";
179
	$loc_good = false;
179
	$loc_good = false;
180
}
180
}
181
 
181
 
182
if ($own_github != $their_github) {
182
if ($own_github_base != $their_github) {
183
	echo '[ !! ] Their GITHUB version: '.$their_github." (Our version is based on: ".$own_github.")\n";
183
	echo '[ !! ] Their GITHUB version: '.$their_github." (Our version is based on: ".$own_github_base.")\n";
184
	$loc_good = false;
184
	$loc_good = false;
185
}
185
}
186
 
186
 
187
if ($loc_good) {
187
if ($loc_good) {
188
	echo "[ OK ]\n";
188
	echo "[ OK ]\n";