[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/project/release/ -> package-release-nodes.php (summary)

(no description)

File Size: 1227 lines (47 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 includes/bootstrap.inc

Defines 21 functions

  package_releases()
  package_release_core()
  package_release_contrib()
  package_release_contrib_pre_d6_translation()
  package_release_contrib_d6_translation()
  verify_packages()
  drupal_exec()
  drupal_chdir()
  wprint()
  wd_msg()
  wd_err()
  wd_check()
  initialize_tmp_dir()
  initialize_repository_info()
  fix_info_file_version()
  package_release_update_node()
  file_find_youngest()
  translation_status()
  translation_report()
  translation_number_of_strings()
  core_make_file()

Functions
Functions that are not part of a class:

package_releases($type, $project_id = 0)   X-Ref

author: Derek Wright (http://drupal.org/user/46549)

package_release_core($type, $nid, $project_short_name, $version, $tag)   X-Ref
No description

package_release_contrib($type, $nid, $project_short_name, $version, $tag, $release_dir)   X-Ref
No description

package_release_contrib_pre_d6_translation($project_short_name, $version, $release_node_view_link)   X-Ref
No description

package_release_contrib_d6_translation($project_short_name, $version, $release_node_view_link)   X-Ref
No description

verify_packages($task, $project_id)   X-Ref
Check that file metadata on disk matches the values stored in the DB.


drupal_exec($cmd)   X-Ref
Wrapper for exec() that logs errors to the watchdog.

param: $cmd
return: true if the command was successful (0 exit status), else false.

drupal_chdir($dir)   X-Ref
Wrapper for chdir() that logs errors to the watchdog.

param: $dir Directory to change into.
return: true if the command was successful (0 exit status), else false.

wprint($var)   X-Ref
No description

wd_msg($msg, $variables = array()   X-Ref
Wrapper function for watchdog() to log notice messages. Uses a
different watchdog message type depending on the task (branch vs. tag).


wd_err($msg, $variables = array()   X-Ref
Wrapper function for watchdog() to log error messages.


wd_check($msg, $variables = array()   X-Ref
Wrapper function for watchdog() to log messages about checking
package metadata.


initialize_tmp_dir($task)   X-Ref
Initialize the tmp directory. Use different subdirs for building
snapshots than official tags, so there's no potential directory
collisions and race conditions if both are running at the same time
(due to how long it takes to complete a branch snapshot run, and
how often we run this for tag-based releases).


initialize_repository_info()   X-Ref
Initialize info from the {cvs_repositories} table, since there are
usually only a tiny handful of records, and it'll be faster to do
whatever we need via php than another JOIN...


fix_info_file_version($file, $project_short_name, $version)   X-Ref
Fix the given .info file with the specified version string


package_release_update_node($nid, $files, $package_contents = array()   X-Ref
Update the DB with the new file info for a given release node.

param: $nid
param: $files
param: $package_contents

file_find_youngest($dir, $timestamp, $exclude, &$info_files)   X-Ref
Find the youngest (newest) file in a directory tree.
Stolen wholesale from the original package-drupal.php script.
Modified to also notice any files that end with ".info" and store
all of them in the array passed in as an argument. Since we have to
recurse through the whole directory tree already, we should just
record all the info we need in one pass instead of doing it twice.


translation_status($dir, $version)   X-Ref
Extract some translation statistics:


translation_report($versions)   X-Ref
No description

translation_number_of_strings($dir, $version)   X-Ref
No description

core_make_file($core)   X-Ref
Construct a .make file which will build Drupal core.

This is a very simple 'bootstrap' .make file, which should only ever include
the minimal package metadata to build core.

All arguments should be in a format that drush_make can understand.

param: $core



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7