Add code, unknown original date

This commit is contained in:
2026-05-18 12:41:53 -04:00
commit 7fddc22283
2373 changed files with 3420614 additions and 0 deletions

23
code/unix/.svn/all-wcprops Executable file
View File

@@ -0,0 +1,23 @@
K 25
svn:wc:ra_dav:version-url
V 47
/svn/aklabs/!svn/ver/9/trunk/hypermod/code/unix
END
Conscript-pk3
K 25
svn:wc:ra_dav:version-url
V 61
/svn/aklabs/!svn/ver/9/trunk/hypermod/code/unix/Conscript-pk3
END
pcons-2.3.1
K 25
svn:wc:ra_dav:version-url
V 59
/svn/aklabs/!svn/ver/9/trunk/hypermod/code/unix/pcons-2.3.1
END
cons
K 25
svn:wc:ra_dav:version-url
V 52
/svn/aklabs/!svn/ver/9/trunk/hypermod/code/unix/cons
END

133
code/unix/.svn/entries Executable file
View File

@@ -0,0 +1,133 @@
10
dir
44
https://127.0.0.1/svn/aklabs/trunk/hypermod/code/unix
https://127.0.0.1/svn/aklabs
2007-05-26T21:34:02.309037Z
9
andrew
eb184899-6090-47d4-a65b-558f62f6ea1c
Conscript-pk3
file
2010-02-05T03:38:01.526373Z
fc4cb7e61683b546a03cbcf6b9913888
2007-05-26T21:34:02.309037Z
9
andrew
has-props
3497
pcons-2.3.1
file
2010-02-05T03:38:01.541998Z
cab713b8dd858f7daf3313d54c456035
2007-05-26T21:34:02.309037Z
9
andrew
has-props
251845
cons
file
2010-02-05T03:38:01.541998Z
df595a1e2f7398f2271e10cde70603d4
2007-05-26T21:34:02.309037Z
9
andrew
has-props
225463
CVS
dir

View File

@@ -0,0 +1,5 @@
K 14
svn:executable
V 0
END

View File

@@ -0,0 +1,5 @@
K 14
svn:executable
V 0
END

View File

@@ -0,0 +1,5 @@
K 14
svn:executable
V 0
END

View File

