Sponsored Content
Top Forums Shell Programming and Scripting Yet another simple script installer Post 302951212 by sea on Tuesday 4th of August 2015 03:02:27 AM
Old 08-04-2015
Yet another simple script installer

Heyas

Just recently i tried to apply the GNU Autotools to my project, while it was possible, it took forever to know where to create which files and what to place in each of them.
Dare you making a space rather than a tab!

Inspired by GNU Autotools, and overhelmed by its functionality and complexety, i wanted something simpler, smaller, quicker for my smaller projects - that do no require compiling.

While i do respect and honor their work, for a 'simple script project' the Autotools are somewhat overpowered and hard to handle.
While i consider myselft a fast adapter/learner, and thinking about how much trouble i had, i could imagine others having more trouble with the GNU Autotools.

So, YASSI was born.
  • It creates 3 make-* files, and a 'reference' file - doRef=true will install it to /etc/$APP.conf
  • make-distclean, would remove the just created files, cleaning up your project dir
  • make-install, well does the installation
  • make-uninstall, removes the installed files

Code:
https://github.com/sri-arjuna/yassi

Example config:
Code:
APP="dev-scripts"
BINDIR=bin
DOCDIR=docs
MAN1DIR=man
DATADIR="./incl ./menu ./templates"
COMPLDIR=${APP}_compl.bash
BUGS="erat.simon@gmail.com"
ISSUE="https://github.com/sri-arjuna/dev-scripts/issues"
doRef=true

Video:
https://www.youtube.com/watch?v=KhuariqAL2k

Since this tool/google+ post has had more shares and likes in less time than any of my other posts (on G+) i thought i'd share it here for those without G+.

Hope you like it.
Have fun!

Last edited by sea; 08-04-2015 at 04:07 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Installer script -- function not found error

I am writing an installation script on AIX. This involves typical checks of some pre requisites like java, oracle, some version checks, disk space etc. It is a long script. I am facing a strange problem. There are a no of functions used in the script. What I see is that the installer complains of... (1 Reply)
Discussion started by: asutoshch
1 Replies

2. Gentoo

Unix OS Installer

Hey Guys, Can somebody help me get a unix OS installer (preferably no charge)? Can I install it on intel pc? I got a copy of unix installer a year ago and tried installing it on an intel pc but I can't get it done although I was already following instructions. Slick (42 Replies)
Discussion started by: Slick
42 Replies

3. UNIX for Dummies Questions & Answers

Installer script needs to determine own location...

My n00b question: I am trying to write a script that I can place on a flash drive and then move from computer to computer and install a file, which is bundled with the script. (ie the script is at /Volumes/FlashDrive/Folder/Script, the file is at /Volumes/FlashDrive/Folder/File) So far I have... (1 Reply)
Discussion started by: madmacs
1 Replies

4. UNIX for Advanced & Expert Users

Create an installer

I have a software bundle for which I want to create an installer. One of the things I am also looking at, is to be able to install this straight from a CD or any external storage device. How do I go about creating one? This is for Linux. Any advice is welcome !! -- garric (3 Replies)
Discussion started by: garric
3 Replies

5. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies

6. Linux

How to execute a simple select script using a shell script?

Hi team, I have two select statements and need to run them using SYSDBA user select * from temp_temp_seg_usage; select segment_name, tablespace_name, bytes/ (1024*1024) UsedMb from dba_segments where segment_name='TEMP_TEMP_SEG_USAGE'; Need to run this using a shell script say named... (1 Reply)
Discussion started by: pamsy78
1 Replies

7. Shell Programming and Scripting

Xfce installer script

Xfce desktop installer script on Ubuntu for home, office or server computers. This script installs Xfce desktop and a set of programs according to user needs starting from an Ubuntu Server base system. It's valid for netbooks, notebooks, desktop computers and servers. For more information... (1 Reply)
Discussion started by: cesar-rgon
1 Replies

8. OS X (Apple)

Installer issue

Hi, I have a little problem with an Installer. In my script I have a section that place a keyboard shortcut: #!/usr/bin/perl ################################################################################ # # Create Desktop shortcut for Swedish Menu Commands Document #... (1 Reply)
Discussion started by: peli
1 Replies

9. Shell Programming and Scripting

Installer is shell script not working

Hi Guys, I have one installer shell script which normally get from the dev team to install the app and it works fine for years (in IAX) the same installer/script iam trying to run in Linux 7.2 but it stuck somewhere which I cannot debug, can you help me to point out where it stuck . here is the... (9 Replies)
Discussion started by: Riverstone
9 Replies

10. Shell Programming and Scripting

YASSI - Yet Another Simple Script Installer (2020 edition)

Heyas As someone said he'd like to see some more projects posts on the forum, so, here's one I hope is ready. Not so much fun-fun, but practical ;) I hope... So, you have that small non-arch project you would like to install, but get the feeling that GNU Autoconf is a bit too 'massive' for... (2 Replies)
Discussion started by: sea
2 Replies
HTCONFIG(1)						       GLOBAL cgi Utilities						       HTCONFIG(1)

