0.0.4 • Published 8 years ago

newer-than v0.0.4

Weekly downloads
5
License
-
Repository
github
Last release
8 years ago

Install

npm install -g newer-than

Features

  • compare more than 2 files
  • based on default compare file1 -nt file2
  • no error if file not exists
  • command or bash function if sourced (. /usr/local/bin/newer-than)

Usage

usage: newer-than file1 file2 ...

Example

# real example: create new sdist if package content changed
$ python setup.py sdist
$ echo $md5 | tee dist/md5.txt # save .tar.gz md5
$ ...
$ set -- py_modules/ scripts/ setup.py # your package content paths
$ newer-than dist/md5.txt "$@" && echo "package content changed" || exit 0
# inc version, upload to pypi.python.org, npmjs.com :)

Examples/

Sources:

Feedback GitHub issues Join the chat at https://gitter.im/russianidiot/newer-than.sh.cli GitHub followers


0.0.4

8 years ago