wxWidgets/distrib/msw/tarmicrowin.sh
Julian Smart 77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00

46 lines
803 B
Bash

#!/bin/sh
# tardist: make up a tar.gz distribution of wxMicroWindows.
init=""
if [ "$1" = "" ]
then
echo Usage: tardist wx-dir output-dir version
exit
fi
if [ "$2" = "" ]
then
echo Usage: tardist wx-dir output-dir version
exit
fi
if [ "$3" = "" ]
then
echo Usage: tardist wx-dir output-dir version
exit
fi
WXVER=$3
echo About to archive wxWidgets:
echo From $1
echo To $2
echo CTRL-C if this is not correct.
read dummy
cd $1
echo Removing backup files...
rm *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~
rm -f $2/wxMicroWindows-${WXVER}.*
echo Tarring...
ls `cat $1/distrib/msw/microwin.rsp` > /tmp/files.txt
tar cvf $2/wxMicroWindows-${WXVER}.tar -T /tmp/files.txt
gzip $2/wxMicroWindows-${WXVER}.tar
mv $2/wxMicroWindows-${WXVER}.tar.gz $2/wxMicroWindows-${WXVER}.tgz
echo Done!