nixpkgs/pkgs/stdenv/native/derivealiases-freebsd.sh
Sander van der Burg e38e9988a1 Added all necessary aliases to match the Linux stdenv as closely as possible on FreeBSD
svn path=/nixpkgs/branches/stdenv-updates/; revision=19795
2010-02-03 20:41:28 +00:00

50 lines
852 B
Bash

#!/bin/bash
for i in `cat /var/db/pkg/coreutils-*/+CONTENTS | grep "bin/g"`
do
name=`basename $i`
echo "alias ${name:1}='g${name:1}'"
done
echo
for i in `cat /var/db/pkg/diffutils-*/+CONTENTS | grep "bin/g"`
do
name=`basename $i`
echo "alias ${name:1}='g${name:1}'"
done
echo
for i in `cat /var/db/pkg/findutils-*/+CONTENTS | grep "bin/g"`
do
name=`basename $i`
echo "alias ${name:1}='g${name:1}'"
done
echo
for i in `cat /var/db/pkg/gmake-*/+CONTENTS | grep "bin/g"`
do
name=`basename $i`
echo "alias ${name:1}='g${name:1}'"
done
echo
for i in `cat /var/db/pkg/gsed-*/+CONTENTS | grep "bin/g"`
do
name=`basename $i`
echo "alias ${name:1}='g${name:1}'"
done
echo
for i in `cat /var/db/pkg/gtar-*/+CONTENTS | grep "bin/g"`
do
name=`basename $i`
echo "alias ${name:1}='g${name:1}'"
done
echo