From 211b52d2ab5ebd670632ac2ee997701b60c5e582 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sat, 1 May 2004 19:13:05 +0000 Subject: 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 --- misc/Makefile | 1 + misc/inplace/Makefile | 36 ++++++++++++++++++++++++++++++++++++ misc/inplace/distinfo | 2 ++ misc/inplace/pkg-descr | 14 ++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 misc/inplace/Makefile create mode 100644 misc/inplace/distinfo create mode 100644 misc/inplace/pkg-descr (limited to 'misc') 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 +# +# $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 + +.if !defined(RUBY_PROVIDED) +IGNORE= only works with Ruby 1.8.0 or later +.endif + +.include 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 +WWW: http://www.iDaemons.org/cgi-bin/viewcvs.cgi/?root=inplace -- cgit v1.3