Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2fff2e6b
Kaydet (Commit)
2fff2e6b
authored
Ock 20, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
work build# into version string
üst
3bb63a8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
+39
-2
Makefile.pre.in
Modules/Makefile.pre.in
+9
-2
getbuildinfo.c
Modules/getbuildinfo.c
+30
-0
No files found.
Modules/Makefile.pre.in
Dosyayı görüntüle @
2fff2e6b
...
...
@@ -93,7 +93,7 @@ MAKESETUP= $(srcdir)/makesetup
OBJS
=
$(MODOBJS)
ADDOBJS
=
main.o config.o getpath.o
ADDOBJS
=
main.o config.o getpath.o
getbuildinfo.o
LIB
=
libModules.a
...
...
@@ -120,11 +120,18 @@ $(LIB): $& $(OBJS) Makefile
$(AR)
cr
$(LIB)
$(OBJS)
$(RANLIB)
$(LIB)
../python
:
$(MYLIBS) $(ADDOBJS) Makefile
../python
:
$(MYLIBS) $(ADDOBJS) Makefile buildno
expr
`
cat
buildno
`
+ 1
>
@buildno
mv
@buildno buildno
$(CC)
-c
$(CFLAGS)
-DBUILD
=
`
cat
buildno
`
$(srcdir)
/getbuildinfo.c
$(AR)
r
$(LIB)
getbuildinfo.o
$(LINKCC)
$(LDFLAGS)
$(OPT)
$(LINKFORSHARED)
$(ADDOBJS)
\
$(MYLIBS)
$(MODLIBS)
$(LIBS)
$(SYSLIBS)
-o
python
mv
python ../python
buildno
:
echo
0
>
buildno
clean
:
-
rm
-f
*
.o python core
*
~
[
@,#]
*
*
.old
*
.orig
*
.rej
...
...
Modules/getbuildinfo.c
0 → 100644
Dosyayı görüntüle @
2fff2e6b
#include <stdio.h>
#ifndef DATE
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "xx/xx/xx"
#endif
#endif
#ifndef TIME
#ifdef __TIME__
#define TIME __TIME__
#else
#define TIME "xx:xx:xx"
#endif
#endif
#ifndef BUILD
#define BUILD 0
#endif
const
char
*
Py_GetBuildInfo
()
{
static
char
buildinfo
[
40
];
sprintf
(
buildinfo
,
"#%d, %.12s, %.8s"
,
BUILD
,
DATE
,
TIME
);
return
buildinfo
;
}
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