moved perl scripts here

This commit is contained in:
Jeff Hill
1997-06-25 06:02:42 +00:00
parent e84d7f342f
commit 7a0890fb97
3 changed files with 44 additions and 11 deletions

View File

@@ -6,17 +6,7 @@ include $(TOP)/config/CONFIG_BASE
# install these scripts:
#
# WIN32 also uses rm.pl, cp.pl, mkdir.pl, rmdir.pl
# byt they are called from here, not installed
SCRIPTS := installEpics.pl makeBaseApp.pl makeBaseApp installEpics
# Before anything is done, installEpics has to be in place.
# The first action in a full build & install is 'make inc.host',
# that's where we hook into:
inc:: $(INSTALL_BIN)/installEpics.pl
$(INSTALL_BIN)/installEpics.pl: ../installEpics.pl
$(PERL) ../installEpics.pl -d -m 555 ../installEpics.pl $(INSTALL_BIN)
SCRIPTS := makeBaseApp installEpics
include $(TOP)/config/RULES.Host

13
src/tools/findBase.pl Normal file
View File

@@ -0,0 +1,13 @@
#!/usr/local/bin/perl
use Cwd;
$dir=cwd();
# make sure $dir ends with '/'
#
$dir="$dir/" unless ($dir =~ m'/$');
if ($dir =~ m'(.*(/|\\)base)(/|\\)')
{
print "$1";
}

30
src/tools/makeMakefile.pl Normal file
View File

@@ -0,0 +1,30 @@
#!/usr/local/bin/perl
#
# makeMakefile.pl
#
# called from RULES_ARCHS
#
#
# Usage: perl makeMakefile.pl O.*-dir Makefile-Type
$dir = $ARGV[0];
$type= $ARGV[1];
$makefile="$dir/Makefile";
if ($dir =~ m'O.(.+)')
{
$t_a = $1;
}
else
{
die "Cannot extract T_A from $dir";
}
mkdir ($dir, 0777) unless -d $dir;
open OUT, "> $makefile" or die "Cannot create $makefile";
print OUT "T_A=$t_a\n";
print OUT "include ../Makefile.$type\n";
close OUT;
# EOF makeMakefile.pl