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
NPM(1)                                                                                                                                      NPM(1)

NAME
npm - javascript package manager SYNOPSIS
npm <command> [args] VERSION
6.7.0 DESCRIPTION
npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently. It is extremely configurable to support a wide variety of use cases. Most commonly, it is used to publish, discover, install, and develop node programs. Run npm help to get a list of available commands. IMPORTANT
npm is configured to use npm, Inc.'s public registry at https:// by default. Use of the npm public registry is subject to terms of use available at https:// You can configure npm to use any compatible registry you like, and even run your own registry. Use of someone else's registry may be gov- erned by their terms of use. INTRODUCTION
You probably got npm because you want to install stuff. Use npm install blerg to install the latest version of "blerg". Check out npm help npm-install for more info. It can do a lot of stuff. Use the npm search command to show everything that's available. Use npm ls to show everything you've installed. DEPENDENCIES
If a package references to another package with a git URL, npm depends on a preinstalled git. If one of the packages npm tries to install is a native node module and requires compiling of C++ Code, npm will use node-gyp https://github.com/TooTallNate/node-gyp for that task. For a Unix system, node-gyp https://github.com/TooTallNate/node-gyp needs Python, make and a buildchain like GCC. On Windows, Python and Microsoft Visual Studio C++ are needed. Python 3 is not supported by node-gyp https://github.com/TooTallNate/node-gyp. For more information visit the node-gyp repository https://github.com/TooTallNate/node-gyp and the node-gyp Wiki https://github.com/TooTallNate/node-gyp/wiki. DIRECTORIES
See npm help 5 npm-folders to learn about where npm puts stuff. In particular, npm has two modes of operation: o global mode: npm installs packages into the install prefix at prefix/lib/node_modules and bins are installed in prefix/bin. o local mode: npm installs packages into the current project directory, which defaults to the current working directory. Packages are installed to ./node_modules, and bins are installed to ./node_modules/.bin. Local mode is the default. Use -g or --global on any command to operate in global mode instead. DEVELOPER USAGE
If you're using npm to develop and publish your code, check out the following help topics: o json: Make a package.json file. See npm help 5 package.json. o link: For linking your current working code into Node's path, so that you don't have to reinstall every time you make a change. Use npm link to do this. o install: It's a good idea to install things if you don't need the symbolic link. Especially, installing other peoples code from the reg- istry is done via npm install o adduser: Create an account or log in. Credentials are stored in the user config file. o publish: Use the npm publish command to upload your code to the registry. CONFIGURATION
npm is extremely configurable. It reads its configuration options from 5 places. o Command line switches: Set a config with --key val. All keys take a value, even if they are booleans (the config parser doesn't know what the options are at the time of parsing). If no value is provided, then the option is set to boolean true. o Environment Variables: Set any config by prefixing the name in an environment variable with npm_config_. For example, export npm_con- fig_key=val. o User Configs: The file at $HOME/.npmrc is an ini-formatted list of configs. If present, it is parsed. If the userconfig option is set in the cli or env, then that will be used instead. o Global Configs: The file found at ../etc/npmrc (from the node executable, by default this resolves to /usr/local/etc/npmrc) will be parsed if it is found. If the globalconfig option is set in the cli, env, or user config, then that file is parsed instead. o Defaults: npm's default configuration options are defined in lib/utils/config-defs.js. These must not be changed. See npm help 7 npm-config for much much more information. CONTRIBUTIONS
Patches welcome! If you would like to contribute, but don't know what to work on, read the contributing guidelines and check the issues list. o CONTRIBUTING.md https://github.com/npm/cli/blob/latest/CONTRIBUTING.md o Bug tracker https://npm.community/c/bugs o Support tracker https://npm.community/c/support BUGS
When you find issues, please report them: o web: https://npm.community/c/bugs Be sure to follow the template and bug reporting guidelines. You can also ask for help in the support forum https://npm.community/c/support if you're unsure if it's actually a bug or are having trouble coming up with a detailed reproduction to report. AUTHOR
Isaac Z. Schlueter http://blog.izs.me/ :: isaacs https://github.com/isaacs/ :: @izs https://twitter.com/izs :: i@izs.me SEE ALSO
o npm help help o README o npm help 5 package.json o npm help install o npm help config o npm help 7 config o npm help 5 npmrc o npm help 7 index January 2019 NPM(1)
All times are GMT -4. The time now is 12:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy