Tuesday, March 17, 2009

Checking a script for Bashisms on FreeBSD

First you need to read the web page DashAsBinSh. It will explain a lot.

1. Then install 'archivers/dpkg' from ports.
2. Then download the deb package from the bottom of this page - devscripts
---- I picked the x86 package.
3. Then unarchive the downloaded deb packed to a temporary directory,
---- dpkg -X devscripts_2.10.26ubuntu15_i386.deb tempdirname.
4. The files that are needed are
---- tempdir/usr/bin/checkbashisms
---- tempdir/usr/share/man/man1/checkbashisms.1.gz
5. copy these files to the appropiate location in /usr/local
6. Now you can delete the packges installed by step 1, just be sure they aren't need by other packages
---- devel/p5-ExtUtils-CBuilder
---- devel/p5-ExtUtils-ParseXS
---- textproc/p5-YAML
---- devel/p5-Module-Build
---- devel/p5-Term-ReadKey
---- textproc/libtext-charwidth-perl
---- textproc/libtext-wrapi18n-perl
---- textproc/p5-SGMLSpm
---- textproc/po4a
---- devel/patch
---- sysutils/coreutils
---- archivers/dpkg

No comments: