Change some wording in help.sh and added makeinnosetup

This commit is contained in:
Don BURNS 2003-06-27 21:01:18 +00:00
parent a632652507
commit 6cec821c72
2 changed files with 75 additions and 6 deletions

View File

@ -21,13 +21,15 @@ and optimized version of targets reside in parallel.
make opt - Makes optimized versions of all targets
make debug - Makes debug versions of all targets.
make clean - Removes all object files (both optimized and debug
versions) and Makedepend files.
make cleanopt - Removes optimized version of object files and
Makedepend files.
make cleandbg - Removes debug version of object files and Makedepend
files.
make cleandepend - Removes Makedepend file(s) (both optimized and debug
versions)
make cleanopt - Removes optimized version of object files
make cleandbg - Removes debug version of object files
make cleandepend - Removes Makedepend file (both optimized and debug
versions)
make cleandependopt - Removes optimized version Makedepend file
make cleandependdbg - Removes debug version Makedepend file
make cleandependopt - Removes optimized version Makedepend file(s)
make cleandependdbg - Removes debug version Makedepend file(s)
make cleantarget - Removes only targets but leaves object files (both
optimized and debug versions)
make cleantargetopt - Removes only optimized targets but leaves optimized

67
Make/makeinnosetup Normal file
View File

@ -0,0 +1,67 @@
#!/bin/sh
print_header()
{
ROOT=$1
cat <<- EOF
[Setup]
AppName=Open Scene Graph
AppVerName=Open Scene Graph `make -s version`
AppPublisher=OpenSceneGraph
AppPublisherURL=http://www.openscenegraph.com
AppSupportURL=http://www.openscenegraph.com
AppUpdatesURL=http://www.openscenegraph.com
DefaultDirName={pf}\OpenSceneGraph
DisableDirPage=yes
DefaultGroupName=OpenSceneGraph
DisableProgramGroupPage=yes
LicenseFile=$ROOT\COPYING.txt
EOF
}
# Usage:
# do_dir $ROOT $DIR
#
do_dir()
{
ROOT=$1
DIR=$2
DOS_DIR=`echo $DIR | sed 's/\\//\\\/g'`
for f in `find $DIR -type f -print | grep -v CVS`
do
FILE=`basename $f`
printf "Source: \"%s\\\%s\\\%s\"; DestDir: \"{app}\\\%s\\\"; CopyMode: alwaysoverwrite\n"\
$ROOT $DOS_DIR $FILE $DOS_DIR
done
}
print_files()
{
ROOT=$1
echo "[Files]"
do_dir $ROOT lib
do_dir $ROOT bin
for dir in `ls -1 include| grep -v CVS`
do
do_dir $ROOT "include/$dir"
done
}
# Unfortunately, Inno Setup cannot use ../../ type paths, t
# ROOT has to be hard-coded
ROOT="C:\OpenSceneGraph"
[ -d dist/Win32 ] || mkdir -p dist/Win32
rm -f dist/Win32/osg.iss
print_header $ROOT >> dist/Win32/osg.iss
print_files $ROOT >> dist/Win32/osg.iss