X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=distmaker%2Fdists%2Fdrupal_php5.sh;h=b8b5e9ec8a3d525ba77046547c6a65a28a17ec48;hb=805dd6a2ce4ebe8deae689de8bc8e81f4ee2ea4a;hp=ac2c512180148bf818626237a2fafafb5fb1225e;hpb=d0f466d1aec3f5f2f9f24635470a7df8d15b9b11;p=civicrm-core.git diff --git a/distmaker/dists/drupal_php5.sh b/distmaker/dists/drupal_php5.sh index ac2c512180..b8b5e9ec8a 100755 --- a/distmaker/dists/drupal_php5.sh +++ b/distmaker/dists/drupal_php5.sh @@ -1,85 +1,26 @@ #!/bin/bash set -ex -# This script assumes -# that DAOs are generated -# and all the necessary conversions had place! - P=`dirname $0` CFFILE=$P/../distmaker.conf - if [ ! -f $CFFILE ] ; then echo "NO DISTMAKER.CONF FILE!" exit 1 else . $CFFILE fi +. "$P/common.sh" -RSYNCOPTIONS="-avC $DM_EXCLUDES_RSYNC --include=core" -RSYNCCOMMAND="$DM_RSYNC $RSYNCOPTIONS" SRC=$DM_SOURCEDIR TRG=$DM_TMPDIR/civicrm -# checkout the right code revisions -pushd "$DM_SOURCEDIR/drupal" -git checkout "$DM_REF_DRUPAL" -popd - -# make sure and clean up before -if [ -d $TRG ] ; then - rm -rf $TRG/* -fi - # copy all the stuff -for CODE in css i js packages PEAR templates bin CRM api drupal extern Reports install settings; do - echo $CODE - [ -d $SRC/$CODE ] && $RSYNCCOMMAND $SRC/$CODE $TRG -done - -# delete any setup.sh or setup.php4.sh if present -if [ -d $TRG/bin ] ; then - rm -f $TRG/bin/setup.sh - rm -f $TRG/bin/setup.php4.sh - rm -f $TRG/bin/setup.bat -fi - - -# copy selected sqls -if [ ! -d $TRG/sql ] ; then - mkdir $TRG/sql -fi - -for F in $SRC/sql/civicrm*.mysql $SRC/sql/counties.US.sql.gz $SRC/sql/case_sample*.mysql; do - cp $F $TRG/sql -done - -set +e -rm -rf $TRG/sql/civicrm_*.??_??.mysql -set -e - -# copy docs -cp $SRC/agpl-3.0.txt $TRG -cp $SRC/gpl.txt $TRG -cp $SRC/README.txt $TRG -cp $SRC/CONTRIBUTORS.txt $TRG -cp $SRC/agpl-3.0.exception.txt $TRG +dm_reset_dirs "$TRG" cp $SRC/drupal/civicrm.config.php.drupal $TRG/civicrm.config.php - -# set full version in .info files -MODULE_DIRS=`find "$DM_SOURCEDIR/drupal" -type f -name "*.info"` -for INFO in $MODULE_DIRS; do - sed -i "s/version = [1-9.]*/version = $DM_VERSION/g" $INFO -done - - -# final touch -echo " '$DM_VERSION', - 'cms' => 'Drupal', - 'revision' => '$DM_REVISION' ); -} -" > $TRG/civicrm-version.php +dm_generate_version "$TRG/civicrm-version.php" Drupal +dm_install_core "$SRC" "$TRG" +dm_install_packages "$SRC/packages" "$TRG/packages" +dm_install_drupal "$SRC/drupal" "$TRG/drupal" # gen tarball cd $TRG/..