From: Rafał Długołęcki Date: Fri, 22 Mar 2013 17:22:14 +0000 (+0100) Subject: Added simple script for creating basic drupal module template. X-Git-Tag: 0.1~2 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=d4f000489d605ed50fcf405c3db18b2eb86236ac;p=prj-utils.git Added simple script for creating basic drupal module template. --- diff --git a/prj-create-module-drupal b/prj-create-module-drupal new file mode 100755 index 0000000..1aa5284 --- /dev/null +++ b/prj-create-module-drupal @@ -0,0 +1,34 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +my $name = shift; + +unless ($name) { + die < $name/$name.info"); +open (MODULE, "> $name/$name.module"); +open (README, "> $name/README"); + +print INFO "name = " . ucfirst($name) . " +description = The Great new " . ucfirst($name) . " module! +version = 0.1 +core = 7.x +"; + +print MODULE "