From d4f000489d605ed50fcf405c3db18b2eb86236ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Fri, 22 Mar 2013 18:22:14 +0100 Subject: [PATCH] Added simple script for creating basic drupal module template. --- prj-create-module-drupal | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 prj-create-module-drupal 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 "