summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-09-05 22:05:32 +0000
committerTim Angus <tim@ngus.net>2007-09-05 22:05:32 +0000
commitc99975c73ae2941751d86d3b8466454c5ad122c0 (patch)
treeb5bb65655fbdbc22201426046092939bcf696abe /misc
parent27ad2c0e19891f7f2454c9eedf76878dc1942ba6 (diff)
* Merge of ioq3-r1163
+ SDL everywhere + New R_LoadImage + net_ip.c + Window icon + GUI based dedicated server support + Compile time linked OpenGL * Remove ui_menuFiles cvar
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/SLA-dmg.sh73
-rwxr-xr-xmisc/Tremulous.icnsbin0 -> 78419 bytes
-rwxr-xr-xmisc/merge-ioq3-into-trem.sh10
3 files changed, 74 insertions, 9 deletions
diff --git a/misc/SLA-dmg.sh b/misc/SLA-dmg.sh
new file mode 100755
index 00000000..af268f32
--- /dev/null
+++ b/misc/SLA-dmg.sh
@@ -0,0 +1,73 @@
+#!/bin/bash
+#
+# This script appends the text from Q3A_EULA.txt to a .dmg as a SLA resource
+#
+# usage is './SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg'
+#
+
+if [ "x$1" = "x" ] || [ "x$2" = "x" ]; then
+ echo "usage: ./SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg"
+ exit 1;
+fi
+
+if [ ! -r $1 ]; then
+ echo "$1 is not a readable Q3A_EULA.txt file"
+ exit 1;
+fi
+if [ ! -w $2 ]; then
+ echo "$2 is not writable .dmg file"
+ exit 1;
+fi
+touch tmp.r
+if [ ! -w tmp.r ]; then
+ echo "Could not create temporary file tmp.r for writing"
+ exit 1;
+fi
+
+echo "
+data 'LPic' (5000) {
+ \$\"0002 0011 0003 0001 0000 0000 0002 0000\"
+ \$\"0008 0003 0000 0001 0004 0000 0004 0005\"
+ \$\"0000 000E 0006 0001 0005 0007 0000 0007\"
+ \$\"0008 0000 0047 0009 0000 0034 000A 0001\"
+ \$\"0035 000B 0001 0020 000C 0000 0011 000D\"
+ \$\"0000 005B 0004 0000 0033 000F 0001 000C\"
+ \$\"0010 0000 000B 000E 0000\"
+};
+
+data 'TEXT' (5002, \"English\") {
+" > tmp.r
+
+sed -e 's/"/\\"/g' -e 's/\(.*\)$/"\1\\n"/g' $1 >> tmp.r
+
+echo "
+};
+
+resource 'STR#' (5002, \"English\") {
+ {
+ \"English\",
+ \"Agree\",
+ \"Disagree\",
+ \"Print\",
+ \"Save...\",
+ \"IMPORTANT - Read this License Agreement carefully before clicking on \"
+ \"the \\\"Agree\\\" button. By clicking on the \\\"Agree\\\" button, you agree \"
+ \"to be bound by the terms of the License Agreement.\",
+ \"Software License Agreement\",
+ \"This text cannot be saved. This disk may be full or locked, or the \"
+ \"file may be locked.\",
+ \"Unable to print. Make sure you have selected a printer.\"
+ }
+};
+" >> tmp.r
+
+hdiutil convert -format UDCO -o tmp.dmg $2 || exit 1
+hdiutil unflatten tmp.dmg || exit 1
+/Developer/Tools/Rez /Developer/Headers/FlatCarbon/*.r tmp.r -a -o tmp.dmg \
+ || exit 1
+hdiutil flatten tmp.dmg || exit 1
+hdiutil internet-enable -yes tmp.dmg || exit 1
+mv tmp.dmg $2 || (echo "Could not copy tmp.dmg to $2" && exit 1)
+rm tmp.dmg
+rm tmp.r
+echo "SLA $1 successfully added to $2"
diff --git a/misc/Tremulous.icns b/misc/Tremulous.icns
new file mode 100755
index 00000000..c4106ac5
--- /dev/null
+++ b/misc/Tremulous.icns
Binary files differ
diff --git a/misc/merge-ioq3-into-trem.sh b/misc/merge-ioq3-into-trem.sh
index 1bf9e00a..347ecaa4 100755
--- a/misc/merge-ioq3-into-trem.sh
+++ b/misc/merge-ioq3-into-trem.sh
@@ -17,7 +17,7 @@ svn export . $IOQ3VERSION
cd $IOQ3VERSION
# Remove READMEs and the like
-rm -rf BUGS ChangeLog README COPYING.txt NOTTODO TODO id-readme.txt web/
+rm -rf BUGS ChangeLog README COPYING.txt NOTTODO TODO id-readme.txt misc/
# Remove Q3 ui stuff
rm -rf ui/
@@ -32,14 +32,6 @@ rm -f `find -iname "*.q3asm"`
rm -f `find -iname "*.mak"`
rm -f `find -iname "*.ico"`
rm -f `find -iname "*.bmp"`
-rm -f code/tools/lcc/makefile.nt
-rm -rf code/win32/msvc/
-
-# Remove Linux docs
-rm -rf code/unix/LinuxSupport/
-rm -rf code/unix/setup/
-rm -f code/unix/README.*
-rm -f code/unix/quake3.*
# Remove game code
rm -rf code/cgame/ code/game/ code/ui/ code/q3_ui/