}
$DM_SOURCEDIR = getenv('DM_SOURCEDIR');
+$DM_VERSION = getenv('DM_VERSION');
$data = array(
- 'version' => getenv('DM_VERSION'),
+ 'version' => $DM_VERSION,
'timestamp' => array(
'pretty' => date('r'),
'epoch' => time(),
),
- 'civicrm-core' => repo("$DM_SOURCEDIR", getenv('DM_REF_CORE')),
- 'civicrm-packages' => repo("$DM_SOURCEDIR/packages", getenv('DM_REF_PACKAGES')),
+ 'tar' => array(),
+ 'git' => array(
+ 'civicrm-backdrop@1.x' => repo("$DM_SOURCEDIR/backdrop", getenv('DM_REF_BACKDROP')),
+ 'civicrm-core' => repo("$DM_SOURCEDIR", getenv('DM_REF_CORE')),
+ 'civicrm-drupal@6.x' => repo("$DM_SOURCEDIR/drupal", getenv('DM_REF_DRUPAL6')),
+ 'civicrm-drupal@7.x' => repo("$DM_SOURCEDIR/drupal", getenv('DM_REF_DRUPAL')),
+ //'civicrm-drupal@8.x' => repo("$DM_SOURCEDIR/drupal", getenv('DM_REF_DRUPAL8')),
+ 'civicrm-packages' => repo("$DM_SOURCEDIR/packages", getenv('DM_REF_PACKAGES')),
+ 'civicrm-wordpress' => repo("$DM_SOURCEDIR/WordPress", getenv('DM_REF_WORDPRESS')),
+ ),
);
+
+if (getenv('BPACK')) {
+ $data['tar']['Backdrop'] = "civicrm-$DM_VERSION-backdrop-unstable.tar.gz";
+}
+if (getenv('J5PACK')) {
+ $data['tar']['Joomla'] = "civicrm-$DM_VERSION-joomla.zip";
+}
+if (getenv('D56PACK')) {
+ $data['tar']['Drupal6'] = "civicrm-$DM_VERSION-drupal6.tar.gz";
+}
+if (getenv('D5PACK')) {
+ $data['tar']['Drupal'] = "civicrm-$DM_VERSION-drupal.tar.gz";
+}
+if (getenv('WPPACK')) {
+ $data['tar']['WordPresse'] = "civicrm-$DM_VERSION-wordpress.zip";
+}
+if (getenv('L10NPACK')) {
+ $data['tar']['L10n'] = "civicrm-$DM_VERSION-l10n.tar.gz";
+}
+
ksort($data);
-$data['sig'] = md5(json_encode($data));
+$data['rev'] = md5(json_encode($data));
echo json_encode($data);