netmapr/dist.sh

27 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2005-10-25 16:35:55 +10:00
#!/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
2005-10-25 16:35:55 +10:00
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}/
cp -R windows_files ${FULLNAME}/
rm -rf ${FULLNAME}/doc/CVS
rm -rf ${FULLNAME}/doc/.svn
rm -rf ${FULLNAME}/windows_files/.svn
2005-10-25 16:35:55 +10:00
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 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 dlls/*.dll ${FULLNAME}/
cp -R doc ${FULLNAME}/
rm -rf ${FULLNAME}/doc/CVS
rm -rf ${FULLNAME}/doc/.svn
zip -r ${WINFILE} ${FULLNAME}
rm -rf ${FULLNAME}