15 lines
336 B
Bash
Executable File
15 lines
336 B
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
|
|
|
|
mkdir ${FULLNAME}
|
|
cp Makefile Makefile.linux Makefile.freebsd Makefile.windows *.dat netmapr.c netmapr.h constants.h ${FULLNAME}/
|
|
|
|
tar zcvf ${TARFILE} ${FULLNAME}
|
|
|
|
rm -rf ${FULLNAME}
|
|
|
|
|