Skip to content

Commit

Permalink
Fix some build problems
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed Dec 10, 2024
1 parent f8e7316 commit c70d4e8
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 80 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $(VENDOR_AUTOLOAD):
$(ZIP_FILE): $(VENDOR_AUTOLOAD)
git archive --format=zip --output=${ZIP_FILENAME} $(COMMIT)
$(shell ./simplify-mpdf.sh)
zip -r ${ZIP_FILENAME} vendor/mpdf/
zip -r ${ZIP_FILENAME} vendor/
mkdir -p ${BUILD_DIR} && mv ${ZIP_FILENAME} ${BUILD_DIR}/

.PHONY: build
Expand Down
79 changes: 79 additions & 0 deletions bmlt-meeting-list.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?php

/**
* The plugin bootstrap file
*
* @link https://bmlt.app
* @since 2.8.0
* @package Bread
*
* @wordpress-plugin
* Plugin Name: Bread
* Plugin URI: https://bmlt.app
* Description: Maintains and generates PDF Meeting Lists from BMLT.
* Version: 2.8.0
* Author: bmlt-enabled
* Author URI: https://bmlt.app/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: bread
* Domain Path: /languages
*/

// If this file is called directly, abort.
if (! defined('WPINC')) {
die;
}

/**
* Currently plugin version.
* Start at version 2.8.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define('BREAD_VERSION', '2.8.0');

/**
* The code that runs during plugin activation.
* This action is documented in includes/class-bread-activator.php
*/
function activate_bread()
{
include_once plugin_dir_path(__FILE__) . 'includes/class-bread-activator.php';
Bread_Activator::activate();
}

/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-bread-deactivator.php
*/
function deactivate_bread()
{
include_once plugin_dir_path(__FILE__) . 'includes/class-bread-deactivator.php';
Bread_Deactivator::deactivate();
}

register_activation_hook(__FILE__, 'activate_bread');
register_deactivation_hook(__FILE__, 'deactivate_bread');

/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require plugin_dir_path(__FILE__) . 'includes/class-bread.php';
require plugin_dir_path(__FILE__) . 'includes/class-bread-bmlt.php';
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 2.8.0
*/
function run_bread()
{

$plugin = new Bread();
$plugin->run();
}
run_bread();
80 changes: 1 addition & 79 deletions bread.php
Original file line number Diff line number Diff line change
@@ -1,79 +1 @@
<?php

/**
* The plugin bootstrap file
*
* @link https://bmlt.app
* @since 2.8.0
* @package Bread
*
* @wordpress-plugin
* Plugin Name: Bread
* Plugin URI: https://bmlt.app
* Description: Maintains and generates PDF Meeting Lists from BMLT.
* Version: 2.8.0
* Author: bmlt-enabled
* Author URI: https://bmlt.app/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: bread
* Domain Path: /languages
*/

// If this file is called directly, abort.
if (! defined('WPINC')) {
die;
}

/**
* Currently plugin version.
* Start at version 2.8.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define('BREAD_VERSION', '2.8.0');

/**
* The code that runs during plugin activation.
* This action is documented in includes/class-bread-activator.php
*/
function activate_bread()
{
include_once plugin_dir_path(__FILE__) . 'includes/class-bread-activator.php';
Bread_Activator::activate();
}

/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-bread-deactivator.php
*/
function deactivate_bread()
{
include_once plugin_dir_path(__FILE__) . 'includes/class-bread-deactivator.php';
Bread_Deactivator::deactivate();
}

register_activation_hook(__FILE__, 'activate_bread');
register_deactivation_hook(__FILE__, 'deactivate_bread');

/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require plugin_dir_path(__FILE__) . 'includes/class-bread.php';
require plugin_dir_path(__FILE__) . 'includes/class-bread-bmlt.php';
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 2.8.0
*/
function run_bread()
{

$plugin = new Bread();
$plugin->run();
}
run_bread();
<?php /** * Do not modify the files in this folder. */?>

0 comments on commit c70d4e8

Please sign in to comment.