This linux/mac utility converts a directory to self extractable script.
- Given input directory ( IN is converted to a tar.gz file ( IN.tar.gz ).
- The tar.gz file (IN.tar.gz) is then embedded in to a bash script ( OUT.tar.sh ) with self extraction feature.
- This self extractable tar script ( OUT.tar.sh ) can be transported to any linux computer/device and extracted.
- Just execute "./OUT.tar.sh"
- You will find directory (IN) in the current working directory.
- Clone this repo and enter the repo directory
- cd src
- sudo ./install.sh #if you have root permission directly execute ./install.sh
- Clone this repo and enter the repo directory
- cd src
- sudo ./uninstall.sh #if you have root permission directly execute ./uninstall.sh
$dir2sh <director_name - with full path>
$dir2sh /home/test test.tar.sh
This command compress the directory (/home/test) to test.tar.sh
$dir2sh "*" curr_dir.tar.sh
This command compress all contents of current directory to curr_dir.tar.sh
This utility is useful to transport directory as a self extractable package/script between linux/mac systems.