Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 350330
Collapse All | Expand All

(-)a/Makefile (-9 / +28 lines)
Lines 224-229 all:: Link Here
224
#
224
#
225
# Define NO_TCLTK if you do not want Tcl/Tk GUI.
225
# Define NO_TCLTK if you do not want Tcl/Tk GUI.
226
#
226
#
227
# Define NO_CVS if you do not want any CVS interface utilities.
228
#
227
# The TCL_PATH variable governs the location of the Tcl interpreter
229
# The TCL_PATH variable governs the location of the Tcl interpreter
228
# used to optimize git-gui for your system.  Only used if NO_TCLTK
230
# used to optimize git-gui for your system.  Only used if NO_TCLTK
229
# is not set.  Defaults to the bare 'tclsh'.
231
# is not set.  Defaults to the bare 'tclsh'.
Lines 401-406 LIB_OBJS = Link Here
401
PROGRAM_OBJS =
403
PROGRAM_OBJS =
402
PROGRAMS =
404
PROGRAMS =
403
SCRIPT_PERL =
405
SCRIPT_PERL =
406
SCRIPT_PERL_CVS =
404
SCRIPT_PYTHON =
407
SCRIPT_PYTHON =
405
SCRIPT_SH =
408
SCRIPT_SH =
406
SCRIPT_LIB =
409
SCRIPT_LIB =
Lines 441-458 SCRIPT_LIB += git-sh-i18n Link Here
441
SCRIPT_PERL += git-add--interactive.perl
444
SCRIPT_PERL += git-add--interactive.perl
442
SCRIPT_PERL += git-difftool.perl
445
SCRIPT_PERL += git-difftool.perl
443
SCRIPT_PERL += git-archimport.perl
446
SCRIPT_PERL += git-archimport.perl
444
SCRIPT_PERL += git-cvsexportcommit.perl
445
SCRIPT_PERL += git-cvsimport.perl
446
SCRIPT_PERL += git-cvsserver.perl
447
SCRIPT_PERL += git-relink.perl
447
SCRIPT_PERL += git-relink.perl
448
SCRIPT_PERL += git-send-email.perl
448
SCRIPT_PERL += git-send-email.perl
449
SCRIPT_PERL += git-svn.perl
449
SCRIPT_PERL += git-svn.perl
450
450
451
SCRIPT_PERL_CVS += git-cvsexportcommit.perl
452
SCRIPT_PERL_CVS += git-cvsimport.perl
453
SCRIPT_PERL_CVS += git-cvsserver.perl
454
451
SCRIPT_PYTHON += git-remote-testgit.py
455
SCRIPT_PYTHON += git-remote-testgit.py
452
SCRIPT_PYTHON += git-p4.py
456
SCRIPT_PYTHON += git-p4.py
453
457
454
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
458
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
455
	  $(patsubst %.perl,%,$(SCRIPT_PERL)) \
459
	  $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \
456
	  $(patsubst %.py,%,$(SCRIPT_PYTHON)) \
460
	  $(patsubst %.py,%,$(SCRIPT_PYTHON)) \
457
	  git-instaweb
461
	  git-instaweb
458
462
Lines 2012-2024 $(SCRIPT_LIB) : % : %.sh Link Here
2012
	$(QUIET_GEN)$(cmd_munge_script) && \
2016
	$(QUIET_GEN)$(cmd_munge_script) && \
2013
	mv $@+ $@
2017
	mv $@+ $@
2014
2018
2019
_SCRIPT_PERL_BUILD =
2020
_SCRIPT_PERL_NOBUILD =
2021
2015
ifndef NO_PERL
2022
ifndef NO_PERL
2016
$(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak
2023
2024
_SCRIPT_PERL_BUILD += $(SCRIPT_PERL)
2025
2026
ifndef NO_CVS
2027
_SCRIPT_PERL_BUILD += $(SCRIPT_PERL_CVS)
2028
else # NO_CVS
2029
_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL_CVS)
2030
endif # NO_CVS
2031
2032
$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): perl/perl.mak
2017
2033
2018
perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL
2034
perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL
2019
	$(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F)
2035
	$(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F)
2020
2036
2021
$(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
2037
$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): % : %.perl
2022
	$(QUIET_GEN)$(RM) $@ $@+ && \
2038
	$(QUIET_GEN)$(RM) $@ $@+ && \
2023
	INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C perl -s --no-print-directory instlibdir` && \
2039
	INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C perl -s --no-print-directory instlibdir` && \
2024
	sed -e '1{' \
2040
	sed -e '1{' \
Lines 2049-2062 git-instaweb: git-instaweb.sh gitweb Link Here
2049
	chmod +x $@+ && \
2065
	chmod +x $@+ && \
2050
	mv $@+ $@
