Files
itgmania212121/stepmania/Utils/make-src-archive.sh
T

69 lines
1.4 KiB
Bash
Raw Normal View History

2003-09-16 21:48:53 +00:00
#!/bin/bash
set -e
test -e ProductInfo.h && cd ..
if ! test -d src; then
echo Run this script from the top directory.
exit 1
fi
source Utils/GetProductVer.sh src/ProductInfo.h
2003-11-02 23:44:04 +00:00
PRODUCTVER="$PRODUCTVER-src"
2003-09-16 21:48:53 +00:00
if test -e $PRODUCTVER; then
echo "\"$PRODUCTVER\" already exists."
exit 1
fi
echo Copying...
2003-11-02 23:44:04 +00:00
2003-09-16 21:48:53 +00:00
mkdir $PRODUCTVER
cp -a autoconf $PRODUCTVER/
cp -a Utils $PRODUCTVER/
cp -a src $PRODUCTVER/
2004-09-20 06:52:05 +00:00
cp Docs/Copying.txt NEWS README-FIRST.html Makefile.am aclocal.m4 \
configure Makefile.in configure.ac $PRODUCTVER
2003-09-16 21:48:53 +00:00
2004-05-25 07:13:22 +00:00
mkdir $PRODUCTVER/Docs/
2004-05-26 05:31:41 +00:00
cp Docs/ChangeLog.txt $PRODUCTVER/Docs/
2004-05-25 07:13:22 +00:00
2003-09-16 21:48:53 +00:00
echo Pruning...
cd $PRODUCTVER/src
# Obsolete and going away:
rm -rf SDL-1.2.5
2004-05-25 07:13:22 +00:00
rm -rf SDL-1.2.6
2003-09-16 21:48:53 +00:00
# Incomplete:
rm -rf Texture Font Generator
# Xbox:
rm -rf SDLx-0.02
# Unused:
rm -rf smlobby
# Windows-only stuff. Let's leave some in the archive to make the GPL happy.
# I don't want to spend an extra half hour to upload separate Windows and
# *nix source archives.
#rm -rf mad-0.15.0b
rm -rf lua-5.0
2003-09-16 21:48:53 +00:00
rm -rf vorbis
rm -rf BaseClasses
rm -rf ddk
rm -rf smpackage
2004-01-01 01:23:38 +00:00
rm -rf sdl_xbox_includes
2004-02-23 09:36:26 +00:00
rm -rf SDLx-0.02.rar
2003-09-16 21:48:53 +00:00
2004-05-26 15:29:47 +00:00
cd ..
2003-09-16 21:48:53 +00:00
find -type d -name 'CVS' | xargs rm -rf
find -type f -name '*.lib' | xargs rm -rf
2004-05-26 15:29:47 +00:00
find -type f -name '*.exe' | xargs rm -rf
find -type f -name '*.a' | xargs rm -rf
find -type f -name '*.o' | xargs rm -rf
2003-09-16 21:48:53 +00:00
2004-05-26 15:29:47 +00:00
cd ..
2004-01-01 01:23:38 +00:00
rm -rf Utils/Font\ generation/
2003-09-16 21:48:53 +00:00
echo Archiving...
tar zchvf "$PRODUCTVER".tar.gz $PRODUCTVER/