From d02c0fdb37497a5a59c57b43d538ee3a1a0ba5b3 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 12 Sep 2004 13:26:23 +0000 Subject: [PATCH] Clifford Wolf: Added 'shuffle' script to coreutils [2004090519512420322] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4156 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/coreutils/coreutils.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/base/coreutils/coreutils.conf b/package/base/coreutils/coreutils.conf index cd26a8653..27f1fc4ab 100644 --- a/package/base/coreutils/coreutils.conf +++ b/package/base/coreutils/coreutils.conf @@ -43,6 +43,10 @@ coreutils_postmake() { done rm -f $root/usr/bin/ginstall ln -s install $root/usr/bin/ginstall + + echo '#!/usr/bin/perl' > $root/usr/bin/shuffle + echo '$_{rand()." ".$_}=1 while(<>);foreach(keys%_){s/^\S+ //;print;}' >> $root/usr/bin/shuffle + chmod +x $root/usr/bin/shuffle } if [ $stagelevel -ge 3 -a -f $root/var/adm/flists/acl ]; then