# HG changeset patch # User Lucas Levrel # Date 1453149789 -3600 # Node ID 76d0acbe919dbc89c7524fad2b3a176d33b0a637 # Parent 4ba93d7db933b05b81e4008fb52ba2e627b32e4a Add mmv (move/copy/append/link multiple files) diff -r 4ba93d7db933 -r 76d0acbe919d mmv/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmv/description.txt Mon Jan 18 21:43:09 2016 +0100 @@ -0,0 +1,8 @@ +This is mmv, a program to move/copy/append/link multiple files according to a +set of wildcard patterns. All csh wildcards ('*', '?', '['...']', and '~') are +supported. This multiple action is performed safely, i.e. without any +unexpected deletion of files due to collisions of target names with existing +filenames or with other target names. Furthermore, before doing anything, mmv +attempts to detect any errors that would result from the entire set of actions +specified and gives the user the choice of either aborting before beginning, or +proceeding by avoiding the offending parts. diff -r 4ba93d7db933 -r 76d0acbe919d mmv/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmv/receipt Mon Jan 18 21:43:09 2016 +0100 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="mmv" +VERSION="1.01b-18" +CATEGORY="system-tools" +SHORT_DESC="Move, copy, append, or link multiple files in one command" +MAINTAINER="Lucas Levrel " +LICENSE="GPL" +WEB_SITE="https://packages.debian.org/sid/mmv" +TARBALL="${PACKAGE}_${VERSION%-*}.orig.tar.gz" +WGET_URL="http://http.debian.net/debian/pool/main/m/mmv/$TARBALL" + +DEPENDS="" +BUILD_DEPENDS="" + +# Rules to configure and make the package. +compile_rules() +{ + wget http://http.debian.net/debian/pool/main/m/mmv/${PACKAGE}_$VERSION.debian.tar.gz + tar -xzf ${PACKAGE}_$VERSION.debian.tar.gz debian/patches/ + cat debian/patches/series | while read file; do + patch -p1 < debian/patches/$file + done + sed -i '/^CFLAGS/s/=-O2/+=/; /^LDFLAGS/s/-N//' Makefile + mkdir -p $install/usr/bin $install/usr/share/man/man1 + make && make install + cd $install/usr/bin + ln -s mmv mcp + ln -s mmv mad + ln -s mmv mln +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs + rm -r $fs/usr/share +}