Skip to content
Snippets Groups Projects
Commit 8e01cd72 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1998-02-17 11:30:36 by simonm]

Remove redundant PROJECT{VERSION,NAME,PATCHLEVEL} in favour of
ProjectVersion etc. from config.mk.in.
parent 6cbf9e33
No related merge requests found
...@@ -36,7 +36,7 @@ endif ...@@ -36,7 +36,7 @@ endif
SCRIPT_SUBST_VARS := \ SCRIPT_SUBST_VARS := \
INSTALLING \ INSTALLING \
PROJECTNAME PROJECTVERSION PROJECTPATCHLEVEL \ ProjectName ProjectVersion ProjectVersionInt ProjectPatchLevel
CURRENT_DIR HOSTPLATFORM TARGETPLATFORM \ CURRENT_DIR HOSTPLATFORM TARGETPLATFORM \
GHC_LIB_DIR GHC_RUNTIME_DIR GHC_UTILS_DIR GHC_INCLUDE_DIR \ GHC_LIB_DIR GHC_RUNTIME_DIR GHC_UTILS_DIR GHC_INCLUDE_DIR \
GHC_OPT_HILEV_ASM GhcWithNativeCodeGen LeadingUnderscore\ GHC_OPT_HILEV_ASM GhcWithNativeCodeGen LeadingUnderscore\
......
...@@ -99,7 +99,7 @@ INSTALLING ...@@ -99,7 +99,7 @@ INSTALLING
HOSTPLATFORM TARGETPLATFORM HOSTPLATFORM TARGETPLATFORM
PROJECTNAME PROJECTVERSION PROJECTPATCHLEVEL ProjectName ProjectVersion ProjectVersionInt ProjectPatchLevel
TOP_PWD TOP_PWD
...@@ -379,7 +379,7 @@ require special handling. ...@@ -379,7 +379,7 @@ require special handling.
# We need to look in ghc/ and glaExts/ when searching for implicitly needed .hi files, but # We need to look in ghc/ and glaExts/ when searching for implicitly needed .hi files, but
# we should really *not* look there for explicitly imported modules. # we should really *not* look there for explicitly imported modules.
$GhcVersionInfo = int($PROJECTVERSION * 100 + .5); # i.e., round (X.Y * 100) $GhcVersionInfo = $ProjectVersionInt
$Haskell1Version = 4; # i.e., Haskell 1.4 $Haskell1Version = 4; # i.e., Haskell 1.4
@Cpp_define = (); @Cpp_define = ();
...@@ -1337,7 +1337,7 @@ if ($#Input_file < 0 && $#Link_file < 0) { ...@@ -1337,7 +1337,7 @@ if ($#Input_file < 0 && $#Link_file < 0) {
Tell the world who we are, if they asked. Tell the world who we are, if they asked.
\begin{code} \begin{code}
print STDERR "${PROJECTNAME}, version ${PROJECTVERSION}, patchlevel ${PROJECTPATCHLEVEL}\n" print STDERR "${ProjectName}, version ${ProjectVersion}, patchlevel ${ProjectPatchLevel}\n"
if $Verbose; if $Verbose;
\end{code} \end{code}
...@@ -1431,7 +1431,7 @@ eval 'exec perl -S \$0 \${1+"\$@"}' ...@@ -1431,7 +1431,7 @@ eval 'exec perl -S \$0 \${1+"\$@"}'
if \$running_under_some_shell; if \$running_under_some_shell;
# =!=!=!=!=!=!=!=!=!=!=! # =!=!=!=!=!=!=!=!=!=!=!
# This script is automatically generated: DO NOT EDIT!!! # This script is automatically generated: DO NOT EDIT!!!
# Generated by Glasgow Haskell, version ${PROJECTVERSION} ${PROJECTPATCHLEVEL} # Generated by Glasgow Haskell, version ${ProjectVersion} ${ProjectPatchLevel}
# #
\$pvm_executable = '$pvm_executable'; \$pvm_executable = '$pvm_executable';
\$pvm_executable_base = '$pvm_executable_base'; \$pvm_executable_base = '$pvm_executable_base';
...@@ -2579,7 +2579,7 @@ arg: while($_ = $Args[0]) { ...@@ -2579,7 +2579,7 @@ arg: while($_ = $Args[0]) {
if (/^-\?$/ || /^--?help$/) { print $LongUsage; exit $Status; } if (/^-\?$/ || /^--?help$/) { print $LongUsage; exit $Status; }
#-----------version ---------------------------------------------------- #-----------version ----------------------------------------------------
/^--version$/ && do { print STDERR "${PROJECTNAME}, version ${PROJECTVERSION}, patchlevel ${PROJECTPATCHLEVEL}\n"; exit $Status; }; /^--version$/ && do { print STDERR "${ProjectName}, version ${ProjectVersion}, patchlevel ${ProjectPatchLevel}\n"; exit $Status; };
#---------- verbosity and such ----------------------------------------- #---------- verbosity and such -----------------------------------------
/^-v$/ && do { $Verbose = '-v'; $Time = 'time'; next arg; }; /^-v$/ && do { $Verbose = '-v'; $Time = 'time'; next arg; };
......
...@@ -3,12 +3,6 @@ ...@@ -3,12 +3,6 @@
# ghc project specific make variables # ghc project specific make variables
# #
#
PROJECTVERSION=$(GhcProjectVersion)
PROJECTNAME=$(GhcProjectName)
PROJECTPATCHLEVEL=$(GhcProjectPatchLevel)
# Override default haskell compiler if required # Override default haskell compiler if required
#HC = $(WithGhcHc) #HC = $(WithGhcHc)
HaskellCompilerType = $(WithGhcHcType) HaskellCompilerType = $(WithGhcHcType)
......
...@@ -13,7 +13,7 @@ SCRIPT_OBJS=hstags.prl ...@@ -13,7 +13,7 @@ SCRIPT_OBJS=hstags.prl
SCRIPT_SUBST_VARS=\ SCRIPT_SUBST_VARS=\
INSTALLING \ INSTALLING \
TOP_PWD \ TOP_PWD \
PROJECTVERSION ProjectVersionInt
ifneq "$(BIN_DIST)" "1" ifneq "$(BIN_DIST)" "1"
SCRIPT_SUBST_VARS += libdir TMPDIR SCRIPT_SUBST_VARS += libdir TMPDIR
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# TOP_PWD # TOP_PWD
# libdir # libdir
# libexecdir # libexecdir
# PROJECTVERSION # ProjectVersionInt
# HSP_IMPORTS # HSP_IMPORTS
if ( $ENV{'TMPDIR'} ) { # where to make tmp file names if ( $ENV{'TMPDIR'} ) { # where to make tmp file names
...@@ -56,7 +56,7 @@ while ($ARGV[0] =~ /^-./) { ...@@ -56,7 +56,7 @@ while ($ARGV[0] =~ /^-./) {
push(@Files, $_); push(@Files, $_);
} }
$ghc_version_info = int(${PROJECTVERSION} * 100); $ghc_version_info = ${ProjectVersionInt}
$DoHsCpp = ( ! $DoCpp ) ? 'cat' $DoHsCpp = ( ! $DoCpp ) ? 'cat'
: "$HsCpp -D__HASKELL1__=2 -D__GLASGOW_HASKELL__=$ghc_version_info $Cpp_opts"; : "$HsCpp -D__HASKELL1__=2 -D__GLASGOW_HASKELL__=$ghc_version_info $Cpp_opts";
......
...@@ -9,7 +9,7 @@ SCRIPT_OBJS=mkdependHS.prl ...@@ -9,7 +9,7 @@ SCRIPT_OBJS=mkdependHS.prl
SCRIPT_SUBST_VARS= \ SCRIPT_SUBST_VARS= \
TOP_PWD \ TOP_PWD \
INSTALLING \ INSTALLING \
PROJECTVERSION ProjectVersionInt
INTERP=perl INTERP=perl
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
# RAWCPP TMPDIR TOP_PWD # RAWCPP TMPDIR TOP_PWD
# libdir libexecdir datadir INSTALLING # libdir libexecdir datadir INSTALLING
# PROJECTVERSION SED # ProjectVersionInt SED
# #
# tries to work like mkdependC - capable of dealing with: # tries to work like mkdependC - capable of dealing with:
# #
...@@ -87,7 +87,7 @@ $Begin_magic_str = "# DO NOT DELETE: Beginning of Haskell dependencies\n"; ...@@ -87,7 +87,7 @@ $Begin_magic_str = "# DO NOT DELETE: Beginning of Haskell dependencies\n";
$End_magic_str = "# DO NOT DELETE: End of Haskell dependencies\n"; $End_magic_str = "# DO NOT DELETE: End of Haskell dependencies\n";
@Obj_suffix = ("o"); @Obj_suffix = ("o");
@File_suffix = (); @File_suffix = ();
$ghc_version_info = int ( ${PROJECTVERSION} * 100 ); $ghc_version_info = ${ProjectVersionInt}
$Import_dirs = '.'; $Import_dirs = '.';
%Syslibs = (); %Syslibs = ();
......
...@@ -128,6 +128,7 @@ Project = Ghc ...@@ -128,6 +128,7 @@ Project = Ghc
ProjectName = $($(Project)ProjectName) ProjectName = $($(Project)ProjectName)
ProjectNameShort = $($(Project)ProjectNameShort) ProjectNameShort = $($(Project)ProjectNameShort)
ProjectVersion = $($(Project)ProjectVersion) ProjectVersion = $($(Project)ProjectVersion)
ProjectVersionInt = $($(Project)ProjectVersionInt)
ProjectPatchLevel = $($(Project)ProjectPatchLevel) ProjectPatchLevel = $($(Project)ProjectPatchLevel)
################################################################################# #################################################################################
...@@ -144,7 +145,8 @@ ProjectPatchLevel = $($(Project)ProjectPatchLevel) ...@@ -144,7 +145,8 @@ ProjectPatchLevel = $($(Project)ProjectPatchLevel)
# #
GhcProjectName = The Glorious Glasgow Haskell Compilation System GhcProjectName = The Glorious Glasgow Haskell Compilation System
GhcProjectNameShort = ghc GhcProjectNameShort = ghc
GhcProjectVersion = 3.01 GhcProjectVersion = 3.01 # treated as a *string*
GhcProjectVersionInt = 301 # treated as an *integer* (for cpp defines)
GhcProjectPatchLevel = 0 GhcProjectPatchLevel = 0
#--------------------------------------------------------------- #---------------------------------------------------------------
...@@ -284,6 +286,7 @@ GhcBinDistBins = hp2ps ...@@ -284,6 +286,7 @@ GhcBinDistBins = hp2ps
HappyProjectName = Happy HappyProjectName = Happy
HappyProjectNameShort = happy HappyProjectNameShort = happy
HappyProjectVersion = 1.5 HappyProjectVersion = 1.5
HappyProjectVersionInt = 15
HappyProjectPatchLevel = 0 HappyProjectPatchLevel = 0
# The compiler you'd like to use to compile Happy # The compiler you'd like to use to compile Happy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment