verstr=`grep version ./sys_nicmonitor/version.h | cut -d "=" -f 2`
echo $verstr
worksrc=sys_nicmonitor-$verstr
cp -r sys_nicmonitor $worksrc
tar -czf $worksrc.tar.gz $worksrc

pkgmk -um

#For debug
#pkgmk -kw -pa post_add.sh

#For release
pkgmk -pa post_add.sh
rm $worksrc.tar.gz
rm -rf $worksrc
