Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
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ç
LibreOffice
core
Commits
ab110178
Kaydet (Commit)
ab110178
authored
Tem 11, 2002
tarafından
Martin Hollmichel
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
join: from OOO_STABLE_1
üst
ccff6eaf
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
141 additions
and
35 deletions
+141
-35
Makefile.am
dmake/Makefile.am
+3
-2
configure.in
dmake/configure.in
+19
-28
extern.h
dmake/extern.h
+1
-1
rulparse.c
dmake/rulparse.c
+1
-1
Makefile.am
dmake/startup/unix/Makefile.am
+1
-1
Makefile.am
dmake/startup/unix/macosx/Makefile.am
+6
-0
Makefile.am
dmake/unix/Makefile.am
+4
-2
tempnam.c
dmake/unix/tempnam.c
+106
-0
No files found.
dmake/Makefile.am
Dosyayı görüntüle @
ab110178
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
#
#
# $RCSfile: Makefile.am,v $
# $RCSfile: Makefile.am,v $
#
#
# $Revision: 1.
4
$
# $Revision: 1.
5
$
#
#
# last change: $Author:
hjs $ $Date: 2002-04-09 17:10:48
$
# last change: $Author:
mh $ $Date: 2002-07-11 08:53:29
$
#
#
# The Contents of this file are made available subject to the terms of
# The Contents of this file are made available subject to the terms of
# either of the following licenses
# either of the following licenses
...
@@ -81,4 +81,5 @@ bin_PROGRAMS = dmake
...
@@ -81,4 +81,5 @@ bin_PROGRAMS = dmake
# set the include path found by configure
# set the include path found by configure
INCLUDES
=
-I
$(top_srcdir)
-I
$(top_builddir)
-I
$(top_srcdir)
/unix/@OS_VERSION@
-I
$(top_srcdir)
/unix
-I
$(top_srcdir)
/unix/@OS_VERSION@/gnu
INCLUDES
=
-I
$(top_srcdir)
-I
$(top_builddir)
-I
$(top_srcdir)
/unix/@OS_VERSION@
-I
$(top_srcdir)
/unix
-I
$(top_srcdir)
/unix/@OS_VERSION@/gnu
CFLAGS
+=
-O
dmake/configure.in
Dosyayı görüntüle @
ab110178
...
@@ -11,7 +11,6 @@ AC_PREREQ(1.4)
...
@@ -11,7 +11,6 @@ AC_PREREQ(1.4)
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
dnl Checks for programs.
dnl Checks for programs.
#AC_PROG_CXX
AC_PROG_CC
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_INSTALL
...
@@ -45,35 +44,27 @@ AC_CHECK_FUNCS(getcwd getwd putenv strcspn strerror strspn strstr)
...
@@ -45,35 +44,27 @@ AC_CHECK_FUNCS(getcwd getwd putenv strcspn strerror strspn strstr)
dnl Checks for OS
dnl Checks for OS
OS_UNAME=`uname`
OS_UNAME=`uname`
case $OS_UNAME in
if test ${OS_UNAME} = SunOS; then
SunOS)
echo "Solaris found"
OS_VERSION=solaris
OS_VERSION=solaris
echo "Solaris found"
fi
;;
if test ${OS_UNAME} = Linux; then
Linux)
echo "Linux found"
OS_VERSION=linux
OS_VERSION=linux
echo "Linux found"
fi
;;
if test ${OS_UNAME} = Irix; then
Irix)
echo "Irix found"
OS_VERSION=sysvr4
OS_VERSION=sysvr4
echo "Irix found"
fi
;;
if test ${OS_UNAME} = Darwin; then
FreeBSD)
echo "Mac OS X found"
OS_VERSION=386ix
OS_VERSION=macosx
echo "FreeBSD found"
fi
;;
CYGWIN* | cygwin* | mingw*)
OS_VERSION=cygwin
echo "cygwin found"
;;
*)
echo "Unknown OS"
;;
esac
AC_SUBST(OS_VERSION)
AC_SUBST(OS_VERSION)
AC_OUTPUT(Makefile unix/Makefile startup/Makefile startup/unix/Makefile \
AC_OUTPUT(Makefile unix/Makefile startup/Makefile startup/unix/Makefile \
startup/unix/linux/Makefile startup/unix/solaris/Makefile dmakeroot.h )
startup/unix/linux/Makefile startup/unix/solaris/Makefile \
startup/unix/macosx/Makefile dmakeroot.h )
#AC_OUTPUT(unix/bsd43/Makefile Makefile makefile unix/solaris/Makefile dbug/malloc/makefile unix/Makefile)
#AC_OUTPUT(unix/bsd43/Makefile Makefile makefile unix/solaris/Makefile dbug/malloc/makefile unix/Makefile)
dnl ******************************
dnl ******************************
...
@@ -108,7 +99,7 @@ _______EOF
...
@@ -108,7 +99,7 @@ _______EOF
if test x$prefix != x; then
if test x$prefix != x; then
echo '"DMAKEROOT := '$prefix'/share/startup",' >> $outfile
echo '"DMAKEROOT := '$prefix'/share/startup",' >> $outfile
echo '"OS := '
`uname`
'",' >> $outfile
echo '"OS := '
${OS_VERSION}
'",' >> $outfile
fi
fi
if cmp -s $outfile dmakeroot.h; then
if cmp -s $outfile dmakeroot.h; then
echo dmakeroot.h is unchanged
echo dmakeroot.h is unchanged
...
...
dmake/extern.h
Dosyayı görüntüle @
ab110178
/* RCS $Id: extern.h,v 1.
2 2001-04-20 14:21:05
mh Exp $
/* RCS $Id: extern.h,v 1.
3 2002-07-11 08:53:29
mh Exp $
--
--
-- SYNOPSIS
-- SYNOPSIS
-- External declarations for dmake functions.
-- External declarations for dmake functions.
...
...
dmake/rulparse.c
Dosyayı görüntüle @
ab110178
/* RCS $Id: rulparse.c,v 1.
2 2002-04-10 15:40:39 hjs
Exp $
/* RCS $Id: rulparse.c,v 1.
3 2002-07-11 08:53:30 mh
Exp $
--
--
-- SYNOPSIS
-- SYNOPSIS
-- Perform semantic analysis on input
-- Perform semantic analysis on input
...
...
dmake/startup/unix/Makefile.am
Dosyayı görüntüle @
ab110178
...
@@ -4,5 +4,5 @@ startupdir = $(datadir)/startup/unix
...
@@ -4,5 +4,5 @@ startupdir = $(datadir)/startup/unix
startup_DATA
=
macros.mk recipes.mk
startup_DATA
=
macros.mk recipes.mk
#SUBDIRS = 386ix bsd43 coherent linux macosx solaris sysvr1 sysvr3 sysvr4 xenix
#SUBDIRS = 386ix bsd43 coherent linux macosx solaris sysvr1 sysvr3 sysvr4 xenix
SUBDIRS
=
linux
SUBDIRS
=
@OS_VERSION@
dmake/startup/unix/macosx/Makefile.am
0 → 100755
Dosyayı görüntüle @
ab110178
startupdir
=
$(datadir)
/startup/unix/macosx
startup_DATA
=
macros.mk
dmake/unix/Makefile.am
Dosyayı görüntüle @
ab110178
noinst_LIBRARIES
=
libunix.a
noinst_LIBRARIES
=
libunix.a
libunix_a_SOURCES
=
arlib.c dcache.c dirbrk.c rmprq.c ruletab.c runargv.c
libunix_a_SOURCES
=
arlib.c dcache.c dirbrk.c rmprq.c ruletab.c runargv.c
tempnam.c
INCLUDES
=
-I
$(top_srcdir)
-I
$(top_builddir)
-I
$(top_srcdir)
/unix/@OS_VERSION@/gnu
-I
$(top_srcdir)
/unix/@OS_VERSION@
-I
$(top_srcdir)
/unix
INCLUDES
=
-I
$(top_srcdir)
-I
$(top_builddir)
-I
$(top_srcdir)
/unix/@OS_VERSION@/gnu
-I
$(top_srcdir)
/unix
-I
$(top_srcdir)
/unix/@OS_VERSION@
CFLAGS
+=
-O
dmake/unix/tempnam.c
0 → 100644
Dosyayı görüntüle @
ab110178
/* RCS $Id: tempnam.c,v 1.2 2002-07-11 08:53:35 mh Exp $
--
-- SYNOPSIS
-- tempnam
--
-- DESCRIPTION
-- temp file name generation routines.
--
-- AUTHOR
-- Dennis Vadura, dvadura@dmake.wticorp.com
--
-- WWW
-- http://dmake.wticorp.com/
--
-- COPYRIGHT
-- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
--
-- This program is NOT free software; you can redistribute it and/or
-- modify it under the terms of the Software License Agreement Provided
-- in the file <distribution-root>/readme/license.txt.
--
-- LOG
-- Use cvs log to obtain detailed change logs.
*/
#ifdef __APPLE__
/*LINTLIBRARY*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#if defined(max)
# undef max
#endif
#define max(A,B) (((A)<(B))?(B):(A))
extern
char
*
mktemp
();
extern
int
access
();
int
d_access
();
char
*
dtempnam
(
dir
,
prefix
)
char
*
dir
;
/* use this directory please (if non-NULL) */
char
*
prefix
;
/* use this (if non-NULL) as filename prefix */
{
static
int
count
=
0
;
register
char
*
p
,
*
q
,
*
tmpdir
;
int
tl
=
0
,
dl
=
0
,
pl
;
char
buf
[
30
];
pl
=
strlen
(
P_tmpdir
);
if
(
(
tmpdir
=
getenv
(
"TMPDIR"
))
!=
NULL
)
tl
=
strlen
(
tmpdir
);
else
if
(
(
tmpdir
=
getenv
(
"TMP"
))
!=
NULL
)
tl
=
strlen
(
tmpdir
);
if
(
dir
!=
NULL
)
dl
=
strlen
(
dir
);
if
(
(
p
=
malloc
((
unsigned
)(
max
(
max
(
dl
,
tl
),
pl
)
+
13
)))
==
NULL
)
return
(
NULL
);
*
p
=
'\0'
;
if
(
(
tl
==
0
)
||
(
d_access
(
strcpy
(
p
,
tmpdir
),
0
)
!=
0
)
)
if
(
(
dl
==
0
)
||
(
d_access
(
strcpy
(
p
,
dir
),
0
)
!=
0
)
)
if
(
d_access
(
strcpy
(
p
,
P_tmpdir
),
0
)
!=
0
)
if
(
!
prefix
)
prefix
=
"tp"
;
if
(
prefix
)
{
*
(
p
+
strlen
(
p
)
+
2
)
=
'\0'
;
(
void
)
strncat
(
p
,
prefix
,
2
);
}
sprintf
(
buf
,
"%08x"
,
getpid
()
);
buf
[
6
]
=
'\0'
;
(
void
)
strcat
(
p
,
buf
);
sprintf
(
buf
,
"%04d"
,
count
++
);
q
=
p
+
strlen
(
p
)
-
6
;
*
q
++
=
buf
[
0
];
*
q
++
=
buf
[
1
];
*
q
++
=
buf
[
2
];
*
q
++
=
buf
[
3
];
if
(
(
q
=
strrchr
(
p
,
'.'
))
!=
NULL
)
*
q
=
'\0'
;
return
(
p
);
}
d_access
(
name
,
flag
)
char
*
name
;
int
flag
;
{
extern
char
*
DirSepStr
;
char
*
p
;
int
r
;
if
(
name
==
NULL
||
!*
name
)
return
(
1
);
/* NULL dir means current dir */
r
=
access
(
name
,
flag
);
p
=
name
+
strlen
(
name
)
-
1
;
if
(
*
p
!=
'/'
&&
*
p
!=
'\\'
)
strcat
(
p
,
DirSepStr
);
return
(
r
);
}
#endif
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