Browse Source

Removed autotools files and dependency from admin submodule.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 1 month ago
parent
commit
09f1a33243
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
4 changed files with 0 additions and 174 deletions
  1. 0
    3
      .gitmodules
  2. 0
    1
      admin
  3. 0
    6
      config.h
  4. 0
    164
      configure

+ 0
- 3
.gitmodules View File

@@ -1,6 +1,3 @@
1
-[submodule "admin"]
2
-	path = admin
3
-	url = http://system@scm.trinitydesktop.org/scm/git/tde-common-admin
4 1
 [submodule "cmake"]
5 2
 	path = cmake
6 3
 	url = http://system@scm.trinitydesktop.org/scm/git/tde-common-cmake

+ 0
- 1
admin

@@ -1 +0,0 @@
1
-Subproject commit 68f23556e638353e46b444d3a4863a64936bd36a

+ 0
- 6
config.h View File

@@ -1,6 +0,0 @@
1
-/* config.h -- Automatically generated by abakus.py
2
- * Any changes you make to this file will be overwritten!
3
- */
4
-
5
-/* HAVE_MPFR -- Defined if the MPFR library is being used. */
6
-/* #undef HAVE_MPFR */

+ 0
- 164
configure View File

@@ -1,164 +0,0 @@
1
-#!/usr/bin/env python
2
-# Configure script for abakus.  I think it's better than the sample that came
3
-# with bksys.  Feel free to do with it what you want.
4
-# By Michael Pyne <michael.pyne@kdemail.net>
5
-
6
-import sys
7
-import re
8
-
9
-BOLD="\033[1m"
10
-RED="\033[91m"
11
-GREEN="\033[92m"
12
-YELLOW="\033[93m"
13
-CYAN="\033[96m"
14
-NORMAL="\033[0m"
15
-
16
-PROGRAM_NAME='abakus'
17
-
18
-# First let's see if they asked for help.
19
-if '--help' in sys.argv:
20
-    print '''This is a configure script to prepare %s for building.
21
-
22
-You can pass the command line argument debug=1 to enable debugging for the
23
-application, which can be useful if you have problems.
24
-
25
-Otherwise, just run ./configure, and if you don't already have scons, a mini
26
-version will be installed suitable for building %s.
27
-'''.replace('%s', PROGRAM_NAME)
28
-    sys.exit(0)
29
-
30
-# Check that we have the minimum version of Python needs to run SCons.
31
-if sys.hexversion < 0x02030000:
32
-    # Use regexp for compatibility with ancient Python
33
-    version = re.split(' ', sys.version)[0]
34
-
35
-    print RED + 'Sorry, your version of Python is too old.' + NORMAL
36
-    print PROGRAM_NAME + ' requires Python 2.3 or greater to build.'
37
-    print "\nYou have Python " + version
38
-    sys.exit(1)
39
-
40
-import os
41
-
42
-# Check if scons is installed.  We can use cool Python features now that we
43
-# know we aren't using an ancient version of Python.
44
-result = os.system('scons -v > /dev/null 2>&1')
45
-scons = 'scons'
46
-
47
-if os.WEXITSTATUS(result) == 0:
48
-    print GREEN + "scons already installed." + NORMAL
49
-else:
50
-    # If we didn't find scons, don't whine to the user about it, just fix it.
51
-    print YELLOW + 'scons not installed, installing local copy.' + NORMAL
52
-
53
-    # Split this into two steps since some tars don't use j to mean bzip2
54
-    # compressed.
55
-    result = os.system('bzcat bksys/scons-mini.tar.bz2 | tar x')
56
-
57
-    if os.WEXITSTATUS(result) != 0:
58
-	print RED + 'Unable to extract scons' + NORMAL
59
-	sys.exit(2)
60
-
61
-    scons = '%s/scons' % os.getcwd()
62
-
63
-# Now we now where scons is.  Let's create a Makefile (after we configure) so
64
-# that all the user has to do is type 'make'.  Allow the user to pass command
65
-# line arguments, which will be passed to the configure process.
66
-if len(sys.argv) < 2:
67
-    options = ''
68
-else:
69
-    options = " ".join(sys.argv[1:])
70
-    # reduce is pretty cool
71
-#    options = reduce(lambda x, y: x + '\n' + y, sys.argv[1:])
72
-
73
-result = os.system(scons + ' configure ' + options)
74
-if os.WEXITSTATUS(result) != 0:
75
-    print RED + 'Unable to configure scons' + NORMAL
76
-    sys.exit(3)
77
-
78
-# Recursive generates a makefile for a directory.  If topDir is True, the
79
-# Makefile is slightly different.
80
-def generate_makefile(dir, topDir = False):
81
-
82
-    file = name + "/Makefile"
83
-
84
-    # Write out Makefile.
85
-    try:
86
-        makefile = open(file, 'w')
87
-    except IOError:
88
-        print RED + "Unable to open " + file + NORMAL
89
-        sys.exit(4)
90
-
91
-    text = '''
92
-## Makefile automatically generated by configure
93
-
94
-SCONS=$scons
95
-
96
-# $scons            : compile
97
-# $scons -c         : clean
98
-# $scons install    : install
99
-# $scons -c install : uninstall and clean
100
-
101
-# Default target: use scons to build the program
102
-all:
103
-	@$(SCONS) -Q
104
-
105
-# Debugging possibilies:
106
-# $scons --debug=explain, $scons --debug=tree
107
-
108
-# To optimize the runtime:
109
-# $scons --max-drift=1 --implicit-deps-unchanged
110
-debug:
111
-	@$(SCONS) -Q --debug=tree
112
-
113
-clean:
114
-	@$(SCONS) -c
115
-
116
-install:
117
-	@$(SCONS) install
118
-
119
-uninstall:
120
-	@$(SCONS) uninstall
121
-
122
-# This target creates a tarball of the project (in theory)
123
-dist:
124
-	@$(SCONS) dist
125
-'''
126
-
127
-    if topDir:
128
-        text = text.replace('$scons', scons)
129
-    else:
130
-        text = text.replace('$scons', scons + ' -u')
131
-
132
-    try:
133
-        print "Generating " + GREEN + file + NORMAL
134
-        makefile.write(text)
135
-        makefile.close()
136
-    except IOError:
137
-        print RED + "Unable to write to the Makefile!" + NORMAL
138
-        sys.exit(5)
139
-
140
-# Recursively generate Makefiles for convienience.
141
-for name, dirs, files in os.walk('.'):
142
-    # Don't try to build hidden directories.
143
-    remove = filter(lambda x: x[0] == '.', dirs)
144
-    for i in remove:
145
-        dirs.remove(i)
146
-
147
-    if 'SConstruct' in files:
148
-        # We're in the very top directory.
149
-        generate_makefile(name, topDir = True)
150
-
151
-        for dir in ['cache', 'bksys']:
152
-            if dir in dirs:
153
-                dirs.remove(dir)
154
-    elif 'SConscript' in files:
155
-        generate_makefile(name)
156
-
157
-# The Makefile has been written, we're pretty much done.
158
-message = '''
159
-The Makefile(s) have been generated.  Type:
160
-	`make'         to build %s, and
161
-	`make install' to install %s.
162
-'''.replace('%s', PROGRAM_NAME)
163
-
164
-print GREEN + message + NORMAL

Loading…
Cancel
Save