https://github.com/eriknyquist/massinstall
simple utility to call UNIX "install" for multiple files, based on a configuration file
https://github.com/eriknyquist/massinstall
bash install utility
Last synced: 10 months ago
JSON representation
simple utility to call UNIX "install" for multiple files, based on a configuration file
- Host: GitHub
- URL: https://github.com/eriknyquist/massinstall
- Owner: eriknyquist
- License: apache-2.0
- Created: 2018-03-26T01:14:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T01:46:20.000Z (over 7 years ago)
- Last Synced: 2025-01-11T05:28:27.153Z (12 months ago)
- Topics: bash, install, utility
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
massinstall
===========
This bash script simply reads file paths and modes from a text file,
and calls the UNIX "install" program for each one. I created it for use in
projects where multiple configuration files need to be copied from the source
tree onto the system as part of the installation process.
This script just saves me a bit of time in automating the process, if there are
a large number of files that need to be copied. Nothing fancy.
Installation
============
::
install -m 777 massinstall /usr/bin/massinstall
Usage
=====
Pass in a configuration file when running ``massinstall``:
::
massinstall files_to_install.conf
The configuration file should contain newline-seperated entries, where each
line looks like this:
::
/src/path /dest/path [mode]
* ``/src/path``: path to the source file
* ``/dest/path``: the destination path
* ``mode``: optional file mode. If not specified, the file mode will be set to
666 (read and write for all users).
Empty lines and lines beginnning with a '#' are ignored
Example configuration file
--------------------------
::
file1.txt /etc/file1.txt
file2 /bin/file2 777