NAME
htconfig - create/update GLOBAL gsearch.cgi files SYNOPSIS
htconfig -I [-v] [-z] [-a action] [-p pathdb] cgidir htconfig --install [--verbose] [--makeghtml] [--formaction=cgi] [--pathdb=paths-file] cgidir htconfig [-v] [-u url] [-d GTAGSDBPATH] [-s GTAGSROOT] [htmldir] htconfig [--verbose] [--url=base-url] [--tags=GTAGSDBPATH] [--src=GTAGSROOT] [htmldir] DESCRIPTION
htconfig is a program to create and maintain a centralised cgi interface for hypertext created with Shigio Yamaguchi's GLOBAL source code tag system. htconfig is used to create the necessary scripts in your system's favoured cgi-bin directory, and to maintain the paths database, which gsearch.cgi uses to locate your hypertext source and the associated TAGS files. This enables GLOBAL's hypertext search facilities without requiring you to enable cgi execution outside of a system-wide cgi-bin directory. htconfig acts as a backend for the htmake(1) script which automates the process of generating hypertext source with the relevant options to htags(1) and adding required entries to the paths database. htconfig can also optionally create a centralised ghtml.cgi script, for users of the htags -c option which creates compressed hypertext with a .ghtml suffix. OPTIONS
Common Options -v, --verbose uh, you get one guess. Install Options These options are to be used during the initial installation of the centralised cgi mechanism. If you installed this as a binary package you probably won't need to use these and can skip to the next section. Otherwise you must run htconfig --install with any or all of the following options before using htmake(1) or any of the Database Options of htconfig. -I, --install Creates gsearch.cgi in cgidir and creates the config file /etc/gtags/htmake.conf if it doesn't already exist. You must specify cgidir, there is no default. -a action, --formaction=action Puts the default submit action for hypertext created with htmake(1) into /etc/gtags/htmake.conf when that file is created. You can edit htmake.conf at any time to change it, or override its setting from the command line. Setting this to the absolute url of gsearch.cgi on your system is probably what you want here unless you understand why not. eg. --formaction=http://host/cgi-bin/gsearch.cgi -p paths-database, --pathdb=paths-database Puts the filesystem location of the paths database file into /etc/gtags/htmake.conf when that file is created. You must define a location for the paths database either with this option or by editing the GSPATHDATA option in htmake.conf before using htmake(1) or the Database options of htconfig(1). Due to file system variations there is no default for this. For Debian GNU/Linux systems the preferred location is: /var/lib/gsearch/pathdata One suggestion for *BSD systems would be: /var/gsearch/pathdata -z, --makeghtml Installs the ghtml.cgi script in cgidir. You will also need edit your http server config to make use of this. For apache this in- volves ensuring mod_mime and mod_actions are loaded and adding lines like: AddHandler htags-gzipped-html ghtml Action htags-gzipped-html /cgi-bin/ghtml.cgi to your httpd.conf file. Database Options These options are used to configure and maintain the path database that allows gsearch.cgi to find your hypertext source and it's tag files. You should call htconfig with these options when you move files or create a new hypertext source tree with htags(1). The path database requires the hypertext source to be generated with a unique id using the htags --id=someid option. When creating a new hypertext source tree you may prefer to use htmake(1) which invokes htags with the desired options and then calls ht- config to update the path database as a single operation. htmldir specifies the filesystem path to the root of your hypertext source tree. It defaults to ./HTML in line with htags(1) defaults and is not required at all if the --url option is used and your system has lynx(1) availiable, -u base-url, --url=base-url the base url of your hypertext source. For best results always use absolute url's here. eg. http://host/~user/mysource It defaults to file:/htmldir -d gtagsdbpath, --tags=gtagsdbpath the filesystem path to the GTAGS files associated with your source. It defaults to the current directory. -s gtagsroot, --src=gtagsroot the filesystem path to the root of your original plaintext source tree. It defaults to the current directory. EXAMPLES
To initialise and install cgi and config files: # htconfig -I -a http://host/cgi-bin/gsearch.cgi -p /var/lib/gsearch/pathdata /usr/lib/cgi-bin To generate hypertext and update path database: $ cd /usr/src/myprog $ gtags $ htags --action=http://host/cgi-bin/gsearch.cgi --id=uniqueid --nocgi $ htconfig or more simply: $ cd /usr/src/myprog $ gtags $ htmake To update the path database if you relocate your hypertext, TAGS files, or the original program source: $ htconfig -u new-url -d new-gtagsdbpath -s new-gtagsdbroot newhtmldir some of these option may be inferred - See their defaults under Database Options The user running htconfig or htmake must have write permission for the path database. FILES
/etc/gtags/htmake.conf gsearch.cgi ghtml.cgi path database BUGS
htconfig currently has no automatic housekeeping mechanism for 'stale' database entries. This should be fixed RSN. There is presently no file locking mechanism for database updates. Attempting simultaneous updates could prove 'surprising' ^_^ This is alpha software - expect anything! SEE ALSO
htmake(1), htags(1), global(1). AUTHOR
Ron Lee <ron@debian.org> CREDITS
Thanks to Shigio Yamaguchi <shigio@gnu.org> for creating GLOBAL and releasing it as free software. A truly cool productivity tool! Debian GNU/Linux 27 March 1999 HTCONFIG(1)
All times are GMT -4. The time now is 11:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy