Fixed via ``` codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml ```
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
#! python
|
|
# -*- coding: utf-8 -*-
|
|
# (c) 2003 Werner Mayer LGPL
|
|
# Create a new application module
|
|
|
|
import os,sys,string
|
|
import FCFileTools
|
|
import MakeAppTools
|
|
|
|
|
|
if(len(sys.argv) != 2):
|
|
sys.stdout.write("Please enter a name for your application.\n")
|
|
sys.exit()
|
|
|
|
Application = sys.argv[1]
|
|
|
|
# create directory ../Mod/<Application>
|
|
if not os.path.isdir("../Mod/"+Application):
|
|
os.mkdir("../Mod/"+Application)
|
|
else:
|
|
sys.stdout.write(Application + " already exists. Please enter another name.\n")
|
|
sys.exit()
|
|
|
|
|
|
# copying files from _TEMPLATE_ to ../Mod/<Application>
|
|
sys.stdout.write("Copying files...")
|
|
MakeAppTools.copyTemplate("_TEMPLATE_","../Mod/"+Application,"_TEMPLATE_", Application)
|
|
sys.stdout.write("Ok\n")
|
|
|
|
# replace the _TEMPLATE_ string by <Application>
|
|
sys.stdout.write("Modifying files...\n")
|
|
MakeAppTools.replaceTemplate("../Mod/" + Application,"_TEMPLATE_",Application)
|
|
# make the configure script executable
|
|
#os.chmod("../Mod/" + Application + "/configure", 0777);
|
|
sys.stdout.write("Modifying files done.\n")
|
|
|
|
sys.stdout.write(Application + " module created successfully.\n")
|