#!/bin/sh VERSION=`cat constants.h | grep VERSION | awk '{ v=$3; gsub("\"","",v); print v }'` FULLNAME=netmapr-${VERSION} TARFILE=${FULLNAME}.tar.gz WINFILE=${FULLNAME}-win32.zip mkdir ${FULLNAME} cp README.txt INSTALL.txt Makefile.linux Makefile.freebsd Makefile.windows objects.dat buttons.dat netmapr.c netmapr.h constants.h convert.c convert.h icon.bmp verdana.ttf example.map ${FULLNAME}/ cp -R doc ${FULLNAME}/ tar zcvf ${TARFILE} ${FULLNAME} rm -rf ${FULLNAME} mkdir ${FULLNAME} cp README.txt INSTALL.txt objects.dat buttons.dat netmapr.exe netmapr.c netmapr.h constants.h convert.c convert.h verdana.ttf example.map icon.bmp windows_files/*.dll ${FULLNAME}/ cp -R doc ${FULLNAME}/ zip -r ${WINFILE} ${FULLNAME} rm -rf ${FULLNAME}