WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: easy extension creation script - with automatic dependencies  (Read 2578 times)

Offline shimondoodkin

  • Newbie
  • *
  • Posts: 9
easy extension creation script - with automatic dependencies
« on: December 11, 2011, 09:57:25 AM »
I have developed an extension creation script
I hope I did not reinvented the wheel

Easy as:
cd /project_folder
tcext tools # loads extensions required to compile programs

tcext info #creates or edits tcext.info file in current directory

tcext configure --option  # same as ./configure --option
tcext make # same as #make

#put additional extension files in ./tcfiles, ex: tcfiles/etc/settings.conf.sample

#make an init script (to copy /etc/settings.conf.sample to /etc/settings.conf):

tcext script # to edit the init script
tcext install # same as #make install
#see the result tcz in ./tcout

#additionally you can use load / unload / reload to test your work
tcext load # copies the tcz to tce/optional and loads it
#also you can do
tcext unload # tries to unload the extention

# when you develop your extension, and you need to modify a file in ./tcfiles, you can do:
tcext reload # re-copies ./tcfiles ,  makes package, unloads, loads
#now you can try your extension again  ;)

https://github.com/shimondoodkin/tcext

test it && tell me what you think

I use it a lot since I've made it , I can compile every program I like and install it easily in minutes without thinking too much

Sometimes I find myself spending some time on preparing config samples and init d scripts
I try to get them from debian packages and adapt them to tiny core linux
« Last Edit: December 17, 2011, 09:17:53 PM by shimondoodkin »