2066
	mv $@+ $@
2051
else # NO_PERL
2067
else # NO_PERL
2052
$(patsubst %.perl,%,$(SCRIPT_PERL)) git-instaweb: % : unimplemented.sh
2068
_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL) $(SCRIPT_PERL_CVS) git-instaweb
2069
endif # NO_PERL
2070
2071
# This is any perl scripts that were disabled it might be empty...
2072
$(patsubst %.perl,%,$(_SCRIPT_PERL_NOBUILD)): % : unimplemented.sh
2053
	$(QUIET_GEN)$(RM) $@ $@+ && \
2073
	$(QUIET_GEN)$(RM) $@ $@+ && \
2054
	sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
2074
	sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
2055
	    -e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \
2075
	    -e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \
2056
	    unimplemented.sh >$@+ && \
2076
	    unimplemented.sh >$@+ && \
2057
	chmod +x $@+ && \
2077
	chmod +x $@+ && \
2058
	mv $@+ $@
2078
	mv $@+ $@
2059
endif # NO_PERL
2060
2079
2061
ifndef NO_PYTHON
2080
ifndef NO_PYTHON
2062
$(patsubst %.py,%,$(SCRIPT_PYTHON)): GIT-CFLAGS
2081
$(patsubst %.py,%,$(SCRIPT_PYTHON)): GIT-CFLAGS
Lines 2091-2097 configure: configure.ac Link Here
2091
# These can record GIT_VERSION
2110
# These can record GIT_VERSION
2092
git.o git.spec \
2111
git.o git.spec \
2093
	$(patsubst %.sh,%,$(SCRIPT_SH)) \
2112
	$(patsubst %.sh,%,$(SCRIPT_SH)) \
2094
	$(patsubst %.perl,%,$(SCRIPT_PERL)) \
2113
	$(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \
2095
	: GIT-VERSION-FILE
2114
	: GIT-VERSION-FILE
2096
2115
2097
TEST_OBJS := $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS))
2116
TEST_OBJS := $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS))
(-)a/t/t9200-git-cvsexportcommit.sh (+5 lines)
Lines 12-17 if ! test_have_prereq PERL; then Link Here
12
	test_done
12
	test_done
13
fi
13
fi
14
14
15
if ! test_have_prereq CVS; then
16
	skip_all='skipping git cvsexportcommit tests, cvs not available'
17
	test_done
18
fi
19
15
cvs >/dev/null 2>&1
20
cvs >/dev/null 2>&1
16
if test $? -ne 1
21
if test $? -ne 1
17
then
22
then
(-)a/t/t9400-git-cvsserver-server.sh (-1 / +7 lines)
Lines 11-19 cvs CLI client via git-cvsserver server' Link Here
11
. ./test-lib.sh
11
. ./test-lib.sh
12
12
13
if ! test_have_prereq PERL; then
13
if ! test_have_prereq PERL; then
14
	skip_all='skipping git cvsserver tests, perl not available'
14
	skip_all='skipping git-cvsserver tests, perl not available'
15
	test_done
15
	test_done
16
fi
16
fi
17
18
if ! test_have_prereq CVS; then
19
	skip_all='skipping git-cvsserver tests, cvs not available'
20
	test_done
21
fi
22
17
cvs >/dev/null 2>&1
23
cvs >/dev/null 2>&1
18
if test $? -ne 1
24
if test $? -ne 1
19
then
25
then
(-)a/t/t9401-git-cvsserver-crlf.sh (-5 / +10 lines)
Lines 38-52 not_present() { Link Here
38
    fi
38
    fi
39
}
39
}
40
40
41
cvs >/dev/null 2>&1
41
if ! test_have_prereq PERL
42
if test $? -ne 1
43
then
42
then
44
    skip_all='skipping git-cvsserver tests, cvs not found'
43
    skip_all='skipping git-cvsserver tests, perl not available'
45
    test_done
44
    test_done
46
fi
45
fi
47
if ! test_have_prereq PERL
46
if ! test_have_prereq CVS
48
then
47
then
49
    skip_all='skipping git-cvsserver tests, perl not available'
48
    skip_all='skipping git-cvsserver tests, cvs not available'
49
    test_done
50
fi
51
cvs >/dev/null 2>&1
52
if test $? -ne 1
53
then
54
    skip_all='skipping git-cvsserver tests, cvs not found'
50
    test_done
55
    test_done
51
fi
56
fi
52
"$PERL_PATH" -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
57
"$PERL_PATH" -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
(-)a/t/t9600-cvsimport.sh (-15 / +26 lines)
Lines 3-16 Link Here
3
test_description='git cvsimport basic tests'
3
test_description='git cvsimport basic tests'
4
. ./lib-cvs.sh
4
. ./lib-cvs.sh
5
5
6
test_expect_success PERL 'setup cvsroot environment' '
6
if ! test_have_prereq PERL
7
then
8
    skip_all='skipping git cvsimport tests, perl not available'
