Sponsored Content
Top Forums UNIX for Advanced & Expert Users Simple (un-)installation of scripts using YASSI Post 302951707 by sea on Monday 10th of August 2015 12:02:17 AM
Old 08-10-2015
Simple (un-)installation of scripts using YASSI

Heyas

Recently i've been 'fighting' with the GNU Autotools (autoconf, automake) to distribute one of my script based projects.
Figured that these tools are very powerfull, and therefor can be very hard to learn/master.

This said, a new personal project was started, inspired by the GNU Autotools, but focus' only on copying files to predefined places.
For this reason, it only requires a single configuration file.

If your target audience is a GNU/FHS compatible environment, you might want to try YASSI - Yet another simple script installer.

What is it all about?
Once called:
Code:
./configure [--prefix=/usr]

It creates:
  • make-install
  • make-uninstall
  • make-distclean
I let you guess what they do... Smilie

On first use, i recomend to use ./configure --sample-full for the comments in the view, where as advanced users will probably prefer ./configure --sample > configure.cfg

To simplify the the installation task, it copies directories recursivly, preserving permissions set (cp -ar).

Preview: Screenshot

TODO:
There is one thing i'll add as soon i 'fully' (as in 'enough') understand it.
The automization for placing the *po (and sub-related stuff) files.

BUGS:
This said, for basic instructions, please read the README.
If you have bugs or suggestions and have a github account, please raise an ISSUE or drop a line here otherwise.

Hope this helps and have fun Smilie

Last edited by sea; 08-10-2015 at 01:08 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

two simple question on shell scripts....

:D my first question is how can envoke filename expansion from within a shell script.. forinstance if i execute the script and it asks for a specific directory that i would like to cd to, how can i get the script to use the same file name expension as the command line.. my second question is how... (3 Replies)
Discussion started by: moxxx68
3 Replies

2. Solaris

installation of Solaris: installation bypasses network config.

hello solaris friends, I've tried installing Sun Solaris 10.0, but everytime it seems to bypass the network config. screen that looks similar to this...here's the url: http://www.hup.hu/old/images/hup/Solaris/Sol10beta7/9.png I'm able to install it all the way through but I get no... (2 Replies)
Discussion started by: cadmiumgreen
2 Replies

3. Shell Programming and Scripting

simple shell scripts

hi everyone... i'm new to this shell programming and i want help with the following question... i hope someone can help me ...pls plsssssssssss ========================================================== the question ========================================================== A number of... (1 Reply)
Discussion started by: moon14
1 Replies

4. Shell Programming and Scripting

Need a simple file based utilty for shell scripts

Hello, I'm wondering if you may know of a simple file based UNIX utility that can be used to store and retrieve values on a flat file, let's say i have a file called "kru", i'd like to be able to specify a request like: while(....) if ; then kru.fld2 = $rec_cnt kru.fld3 =... (4 Replies)
Discussion started by: bobk544
4 Replies

5. Shell Programming and Scripting

Changing the Bash Scripts to Bourne Scripts:URGENT

Hi, I have to write a program to compute the checksums of files ./script.sh I wrote the program using bash and it took me forever since I am a beginner but it works very well. I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies

6. Shell Programming and Scripting

KSH - How to call different scripts from master scripts based on a column in an Oracle table

Dear Members, I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc. I would like to create a script which will will call other scripts based on the request action. Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies

7. 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

8. UNIX for Dummies Questions & Answers

Create a simple web portal/GUI to execute scripts?

Very new to this..... What I would like to do: Create a simple GUI/Web portal with 3 buttons and 1 text field The three buttons need to take the input into the text field and use that as the variable to execute scripts located on a server Problem: How can i get the buttons on the... (3 Replies)
Discussion started by: poops
3 Replies

9. Red Hat

Syslog.conf: looking for a simple answer on a simple question

Cheers! In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not? To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 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 06:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy