Skip to content

Commit

Permalink
CKEditorPlugin: mache build.pl auch ohne MANIFEST funktionsfähig
Browse files Browse the repository at this point in the history
Da das MANIFEST nicht mehr in git enthalten ist und BuildContrib
unbedingt eins haben möchte, ist es zurzeit nicht möglich, aus einem
frischen Clone das Plugin zu bauen. Erstelle deshalb bei Bedarf ein
leeres MANIFEST.
  • Loading branch information
jast committed May 22, 2012
1 parent 00ff83f commit f9b65d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CKEditorPlugin/lib/Foswiki/Plugins/CKEditorPlugin/build.pl
Expand Up @@ -230,6 +230,15 @@ sub target_build {
exit; exit;
} }


# Create MANIFEST file if none exists yet
use File::Spec;
my ($spec_vol, $spec_path) = File::Spec->splitpath(__FILE__);
my $mani_path = File::Spec->catfile($spec_vol.$spec_path, 'MANIFEST');
if (!-f $mani_path) {
open(MANI, '>', $mani_path) or die "Cannot create $mani_path: $!";
close(MANI);
}

# Create the build object # Create the build object
$build = new CKEditorPluginBuild(); $build = new CKEditorPluginBuild();


Expand Down

0 comments on commit f9b65d1

Please sign in to comment.