export with a working version.sh

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@164 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-05-18 06:16:56 +00:00
parent c93d6af445
commit 81cde73fef
2 changed files with 8 additions and 10 deletions

View File

@ -3,10 +3,12 @@
buildrelease: clean sourceball mingwbin buildrelease: clean sourceball mingwbin
sourceball: sourceball:
rm -rf vgmstream.export rm -rf vgmstream-`./version.sh`
svn export . vgmstream.export svn export . vgmstream-`./version.sh`
tar cvzf "vgmstream-`./version.sh`.tar.gz" vgmstream.export/* echo "#!/bin/sh" > vgmstream-`./version.sh`/version.sh
rm -rf vgmstream.export echo "echo \"`./version.sh`\"" >> vgmstream-`./version.sh`/version.sh
tar cvzf "vgmstream-`./version.sh`.tar.gz" vgmstream-`./version.sh`/*
rm -rf vgmstream-`./version.sh`
mingwbin: mingw_test mingw_winamp mingwbin: mingw_test mingw_winamp
zip -j "vgmstream-`./version.sh`-test.zip" readme.txt LICENSE test/test.exe winamp/in_vgmstream.dll zip -j "vgmstream-`./version.sh`-test.zip" readme.txt LICENSE test/test.exe winamp/in_vgmstream.dll
@ -18,8 +20,7 @@ mingw_winamp:
$(MAKE) -C winamp in_vgmstream.dll $(MAKE) -C winamp in_vgmstream.dll
clean: clean:
rm -f vgmstream-*.tar.gz rm -f vgmstream-*
rm -f vgmstream-*-test.zip
$(MAKE) -C test clean $(MAKE) -C test clean
$(MAKE) -C test -f Makefile.mingw clean $(MAKE) -C test -f Makefile.mingw clean
$(MAKE) -C winamp clean $(MAKE) -C winamp clean

View File

@ -1,7 +1,4 @@
#!/bin/sh
DIR="`dirname "$0"`" DIR="`dirname "$0"`"
VERSION="`svnversion "$DIR" | tr : _`" VERSION="`svnversion "$DIR" | tr : _`"
if [[ "$VERSION" = "exported" ]] ; then
echo "exported"
else
echo "r$VERSION" echo "r$VERSION"
fi