9
    test_done
10
fi
11
if ! test_have_prereq CVS
12
then
13
    skip_all='skipping git cvsimport tests, cvs not available'
14
    test_done
15
fi
16
17
test_expect_success 'setup cvsroot environment' '
7
	CVSROOT=$(pwd)/cvsroot &&
18
	CVSROOT=$(pwd)/cvsroot &&
8
	export CVSROOT
19
	export CVSROOT
9
'
20
'
10
21
11
test_expect_success PERL 'setup cvsroot' '$CVS init'
22
test_expect_success 'setup cvsroot' '$CVS init'
12
23
13
test_expect_success PERL 'setup a cvs module' '
24
test_expect_success 'setup a cvs module' '
14
25
15
	mkdir "$CVSROOT/module" &&
26
	mkdir "$CVSROOT/module" &&
16
	$CVS co -d module-cvs module &&
27
	$CVS co -d module-cvs module &&
Lines 42-64 EOF Link Here
42
	)
53
	)
43
'
54
'
44
55
45
test_expect_success PERL 'import a trivial module' '
56
test_expect_success 'import a trivial module' '
46
57
47
	git cvsimport -a -R -z 0 -C module-git module &&
58
	git cvsimport -a -R -z 0 -C module-git module &&
48
	test_cmp module-cvs/o_fortuna module-git/o_fortuna
59
	test_cmp module-cvs/o_fortuna module-git/o_fortuna
49
60
50
'
61
'
51
62
52
test_expect_success PERL 'pack refs' '(cd module-git && git gc)'
63
test_expect_success 'pack refs' '(cd module-git && git gc)'
53
64
54
test_expect_success PERL 'initial import has correct .git/cvs-revisions' '
65
test_expect_success 'initial import has correct .git/cvs-revisions' '
55
66
56
	(cd module-git &&
67
	(cd module-git &&
57
	 git log --format="o_fortuna 1.1 %H" -1) > expected &&
68
	 git log --format="o_fortuna 1.1 %H" -1) > expected &&
58
	test_cmp expected module-git/.git/cvs-revisions
69
	test_cmp expected module-git/.git/cvs-revisions
59
'
70
'
60
71
61
test_expect_success PERL 'update cvs module' '
72
test_expect_success 'update cvs module' '
62
	(cd module-cvs &&
73
	(cd module-cvs &&
63
	cat <<EOF >o_fortuna &&
74
	cat <<EOF >o_fortuna &&
64
O Fortune,
75
O Fortune,
Lines 86-92 EOF Link Here
86
	)
97
	)
