GithubHelp home page GithubHelp logo

neurobin / tartos Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 2.0 47 KB

TAR archive to shell script converter

Home Page: http://neurobin.github.io/tartos

License: GNU General Public License v3.0

Shell 39.72% HTML 36.69% Roff 23.59%
tar-archive shell tartos-script installer-script installer self-extracting-script self-extracting-shell-script

tartos's Introduction

tartos


TAR to shell script


The tartos script is a standalone bash shell script which binds different type of TAR archives to a single shell script (bash). This kind of approach is generally adopted to make a single install scipt from an existing tar archives with executable or installable software. It can be used to make a self extracting archive/installer which does some additional jobs like installing softwares, compared to the conventional tar archive files. The tartos script itself is written in bash and thus depends on it and on the package tar.

Supported TARs:

.tar
.tar.lz
.tar.lzo
.tar.lzma
.tar.gz
.tar.xz
.tar.bz2

Install:

From source:

It can be installed by giving the "install" file execution permission and running it in terminal.

For Ubuntu:

sudo apt-add-repository -y ppa:neurobin/ppa
sudo apt-get update
sudo apt-get install tartos

Usage:

tartos archive scriptname

Advanced usage:

tartos archive scriptname "commands" -o outputdir

outputdir is a directory which will be bound inside the shell script so that whent the script runs the erntire content will be put in that directory. It can be a install directoy like /opt , /usr/local etc..

  1. It can take upto four arguments, the first argument is a tar archive, second one is the name of the target script file, third one is custom command and the 4th argument is [-o outdir]
  2. [-o outdir] can take any position as long as the sequence of the first three argument is maintained. -o and -O is equivalent
  3. output directory can be specified without -o too. In that case all the arguments are mandatory.
  4. It will ask for necessary arguments/info as it needs on the way.
  5. Give commands inside quotation mark: double quotation is recommended
  6. Best way of giving custom command is to write them in another script and put that script as a command into tartos command input. This script should reside in the tar archive itself and thus will be run after the archive is extracted (works like a post extract hook).

Examples:

First form:

~$ tartos
Enter the path of the tar archive: 

Second form:

tartos *.tar.bz2 install-me.sh

Third form:

tartos *.tar.bz2 install-me.sh './internal-installer.sh'

Fourth form:

tartos -o outputdir *.tar.bz2 install-me.sh "./internal-installer.sh"

Fifth form:

tartos *.tar.xz install-me.sh "./internal-installer.sh" outdir

tartos's People

Contributors

neurobin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.