File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
# !/usr/bin/perl
2
+ use Cwd;
2
3
3
4
# ####################################################
4
5
# A script to automate creation of a new QGIS plugin
8
9
# ####################################################
9
10
# $Id$ #
10
11
12
+ # make sure we are in a the plugins directory otherwise the changes this script will make will
13
+ # wreak havoc....
14
+ $myDir = fastgetcwd;
15
+ print " \n\n Checking that we are in the <qgis dir>/src/plugins/ directory...." ;
16
+ if ($myDir =~ m / src\/ plugins$ / ) {
17
+ print " yes\n " ;
18
+ }else {
19
+ print " no\n " ;
20
+ print $myDir ;
21
+ print " \n Please relocate to the plugins directory before attempting to run this script.\n " ;
22
+ exit ;
23
+ }
11
24
# get the needed information from the user
12
25
print " \n\n Enter the directory name under qgis/src/plugins/ where your new plugin will be created.\n " ;
13
26
print " We suggest using a lowercase underscore separated name e.g. clever_plugin\n " ;
You can’t perform that action at this time.
0 commit comments