2003-02-28 14:29:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#make an ecos epk from CVS lwIP
|
|
|
|
|
|
|
|
if [ $EPK"" == "" ]; then
|
|
|
|
echo you must set the EPK environment var to the dir you want the EPK in
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $LWIP_CVS"" == "" ]; then
|
|
|
|
echo you must set the LWIP_CVS environment var to the dir you checked out the lwip module
|
|
|
|
LWIP_CVS=../../../lwip;
|
|
|
|
exit;
|
|
|
|
fi
|
2003-04-14 15:36:56 +00:00
|
|
|
EPK=$EPK/lwip_epk
|
2003-02-28 14:29:13 +00:00
|
|
|
|
|
|
|
#cleanup
|
2003-04-14 15:36:56 +00:00
|
|
|
rm -Rf $EPK
|
|
|
|
|
2003-02-28 14:29:13 +00:00
|
|
|
|
|
|
|
#copy files from CVS
|
|
|
|
xargs -n 2 ./copy < files
|
|
|
|
|
|
|
|
#copy ecos specific files
|
2003-03-05 14:20:20 +00:00
|
|
|
cd ecos && find . ! -path '*CVS*' -a -type f -exec cp --parents {} $EPK \;
|
2003-02-28 14:29:13 +00:00
|
|
|
#make epk
|
|
|
|
cd $EPK && tar czf lwip.epk *
|
|
|
|
|