@@ -0,0 +1,135 @@
# build pk3 on the fly
Import qw( INSTALL_DIR BUILD_DIR CONFIG_DIR );
use Data::Dumper;
$env = new cons(); # the env on which we will be working for all pk3s (NOTE: maybe we need several ctually)
$hcf_do_exec = 1;
sub do_command($)
{
printf("@_[0]\n");
if ($hcf_do_exec)
{
system("@_[0]");
}
}
sub build_pk3 {
sub launch {
#print "In launch\n";
$Data::Dumper::Indent = 2;
#print Dumper(@_);
$tmpdir = "/tmp/pk3-builder$$";
do_command("rm -rf $tmpdir");
($target, $sets) = @_;
$base=`basename $target`; chomp($base);
$dirname=`dirname $target`; chomp($dirname);
foreach (@{$sets})
{
($sourcepath, $destpath, $file) = @{$_};
#print "source: $sourcepath dest: $destpath file: $file\n";
do_command("mkdir -p $tmpdir/$destpath");
if ($sourcepath =~ /#.*/)
{
#print "$sourcepath is absolute\n";
$sourcepath =~ s/#//;
if (ref($file))
{
foreach(@{$file})
{
do_command("cp $sourcepath/$_ $tmpdir/$destpath/$_");
}
}
else
{
do_command("cp $sourcepath/$file $tmpdir/$destpath/$file");
}
}
else
{
#print "$sourcepath in linked dir\n";
if (ref($file))
{
foreach(@{$file})
{
do_command("cp $BUILD_DIR/$sourcepath/$_ $tmpdir/$destpath/$_");
}
}
else
{
do_command("cp $BUILD_DIR/$sourcepath/$file $tmpdir/$destpath/$file");
}
}
}
do_command("cd $tmpdir ; zip -r $base *");
do_command("mkdir -p $BUILD_DIR/$dirname");
do_command("cp $tmpdir/$base $BUILD_DIR/$target");
do_command("rm -rf $tmpdir");
return 1;
}
# extract the parameters
($target, $sets) = @_;
$base=`basename $target`; chomp($base);
$dirname=`dirname $target`; chomp($dirname);
# the build command is stored and called later on by cons
# this makes it impossible to have several build_pk3 working together
# there is probably a cleaner solution than this hack, but this works
$target_uniquename="target_$base";
$target_uniquename=~s/\.//g;
eval("\$$target_uniquename=\$target");
$sets_uniquename="sets_$base";
$sets_uniquename=~s/\.//g;
eval("\$$sets_uniquename=\$sets");
#print "name: $target_uniquename after the hack: $target_pak8pk3";
# don't pass @{@_} .. since this will be called during the process
$command = "[perl] &launch( \$$target_uniquename, [ \@{\$$sets_uniquename} ] )";
#print "$command\n";
foreach(@{$sets})
{
($sourcepath, $destpath, $file) = @{$_};
if (ref($file))
{
foreach(@{$file})
{
Depends $env $target, $sourcepath . '/' . $_;
}
}
else
{
Depends $env $target, $sourcepath . '/' . $file;
}
}
Command $env $target, $command;
Install $env $INSTALL_DIR . "/$dirname", $target;
}
# quick rundown on the syntax:
# <target file>, [ <fileset1>, <fileset2>, ... ]
# where <fileset>: [ <source directory>, <directory in zip>, <file1>, <file2>, .. ]
build_pk3('baseq3/pak8.pk3',
[ [ '#../../../media/Q3Media-1.32/baseq3/menu/art', 'menu/art', 'pblogo.tga' ],
[ '../Q3/q3_ui/q3_ui', 'vm', 'ui.qvm' ],
[ '../Q3/cgame/cgame', 'vm', 'cgame.qvm' ],
[ '../Q3/game/game', 'vm', 'qagame.qvm' ] ]
);
build_pk3('missionpack/pak3.pk3',
[ [ '#../ui', 'ui', [ 'createserver.menu', 'joinserver.menu', 'filter.menu', 'punkbuster.menu', 'menus.txt' ] ],
[ '../TA/ui/ui', 'vm', 'ui.qvm' ],
[ '../TA/cgame/cgame', 'vm', 'cgame.qvm' ],
[ '../TA/game/game', 'vm', 'qagame.qvm' ],
[ '#../../../media/Q3Media-1.32/missionpack/scripts', 'scripts', 'models2.shader' ] ]
);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

23
code/unix/CVS/.svn/all-wcprops Executable file
View File

@@ -0,0 +1,23 @@
K 25
svn:wc:ra_dav:version-url
V 51
/svn/aklabs/!svn/ver/9/trunk/hypermod/code/unix/CVS
END
Repository
K 25
svn:wc:ra_dav:version-url
V 62
/svn/aklabs/!svn/ver/9/trunk/hypermod/code/unix/CVS/Repository
END
Root
K 25
svn:wc:ra_dav:version-url
V 56
/svn/aklabs/!svn/ver/9/trunk/hypermod/code/unix/CVS/Root
END
Entries
K 25
svn:wc:ra_dav:version-url
V 59
/svn/aklabs/!svn/ver/9/trunk/hypermod/code/unix/CVS/Entries
END

130
code/unix/CVS/.svn/entries Executable file
View File

@@ -0,0 +1,130 @@
10
dir
44
https://127.0.0.1/svn/aklabs/trunk/hypermod/code/unix/CVS
https://127.0.0.1/svn/aklabs
2007-05-26T21:34:02.309037Z
9
andrew
eb184899-6090-47d4-a65b-558f62f6ea1c
Repository
file
2010-02-05T03:38:01.495123Z
2d7c1156e90022ff5c64e5942517014c
2007-05-26T21:34:02.309037Z
9
andrew
32
Root
file
2010-02-05T03:38:01.495123Z
7af14a164593104c1e7a07a572dd352a
2007-05-26T21:34:02.309037Z
9
andrew
24
Entries
file
2010-02-05T03:38:01.510748Z
45064bbc37f437e414afb7f4d15a6b3a
2007-05-26T21:34:02.309037Z
9
andrew
141

View File

@@ -0,0 +1,4 @@
/Conscript-pk3/1.1.1.1/Sat Dec 31 23:57:16 2005//
/cons/1.1.1.1/Sat Dec 31 23:57:16 2005//
/pcons-2.3.1/1.1.1.1/Sat Dec 31 23:57:16 2005//
D

View File

@@ -0,0 +1 @@
games/quake3/hypermod/code/unix

View File

@@ -0,0 +1 @@
andrew@gabbo:/home/cvsd

4
code/unix/CVS/Entries Executable file
View File

@@ -0,0 +1,4 @@
/Conscript-pk3/1.1.1.1/Sat Dec 31 23:57:16 2005//
/cons/1.1.1.1/Sat Dec 31 23:57:16 2005//
/pcons-2.3.1/1.1.1.1/Sat Dec 31 23:57:16 2005//
D

1
code/unix/CVS/Repository Executable file
View File

@@ -0,0 +1 @@
games/quake3/hypermod/code/unix

1
code/unix/CVS/Root Executable file
View File

@@ -0,0 +1 @@
andrew@gabbo:/home/cvsd

135
code/unix/Conscript-pk3 Executable file
View File

@@ -0,0 +1,135 @@
# build pk3 on the fly
Import qw( INSTALL_DIR BUILD_DIR CONFIG_DIR );
use Data::Dumper;
$env = new cons(); # the env on which we will be working for all pk3s (NOTE: maybe we need several ctually)
$hcf_do_exec = 1;
sub do_command($)
{
printf("@_[0]\n");
if ($hcf_do_exec)
{
system("@_[0]");
}
}
sub build_pk3 {
sub launch {
#print "In launch\n";
$Data::Dumper::Indent = 2;
#print Dumper(@_);
$tmpdir = "/tmp/pk3-builder$$";
do_command("rm -rf $tmpdir");
($target, $sets) = @_;
$base=`basename $target`; chomp($base);
$dirname=`dirname $target`; chomp($dirname);
foreach (@{$sets})
{
($sourcepath, $destpath, $file) = @{$_};
#print "source: $sourcepath dest: $destpath file: $file\n";
do_command("mkdir -p $tmpdir/$destpath");
if ($sourcepath =~ /#.*/)
{
#print "$sourcepath is absolute\n";
$sourcepath =~ s/#//;
if (ref($file))
{
foreach(@{$file})
{
do_command("cp $sourcepath/$_ $tmpdir/$destpath/$_");
}
}
else
{
do_command("cp $sourcepath/$file $tmpdir/$destpath/$file");
}
}
else
{
#print "$sourcepath in linked dir\n";
if (ref($file))
{
foreach(@{$file})
{
do_command("cp $BUILD_DIR/$sourcepath/$_ $tmpdir/$destpath/$_");
}
}
else
{
do_command("cp $BUILD_DIR/$sourcepath/$file $tmpdir/$destpath/$file");
}
}
}
do_command("cd $tmpdir ; zip -r $base *");
do_command("mkdir -p $BUILD_DIR/$dirname");
do_command("cp $tmpdir/$base $BUILD_DIR/$target");
do_command("rm -rf $tmpdir");
return 1;
}
# extract the parameters
($target, $sets) = @_;
$base=`basename $target`; chomp($base);
$dirname=`dirname $target`; chomp($dirname);
# the build command is stored and called later on by cons
# this makes it impossible to have several build_pk3 working together
# there is probably a cleaner solution than this hack, but this works
$target_uniquename="target_$base";
$target_uniquename=~s/\.//g;
eval("\$$target_uniquename=\$target");
$sets_uniquename="sets_$base";
$sets_uniquename=~s/\.//g;
eval("\$$sets_uniquename=\$sets");
#print "name: $target_uniquename after the hack: $target_pak8pk3";
# don't pass @{@_} .. since this will be called during the process
$command = "[perl] &launch( \$$target_uniquename, [ \@{\$$sets_uniquename} ] )";
#print "$command\n";
foreach(@{$sets})
{
($sourcepath, $destpath, $file) = @{$_};
if (ref($file))
{
foreach(@{$file})
{
Depends $env $target, $sourcepath . '/' . $_;
}
}
else
{
Depends $env $target, $sourcepath . '/' . $file;
}
}
Command $env $target, $command;
Install $env $INSTALL_DIR . "/$dirname", $target;
}
# quick rundown on the syntax:
# <target file>, [ <fileset1>, <fileset2>, ... ]
# where <fileset>: [ <source directory>, <directory in zip>, <file1>, <file2>, .. ]
build_pk3('baseq3/pak8.pk3',
[ [ '#../../../media/Q3Media-1.32/baseq3/menu/art', 'menu/art', 'pblogo.tga' ],
[ '../Q3/q3_ui/q3_ui', 'vm', 'ui.qvm' ],
[ '../Q3/cgame/cgame', 'vm', 'cgame.qvm' ],
[ '../Q3/game/game', 'vm', 'qagame.qvm' ] ]
);
build_pk3('missionpack/pak3.pk3',
[ [ '#../ui', 'ui', [ 'createserver.menu', 'joinserver.menu', 'filter.menu', 'punkbuster.menu', 'menus.txt' ] ],
[ '../TA/ui/ui', 'vm', 'ui.qvm' ],
[ '../TA/cgame/cgame', 'vm', 'cgame.qvm' ],
[ '../TA/game/game', 'vm', 'qagame.qvm' ],
[ '#../../../media/Q3Media-1.32/missionpack/scripts', 'scripts', 'models2.shader' ] ]
);

6828
code/unix/cons Executable file

File diff suppressed because it is too large Load Diff

7911
code/unix/pcons-2.3.1 Executable file

File diff suppressed because it is too large Load Diff