Merge compiz:mitya57/bzr-to-git into compiz:master

Proposed by Dmitry Shachnev
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 9bca664af881fe31b46be79a411450f71a056a19
Merged at revision: 9bca664af881fe31b46be79a411450f71a056a19
Proposed branch: compiz:mitya57/bzr-to-git
Merge into: compiz:master
Diff against target: 67 lines (+5/-16)
3 files modified
.gitattributes (+3/-0)
cmake/CompizCommon.cmake (+2/-15)
dev/null (+0/-1)
Reviewer Review Type Date Requested Status
Alberts Muktupāvels Approve
Marco Trevisan (Treviño) Approve
Compiz Maintainers Pending
Review via email: mp+363197@code.launchpad.net

Description of the change

Various fixes for bzr → git migration:

- Remove unused CMake variable: IS_BZR_REPO.
- Remove unused files: .bzr-builddeb/default.conf, .bzrignore.
- Use ‘git archive’ for generating tarballs.
- Use ‘git shortlog -se’ for generating AUTHORS file (see also mitya57/mailmap branch).

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Thanks!

review: Approve
Revision history for this message
Alberts Muktupāvels (muktupavels) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.bzr-builddeb/default.conf b/.bzr-builddeb/default.conf
2deleted file mode 100644
3index 6c96a98..0000000
4--- a/.bzr-builddeb/default.conf
5+++ /dev/null
6@@ -1,2 +0,0 @@
7-[BUILDDEB]
8-split = True
9diff --git a/.bzrignore b/.bzrignore
10deleted file mode 100644
11index 7b46b22..0000000
12--- a/.bzrignore
13+++ /dev/null
14@@ -1 +0,0 @@
15-.bzr-repo
16diff --git a/.gitattributes b/.gitattributes
17new file mode 100644
18index 0000000..0e65005
19--- /dev/null
20+++ b/.gitattributes
21@@ -0,0 +1,3 @@
22+/debian export-ignore
23+/.gitattributes export-ignore
24+/.gitignore export-ignore
25diff --git a/cmake/CompizCommon.cmake b/cmake/CompizCommon.cmake
26index 0b9f858..e48da17 100644
27--- a/cmake/CompizCommon.cmake
28+++ b/cmake/CompizCommon.cmake
29@@ -95,12 +95,6 @@ set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${COMMON_LINKER_FLA
30 set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${COMMON_LINKER_FLAGS}")
31 set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${COMMON_LINKER_FLAGS}")
32
33-if (IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.bzr)
34- set(IS_BZR_REPO 1)
35-elseif (IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.bzr)
36- set(IS_BZR_REPO 0)
37-endif (IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.bzr)
38-
39 set (USE_GLES ${BUILD_GLES})
40
41 if (USE_GLES)
42@@ -299,10 +293,7 @@ endfunction ()
43 macro (compiz_add_git_dist)
44
45 add_custom_target (dist
46- COMMAND bzr export ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-${VERSION}
47- && rm -rf ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-${VERSION}/debian
48- && tar -C ${CMAKE_BINARY_DIR} -cj ${CMAKE_PROJECT_NAME}-${VERSION} -f ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-${VERSION}.tar.bz2
49- && rm -rf ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-${VERSION}
50+ COMMAND git archive -o ${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-${VERSION}.tar.xz --prefix=${CMAKE_PROJECT_NAME}-${VERSION}/ HEAD
51 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
52
53 endmacro ()
54@@ -399,12 +390,8 @@ macro (compiz_add_release)
55 message ("-- Using auto news update: " ${AUTO_NEWS_UPDATE})
56 endif (AUTO_NEWS_UPDATE)
57
58- if (NOT EXISTS ${CMAKE_SOURCE_DIR}/.AUTHORS.sed)
59- file (WRITE ${CMAKE_SOURCE_DIR}/.AUTHORS.sed "")
60- endif (NOT EXISTS ${CMAKE_SOURCE_DIR}/.AUTHORS.sed)
61-
62 add_custom_target (authors
63- COMMAND bzr log --long --levels=0 | grep -e "^\\s*author:" -e "^\\s*committer:" | cut -d ":" -f 2 | sed -r -f ${CMAKE_SOURCE_DIR}/.AUTHORS.sed | sort -u > AUTHORS
64+ COMMAND git shortlog -se | cut -c8- | grep -vE \"<=?>\" | grep -v \"(none)\" | sort > AUTHORS
65 COMMENT "Generating AUTHORS")
66
67 if (AUTO_NEWS_UPDATE)

Subscribers

People subscribed via source and target branches