Recent

Author Topic: UPasConf 0.6.2 released  (Read 3365 times)

yamer

  • Jr. Member
  • **
  • Posts: 87
UPasConf 0.6.2 released
« on: February 26, 2014, 11:48:57 am »
UPasConf has been designed to create configuration programs in Pascal. It allows you to create programs that mimic the famous './configure' script.

http://yann.merignac.free.fr/unit-upasconf.html

exdatis

  • Hero Member
  • *****
  • Posts: 668
    • exdatis
Re: UPasConf 0.6.2 released
« Reply #1 on: February 26, 2014, 11:52:14 am »
Nice, thank you very much!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: UPasConf 0.6.2 released
« Reply #2 on: February 26, 2014, 04:11:44 pm »
How does this differ from fpmake?

yamer

  • Jr. Member
  • **
  • Posts: 87
Re: UPasConf 0.6.2 released
« Reply #3 on: February 26, 2014, 04:37:59 pm »
I don't know fpmake but from what I have read I think fpmake is a replacement for make. While UPasConf is a tool to replace the configure script (even if it can also generate makefiles).

With UPasConf you can create programs that accepts command line parameters similar to those of 'configure' scripts (ex: pasconf --prefix=/opt/myproject --enable-whatever-you-want). Then the program generate files by an included mini template engine. It has a template for generating a Makefile but you can generate what you want (limited to text files).

In fact with a proper template I think you can generate a fpmake program. In this case you build your project by :

Code: [Select]
user$ fpc pasconf
user$ ./pasconf --option-a option-b
user$ ./fpmake
« Last Edit: February 26, 2014, 04:42:49 pm by yamer »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: UPasConf 0.6.2 released
« Reply #4 on: February 27, 2014, 09:48:05 am »
Hmm...OK. Actually, fpmake is a replacement for both. It can configure and build given projects. Nevertheless, one might find UPasConf useful in certain cases.

yamer

  • Jr. Member
  • **
  • Posts: 87
Re: UPasConf 0.6.2 released
« Reply #5 on: February 27, 2014, 10:19:59 am »
You can look at some examples projects in the "examples" directory of UPasConf sources. You will see : fpc and lazarus projects, projects using different directory structures, a project with 2 binaries, how to install documentations files, ... In all those cases the program is less than 50 lines.

Simply enter in on example directory and do :
Code: [Select]
$ fpc pasconf
$ ./pasconf
$ make

You can also try "./pasconf -h" to see what can be configured by command line or "make help" to see all the make targets available.

For a more reallistic project you can look at http://yann.merignac.free.fr/data2pas.html.
« Last Edit: February 27, 2014, 10:23:04 am by yamer »

 

TinyPortal © 2005-2018