The inplace(1) command is a utility to edit files in-place through
given filter commands preserving the original file attributes. Mode
and ownership (user and group) are preserved by default, and time
(access and modification) by choice.
Examples:
# Sort files in-place using sort(1):
inplace sort file1 file2 file3
# Process image files preserving time and taking backup files:
inplace -t -b.orig 'convert -rotate 270 -resize 50%% %1 %2' *.jpg
*: Fix WWW with broken anchors-as-comments
Case 1: WWW=https://example.com#foo
Here #foo is not part of the value of WWW since # introduces a comment
whether it's part of a word or not (quoting the word+# makes no
difference either). # needs to be escaped:
WWW=https://example.com\#foo
Case 2: WWW=https://example.com #foo
This is probably fallout from when WWW was moved from pkg-descr to
Makefile.
The anchors still exist on the actual websites too or I removed them.
Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk
Notable changes are.
- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.
This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863
I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D37925
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
misc: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* Aaron Dalton <aaron@FreeBSD.org>
* Adam Weinberger <adam@vectors.cx>
* Adam Weinberger <adamw@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan E <alane@FreeBSD.org>
* Alex Semenyaka <alex@rinet.ru>
* Alex Stangl <alex@stangl.us>
* Alexander Logvinov <avl@FreeBSD.org>
* Alexander Logvinov <ports@logvinov.com>
* Alexander Nusov <alexander.nusov@nfvexpress.com>
* Alexander Timoshenko <gonzo@univ.kiev.ua>
(Only the first 15 lines of the commit message are shown above )
MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
Remove indefinite articles and trailing periods from COMMENT, plus minor
COMMENT typos and surrounding whitespace fixes. A few Makefiles where not
included as they contain Latin-1 characters that break the Phabricator
workflow. Category M.
CR: D306
Approved by: portmgr (bapt)
Update to 1.1.0.
- Add -D/--debug and adjust the verbosity level.
- Show before and after file sizes when -v is specified.
- Introduce a configuration file in which command aliases can be
defined.
- Add -i/--preserve-inode so inode numbers are preserved even when -b
or -s is specified.
Add misc/inplace.
The inplace(1) command is a utility to edit files in-place through
given filter commands preserving the original file attributes. Mode
and ownership (user and group) are preserved by default, and time
(access and modification) by choice.
Examples:
# Sort files in-place using sort(1):
inplace sort file1 file2 file3
# Process image files preserving time and taking backup files:
inplace -t -b.orig 'convert -rotate 270 -resize 50%% %1 %2' *.jpg