Browse code

package support for Linux started

Nat! authored on 05-06-2017 12:44:23
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,106 @@
1
+cmake_minimum_required (VERSION 3.0)
2
+
3
+project( mulle-bootstrap)
4
+
5
+#
6
+# primarily used for packaging on Linux
7
+#
8
+# ```
9
+# mkdir package
10
+# cd package
11
+# cmake ..
12
+# cpack -G DEB
13
+# ```
14
+#
15
+
16
+execute_process( COMMAND ./mulle-bootstrap version
17
+                 WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
18
+                 OUTPUT_VARIABLE MULLE_BOOTSTRAP_VERSION
19
+                 OUTPUT_STRIP_TRAILING_WHITESPACE)
20
+message( STATUS "MULLE_BOOTSTRAP_VERSION is ${MULLE_BOOTSTRAP_VERSION} according to mulle-bootstrap")
21
+
22
+
23
+set( PROJECT_VERSION "${MULLE_BOOTSTRAP_VERSION}")
24
+
25
+
26
+set( SCRIPTS
27
+mulle-bootstrap
28
+mulle-bootstrap-dotdump
29
+)
30
+
31
+set( LIBRARY_SCRIPTS
32
+src/mulle-bootstrap-array.sh
33
+src/mulle-bootstrap-auto-update.sh
34
+src/mulle-bootstrap-brew.sh
35
+src/mulle-bootstrap-build.sh
36
+src/mulle-bootstrap-clean.sh
37
+src/mulle-bootstrap-command.sh
38
+src/mulle-bootstrap-common-settings.sh
39
+src/mulle-bootstrap-copy.sh
40
+src/mulle-bootstrap-defer.sh
41
+src/mulle-bootstrap-dependency-resolve.sh
42
+src/mulle-bootstrap-fetch.sh
43
+src/mulle-bootstrap-functions.sh
44
+src/mulle-bootstrap-gcc.sh
45
+src/mulle-bootstrap-init.sh
46
+src/mulle-bootstrap-local-environment.sh
47
+src/mulle-bootstrap-logging.sh
48
+src/mulle-bootstrap-mingw.sh
49
+src/mulle-bootstrap-mv-force.sh
50
+src/mulle-bootstrap-paths.sh
51
+src/mulle-bootstrap-project.sh
52
+src/mulle-bootstrap-repositories.sh
53
+src/mulle-bootstrap-scm.sh
54
+src/mulle-bootstrap-scripts.sh
55
+src/mulle-bootstrap-settings.sh
56
+src/mulle-bootstrap-show.sh
57
+src/mulle-bootstrap-snip.sh
58
+src/mulle-bootstrap-status.sh
59
+src/mulle-bootstrap-systeminstall.sh
60
+src/mulle-bootstrap-tag.sh
61
+src/mulle-bootstrap-warn-scripts.sh
62
+src/mulle-bootstrap-xcode.sh
63
+src/mulle-bootstrap-zombify.sh
64
+)
65
+
66
+INSTALL( FILES ${SCRIPTS}
67
+PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
68
+            GROUP_EXECUTE GROUP_READ
69
+            WORLD_EXECUTE WORLD_READ
70
+DESTINATION "bin")
71
+
72
+INSTALL( FILES ${LIBRARY_SCRIPTS}
73
+PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
74
+            GROUP_EXECUTE GROUP_READ
75
+            WORLD_EXECUTE WORLD_READ
76
+DESTINATION "libexec/mulle-bootstrap")
77
+
78
+
79
+
80
+#
81
+# CPack and project specific stuff
82
+#
83
+######
84
+set( CPACK_PACKAGE_NAME "mulle-bootstrap")
85
+set( CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
86
+set( CPACK_STRIP_FILES false)
87
+
88
+# stuff needed for Debian
89
+# memo: its impossible to check for chosen generator here
90
+
91
+set( CPACK_PACKAGE_CONTACT "Nat! <nat@mulle-kybernetik.de>")
92
+
93
+set( CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/mulle-nat/mulle-bootstrap")
94
+set( CPACK_DEBIAN_PACKAGE_DESCRIPTION "👢 Cross platform dependency manager - using bash and cmake
95
+")
96
+
97
+set( CPACK_RPM_PACKAGE_VENDOR "Mulle kybernetiK")
98
+set( CPACK_RPM_PACKAGE_DESCRIPTION "${CPACK_DEBIAN_PACKAGE_DESCRIPTION}")
99
+
100
+######
101
+#
102
+# must be after CPACK_PACKAGE_VERSION
103
+include( CPack)
104
+
105
+
106
+
... ...
@@ -67,7 +67,6 @@ resolve_symlinks()
67 67
 }
68 68
 
69 69
 
70
-
71 70
 canonicalize_path()
72 71
 {
73 72
    if [ -d "$1" ]
... ...
@@ -31,7 +31,7 @@
31 31
 #
32 32
 MULLE_EXECUTABLE_VERSION_MAJOR=3
33 33
 MULLE_EXECUTABLE_VERSION_MINOR=6
34
-MULLE_EXECUTABLE_VERSION_PATCH=3
34
+MULLE_EXECUTABLE_VERSION_PATCH=4
35 35
 
36 36
 MULLE_EXECUTABLE_VERSION="${MULLE_EXECUTABLE_VERSION_MAJOR}.${MULLE_EXECUTABLE_VERSION_MINOR}.${MULLE_EXECUTABLE_VERSION_PATCH}"
37 37