diff options
author | knu <knu@FreeBSD.org> | 2004-05-02 03:13:05 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2004-05-02 03:13:05 +0800 |
commit | f500e5825229c6c78d376f07ff2eab1273c18627 (patch) | |
tree | 898a59997174dfa56d13dc8f2acd84ac042d54dd | |
parent | fdf93eec14e8d0f6f658bc267458dcf72d89be54 (diff) | |
download | freebsd-ports-gnome-f500e5825229c6c78d376f07ff2eab1273c18627.tar.gz freebsd-ports-gnome-f500e5825229c6c78d376f07ff2eab1273c18627.tar.zst freebsd-ports-gnome-f500e5825229c6c78d376f07ff2eab1273c18627.zip |
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
-rw-r--r-- | misc/Makefile | 1 | ||||
-rw-r--r-- | misc/inplace/Makefile | 36 | ||||
-rw-r--r-- | misc/inplace/distinfo | 2 | ||||
-rw-r--r-- | misc/inplace/pkg-descr | 14 |
4 files changed, 53 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile index a847a6fd28c6..e038a8700f05 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -143,6 +143,7 @@ SUBDIR += histring SUBDIR += hotkeys SUBDIR += hulgalugha + SUBDIR += inplace SUBDIR += instant-server SUBDIR += instant-workstation SUBDIR += iselect diff --git a/misc/inplace/Makefile b/misc/inplace/Makefile new file mode 100644 index 000000000000..647a32301b97 --- /dev/null +++ b/misc/inplace/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: inplace(1) +# Date created: 2 May 2004 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= inplace +PORTVERSION= 1.0.1 +CATEGORIES= misc +MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \ + ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= knu + +MAINTAINER= knu@FreeBSD.org +COMMENT= A tool to edit files in-place through given filter commands + +USE_BZIP2= yes +USE_RUBY= yes + +MAKE_ARGS= PREFIX="${PREFIX}" +MAKEFILE= BSDmakefile + +MAN1= inplace.1 +MANCOMPRESSED= maybe +PLIST_FILES= bin/inplace + +RUBY_REQUIRE= Ruby > 180 + +.include <bsd.port.pre.mk> + +.if !defined(RUBY_PROVIDED) +IGNORE= only works with Ruby 1.8.0 or later +.endif + +.include <bsd.port.post.mk> diff --git a/misc/inplace/distinfo b/misc/inplace/distinfo new file mode 100644 index 000000000000..6887ffcbc6d1 --- /dev/null +++ b/misc/inplace/distinfo @@ -0,0 +1,2 @@ +MD5 (inplace-1.0.1.tar.bz2) = 9e37507000b72c5c42a93645b39f64e4 +SIZE (inplace-1.0.1.tar.bz2) = 10006 diff --git a/misc/inplace/pkg-descr b/misc/inplace/pkg-descr new file mode 100644 index 000000000000..226f1487f0cf --- /dev/null +++ b/misc/inplace/pkg-descr @@ -0,0 +1,14 @@ +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 + +Author: Akinori MUSHA <knu@iDaemons.org> +WWW: http://www.iDaemons.org/cgi-bin/viewcvs.cgi/?root=inplace |