25 lines
1.0 KiB
Bash
Executable File
25 lines
1.0 KiB
Bash
Executable File
#!/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}/
|
|
rm -rf ${FULLNAME}/doc/CVS
|
|
rm -rf ${FULLNAME}/doc/.svn
|
|
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}
|