(file) Return to fixdist CVS log (file) (dir) Up to [OMI] / omi / scripts

File: [OMI] / omi / scripts / fixdist (download)
Revision: 1.1, Mon Apr 20 17:20:13 2015 UTC (9 years ago) by krisbash
Branch: MAIN
CVS Tags: OMI_1_0_8_2, OMI_1_0_8_1, HEAD
OMI 1.0.8-1

#!/bin/bash

## 
## Check that this script is running from the root of the distribution.
##

if [ ! -f "./mak/rules.mak" ]; then
    echo "$0: please run from the root of the OMI source distribution"
    exit 1
fi

##
## Strip Ctrl-M's from buildtool script (and make executable):
##

fn=./buildtool
rm -f $fn.bak
mv $fn $fn.bak
tr -d '\15' < $fn.bak > $fn
rm -f $fn.bak
chmod +x $fn

##
## Strip Ctrl-M's from filesfiles.c:
##

fn=./scripts/fixdist.c
rm -f $fn.bak
mv $fn $fn.bak
tr -d '\15' < $fn.bak > $fn
rm -f $fn.bak

##
## Build fixdist program:
##

cc=`./buildtool cc`
cflags=`./buildtool cflags`
cprogflags=`./buildtool cprogflags`

$cc $cflags $cprogflags -o ./fixdist.bin ./scripts/fixdist.c

##
## Run fixdist program:
##

./fixdist.bin
rm -f ./fixdist.bin

ViewCVS 0.9.2