Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nifplg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
nifplg
Commits
5fcc93c6
Commit
5fcc93c6
authored
13 years ago
by
Amorilia
Browse files
Options
Downloads
Patches
Plain Diff
Updated makeconfig script for git.
parent
a2c60fef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NifCommon/config.h.in
+10
-3
10 additions, 3 deletions
NifCommon/config.h.in
makeconfig.bat
+0
-5
0 additions, 5 deletions
makeconfig.bat
makeconfig.sh
+8
-0
8 additions, 0 deletions
makeconfig.sh
with
18 additions
and
8 deletions
NifCommon/config.h.in
+
10
−
3
View file @
5fcc93c6
...
...
@@ -42,10 +42,17 @@
#define NIFTOOLS_REVISION "$WCREV$"
#define NIFTOOLS_REVISION_INT $WCREV$
#define NIFTOOLS_SVN_VERSION "$WCMODS?Modified:Not modified$"
// NIFTOOLS_SVN_VERSION kept for compatibility
#define NIFTOOLS_SVN_VERSION "Not modified"
#define NIFTOOLS_SVN_DATE "$WCDATE$"
#define NIFTOOLS_SVN_RANGE "$WCRANGE$"
#define NIFTOOLS_SVN_MIXED "$WCMIXED?Mixed revision WC:Not mixed$"
// NIFTOOLS_SVN_RANGE kept, and defined as WCREV, for compatibility
#define NIFTOOLS_SVN_RANGE "$WCREV$"
// NIFTOOLS_SVN_MIXED kept for compatibility
#define NIFTOOLS_SVN_MIXED "Not mixed"
#define NIFTOOLS_SVN_URL "$WCURL$"
#endif
This diff is collapsed.
Click to expand it.
makeconfig.bat
deleted
100644 → 0
+
0
−
5
View file @
a2c60fef
@echo
off
rem Quick script to create config.h
IF
EXIST
"
%PROGRAMFILES%
\TortoiseSVN\bin\SubWCRev.exe"
(
"
%PROGRAMFILES%
\TortoiseSVN\bin\SubWCRev.exe"
.
NifCommon
\config.h.in
NifCommon
\config.h
>
nul
2
<&
1
)
This diff is collapsed.
Click to expand it.
makeconfig.sh
0 → 100755
+
8
−
0
View file @
5fcc93c6
#!/bin/bash
# Quick script to create config.h
WCREV
=
`
git log
-1
--pretty
=
format:%h
`
WCDATE
=
`
git log
-1
--pretty
=
format:%cd
`
WCURL
=
`
git config
--get
remote.origin.url
`
cat
NifCommon/config.h.in |
sed
"s/[
$]
WCREV[
$]
/
$WCREV
/g"
|
sed
"s/[
$]
WCDATE[
$]
/
$WCDATE
/g"
|
sed
"s![
$]
WCURL[
$]
!
$WCURL
!g"
>
NifCommon/config.h
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment