#!/bin/sh VERSION=`cat constants.h | grep VERSION | awk '{ v=$3; gsub("\"","",v); print v }'` FULLNAME=netmapr-${VERSION} TARFILE=${FULLNAME}.tar.gz mkdir ${FULLNAME} cp Makefile.linux Makefile.freebsd Makefile.windows objects.dat buttons.dat netmapr.c netmapr.h constants.h convert.c convert.h verdana.ttf example.map ${FULLNAME}/ tar zcvf ${TARFILE} ${FULLNAME} rm -rf ${FULLNAME}