87
'
98
'
88
99
89
test_expect_success PERL 'update git module' '
100
test_expect_success 'update git module' '
90
101
91
	(cd module-git &&
102
	(cd module-git &&
92
	git config cvsimport.trackRevisions true &&
103
	git config cvsimport.trackRevisions true &&
Lines 97-103 test_expect_success PERL 'update git module' ' Link Here
97
108
98
'
109
'
99
110
100
test_expect_success PERL 'update has correct .git/cvs-revisions' '
111
test_expect_success 'update has correct .git/cvs-revisions' '
101
112
102
	(cd module-git &&
113
	(cd module-git &&
103
	 git log --format="o_fortuna 1.1 %H" -1 HEAD^ &&
114
	 git log --format="o_fortuna 1.1 %H" -1 HEAD^ &&
Lines 105-111 test_expect_success PERL 'update has correct .git/cvs-revisions' ' Link Here
105
	test_cmp expected module-git/.git/cvs-revisions
116
	test_cmp expected module-git/.git/cvs-revisions
106
'
117
'
107
118
108
test_expect_success PERL 'update cvs module' '
119
test_expect_success 'update cvs module' '
109
120
110
	(cd module-cvs &&
121
	(cd module-cvs &&
111
		echo 1 >tick &&
122
		echo 1 >tick &&
Lines 114-120 test_expect_success PERL 'update cvs module' ' Link Here
114
	)
125
	)
115
'
126
'
116
127
117
test_expect_success PERL 'cvsimport.module config works' '
128
test_expect_success 'cvsimport.module config works' '
118
129
119
	(cd module-git &&
130
	(cd module-git &&
120
		git config cvsimport.module module &&
131
		git config cvsimport.module module &&
Lines 126-132 test_expect_success PERL 'cvsimport.module config works' ' Link Here
126
137
127
'
138
'
128
139
129
test_expect_success PERL 'second update has correct .git/cvs-revisions' '
140
test_expect_success 'second update has correct .git/cvs-revisions' '
130
141
131
	(cd module-git &&
142
	(cd module-git &&
132
	 git log --format="o_fortuna 1.1 %H" -1 HEAD^^ &&
143
	 git log --format="o_fortuna 1.1 %H" -1 HEAD^^ &&
Lines 135-141 test_expect_success PERL 'second update has correct .git/cvs-revisions' ' Link Here
135
	test_cmp expected module-git/.git/cvs-revisions
146
	test_cmp expected module-git/.git/cvs-revisions
136
'
147
'
137
148
138
test_expect_success PERL 'import from a CVS working tree' '
149
test_expect_success 'import from a CVS working tree' '
139
150
140
	$CVS co -d import-from-wt module &&
151
	$CVS co -d import-from-wt module &&
141
	(cd import-from-wt &&
152
	(cd import-from-wt &&
Lines 148-159 test_expect_success PERL 'import from a CVS working tree' ' Link Here
148
159
149
'
160
'
150
161
151
test_expect_success PERL 'no .git/cvs-revisions created by default' '
162
test_expect_success 'no .git/cvs-revisions created by default' '
152
163
153
	! test -e import-from-wt/.git/cvs-revisions
164
	! test -e import-from-wt/.git/cvs-revisions
154
165
155
'
166
'
156
167
157
test_expect_success PERL 'test entire HEAD' 'test_cmp_branch_tree master'
168
test_expect_success 'test entire HEAD' 'test_cmp_branch_tree master'
158
169
159
test_done
170
test_done
(-)a/t/t9601-cvsimport-vendor-branch.sh (+11 lines)
Lines 34-39 Link Here
34
test_description='git cvsimport handling of vendor branches'
34
test_description='git cvsimport handling of vendor branches'
35
. ./lib-cvs.sh
35
. ./lib-cvs.sh
36
36
37
if ! test_have_prereq PERL
38
then
39
    skip_all='skipping git cvsimport tests, perl not available'
40
    test_done
41
fi
42
if ! test_have_prereq CVS
43
then
44
    skip_all='skipping git cvsimport tests, cvs not available'
45
    test_done
46
fi
47
37
setup_cvs_test_repository t9601
48
setup_cvs_test_repository t9601
38
49
39
test_expect_success PERL 'import a module with a vendor branch' '
50
test_expect_success PERL 'import a module with a vendor branch' '
(-)a/t/t9602-cvsimport-branches-tags.sh (+11 lines)
Lines 6-11 Link Here
6
test_description='git cvsimport handling of branches and tags'
6
test_description='git cvsimport handling of branches and tags'
7
. ./lib-cvs.sh
7
. ./lib-cvs.sh
8
8
9
if ! test_have_prereq PERL
10
then
11
    skip_all='skipping git cvsimport tests, perl not available'
12
    test_done
13
fi
14
if ! test_have_prereq CVS
15
then
16
    skip_all='skipping git cvsimport tests, cvs not available'
17
    test_done
18
fi
19
9
setup_cvs_test_repository t9602
20
setup_cvs_test_repository t9602
10
21
11
test_expect_success PERL 'import module' '
22
test_expect_success PERL 'import module' '
(-)a/t/t9603-cvsimport-patchsets.sh (+11 lines)
Lines 14-19 Link Here
14
test_description='git cvsimport testing for correct patchset estimation'
14
test_description='git cvsimport testing for correct patchset estimation'
15
. ./lib-cvs.sh
15
. ./lib-cvs.sh
16
16
17
if ! test_have_prereq PERL
18
then
19
    skip_all='skipping git cvsimport tests, perl not available'
20
    test_done
21
fi
22
if ! test_have_prereq CVS
23
then
24
    skip_all='skipping git cvsimport tests, cvs not available'
25
    test_done
26
fi
27
17
setup_cvs_test_repository t9603
28
setup_cvs_test_repository t9603
18
29
19
test_expect_failure 'import with criss cross times on revisions' '
30
test_expect_failure 'import with criss cross times on revisions' '
(-)a/t/test-lib.sh (-1 / +1 lines)
Lines 616-621 case $(uname -s) in Link Here
616
esac
616
esac
617
617
618
( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
618
( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
619
test -z "$NO_CVS" && test_set_prereq CVS
619
test -z "$NO_PERL" && test_set_prereq PERL
620
test -z "$NO_PERL" && test_set_prereq PERL
620
test -z "$NO_PYTHON" && test_set_prereq PYTHON
621
test -z "$NO_PYTHON" && test_set_prereq PYTHON
621
test -n "$USE_LIBPCRE" && test_set_prereq LIBPCRE
622
test -n "$USE_LIBPCRE" && test_set_prereq LIBPCRE
622
- 

Return to bug 350330