Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
4936756d
Commit
4936756d
authored
May 22, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kbuild: Fix warning when .version doesn't exist yet
parent
d0f0cde1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
scripts/mkcompile_h
scripts/mkcompile_h
+9
-2
No files found.
scripts/mkcompile_h
View file @
4936756d
...
...
@@ -3,13 +3,20 @@ ARCH=$2
SMP=$3
CC=$4
if [ -r ../.version ]; then
VERSION=`cat ../.version`
else
VERSION=0
echo 0 > ../.version
fi
# Generate a temporary compile.h
( echo /\* This file is auto generated, version
`cat ../.version`
\*/
( echo /\* This file is auto generated, version
$VERSION
\*/
echo \#define UTS_MACHINE \"$ARCH\"
echo -n \#define UTS_VERSION \"\#
`cat ../.version`
echo -n \#define UTS_VERSION \"\#
$VERSION
if [ -n "$SMP" ] ; then echo -n " SMP"; fi
echo ' '`date`'"'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment