Script I used to derive the aliases on OpenBSD

svn path=/nixpkgs/branches/stdenv-updates/; revision=19815
This commit is contained in:
Sander van der Burg 2010-02-04 13:49:51 +00:00
parent 318091ed2b
commit a879785099

View File

@ -0,0 +1,58 @@
#!/bin/bash
for i in `cat /var/db/pkg/fileutils-*/+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/gdiff-*/+CONTENTS | grep "bin/g"`
do
name=`basename $i`
echo "alias ${name:1}='g${name:1}'"
done
echo
for i in `cat /var/db/pkg/ggrep-*/+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