Giter VIP home page Giter VIP logo

install-mimic's Introduction

install-mimic โ€” overwrite and preserve ownership

Description

The install-mimic utility copies the specified files to the specified destination (file or directory) similarly to install(1), but it preserves the ownership and access mode of the destination files. This is useful when updating files that have already been installed with locally modified copies that may be owned by the current user and not by the desired owner of the destination file (e.g. root).

Examples:

Overwrite a system file with a local copy:

install-mimic ./install-mimic.pl /usr/bin/install-mimic

Overwrite several files with local copies with the same name:

install-mimic cinder/*.py /usr/lib/python2.7/dist-packages/cinder/

Install a new file similar to a system file:

install-mimic -v -r /usr/bin/install-mimic install-none /usr/bin/

Download

The source of the install-mimic utility may be obtained at its devel.ringlet.net homepage. It is developed in a GitHub Git repository.

Version history

0.4.0 (2018-05-04)

  • Add the --help and --version long options.
  • Add the --features long option.

0.3.1 (2017-09-29)

  • In testing, get the file group from a new file created in the test directory to fix the case of enforced setgid directories.
  • Create the test temporary directory in the system's temporary path to avoid future weird situations like the setgid case.

0.3.0 (2017-02-27)

  • Add a Rust implementation.
  • Fix a memory allocation bug in the C implementation leading to destination filename corruption when the target specified on the command line is a directory.

0.2.0 (2016-06-29)

  • Explicitly test the Perl 5 implementation in the "test" target.
  • Add tests for the -r reffile and -v command-line options.
  • Let the tests continue if an expected file was not created.
  • Add a C implementation.

0.1.1 (2016-06-28)

  • Add the internal "dist" target for creating distribution tarballs.
  • Add a test suite.
  • Reorder the functions a bit to avoid prototype declarations.
  • Make the usage() function fatal by default.
  • Add a Travis CI configuration file and a cpanfile.
  • Move development from GitLab to GitHub.
  • Switch the homepage URL to HTTPS.

0.1.0 (2015-06-02)

  • First public release.

Contact

Peter Pentchev [email protected]

install-mimic's People

Contributors

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