Browse code

moved project to mulle-project from mulle-homebrew

Nat! authored on 16-10-2017 17:50:00
Showing 9 changed files
... ...
@@ -16,7 +16,7 @@ addictions/
16 16
 mulle-bootstrap.sublime-workspace
17 17
 relpath-python.sh
18 18
 relpath.sh
19
-tap-info.sh
19
+mulle-projec/publisher-info.sh
20 20
 
21 21
 tutorial/*/.bootstrap
22 22
 
23 23
deleted file mode 100755
... ...
@@ -1,132 +0,0 @@
1
-#! /usr/bin/env bash
2
-#
3
-#   Copyright (c) 2017 Nat! - Mulle kybernetiK
4
-#   All rights reserved.
5
-#
6
-#   Redistribution and use in source and binary forms, with or without
7
-#   modification, are permitted provided that the following conditions are met:
8
-#
9
-#   Redistributions of source code must retain the above copyright notice, this
10
-#   list of conditions and the following disclaimer.
11
-#
12
-#   Redistributions in binary form must reproduce the above copyright notice,
13
-#   this list of conditions and the following disclaimer in the documentation
14
-#   and/or other materials provided with the distribution.
15
-#
16
-#   Neither the name of Mulle kybernetiK nor the names of its contributors
17
-#   may be used to endorse or promote products derived from this software
18
-#   without specific prior written permission.
19
-#
20
-#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
-#   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
-#   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
-#   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24
-#   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
-#   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
-#   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
-#   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
-#   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
-#   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
-#   POSSIBILITY OF SUCH DAMAGE.
31
-#
32
-#
33
-# For documentation and help see:
34
-#    https://github.com/mulle-nat/mulle-homebrew
35
-#
36
-# Run this somewhat like this (for real: remove -n):
37
-#   ./bin/release.sh -v -n --publisher mulle-nat --publisher-tap mulle-kybernetik/software/
38
-#
39
-
40
-
41
-#######
42
-# Ideally changes to the following values are done with the command line
43
-# which makes it easier for forks.
44
-#######
45
-
46
-MULLE_BOOTSTRAP_FAIL_PREFIX="`basename -- $0`"
47
-MULLE_HOMEBREW_VERSION="5.3.0"
48
-
49
-if [ -z "`command -v mulle-homebrew-env`" ]
50
-then
51
-   cat <<EOF >&2
52
-mulle-homebrew-env not found in PATH.
53
-Visit the homepage for installation instructions:
54
-   https://github.com/mulle-nat/mulle-homebrew
55
-EOF
56
-   exit 1
57
-fi
58
-
59
-INSTALLED_MULLE_HOMEBREW_VERSION="`mulle-homebrew-env version`" || exit 1
60
-LIBEXEC_DIR="`mulle-homebrew-env libexec-path`" || exit 1
61
-RELEASE_DIR="`dirname -- "$0"`"
62
-
63
-. "${LIBEXEC_DIR}/mulle-files.sh"       || exit 1
64
-. "${LIBEXEC_DIR}/mulle-publisher.sh"   || exit 1
65
-. "${LIBEXEC_DIR}/mulle-homebrew.sh"    || exit 1
66
-. "${LIBEXEC_DIR}/mulle-git.sh"         || exit 1
67
-. "${LIBEXEC_DIR}/mulle-version.sh"     || exit 1
68
-. "${LIBEXEC_DIR}/mulle-environment.sh" || exit 1
69
-
70
-
71
-main()
72
-{
73
-   log_verbose "mulle-homebrew-version ${MULLE_HOMEBREW_VERSION}"
74
-
75
-   if [ "${DO_GIT_RELEASE}" != "YES" -a "${DO_GENERATE_FORMULA}" != "YES" ]
76
-   then
77
-      fail "Nothing to do! bin/version-info.sh and bin/formula-info.sh are missing"
78
-   fi
79
-
80
-   if [ "${DO_GIT_RELEASE}" = "YES" ]
81
-   then
82
-     # do the release
83
-      git_main "${BRANCH}" "${ORIGIN}" "${TAG}" "${GITHUB}" || exit 1
84
-   fi
85
-
86
-   if [ "${DO_GENERATE_FORMULA}" = "YES" ]
87
-   then
88
-      if [ -z "${PUBLISHER}" ]
89
-      then
90
-         fail "You need to specify a publisher with --publisher (hint: https://github.com/<publisher>)"
91
-      fi
92
-
93
-      if [ -z "${PUBLISHER_TAP}" ]
94
-      then
95
-         fail "You need to specify a publisher tap with --tap (hint: <mulle-kybernetik/software>)"
96
-      fi
97
-
98
-      # generate the formula and push it
99
-      if ! homebrew_main "${PROJECT}" \
100
-                         "${NAME}" \
101
-                         "${VERSION}" \
102
-                         "${DEPENDENCIES}" \
103
-                         "${BUILD_DEPENDENCIES}" \
104
-                         "${HOMEPAGE_URL}" \
105
-                         "${DESC}" \
106
-                         "${ARCHIVE_URL}" \
107
-                         "${HOMEBREW_TAP}" \
108
-                         "${RBFILE}"
109
-      then
110
-         return 1
111
-      fi
112
-   fi
113
-
114
-   #
115
-   # check if someone installed a post_release function
116
-   # if yes call it (maybe calls mulle-homebrew-debian)
117
-   #
118
-   if [ "`type -t post_release`" = "function" ]
119
-   then
120
-      post_release "${PROJECT}" \
121
-                   "${NAME}" \
122
-                   "${VERSION}" \
123
-                   "${DEPENDENCIES}" \
124
-                   "${BUILD_DEPENDENCIES}" \
125
-                   "${HOMEPAGE_URL}" \
126
-                   "${DESC}" \
127
-                   "${ARCHIVE_URL}" \
128
-                   "${DEBIAN_DEPENDENCIES}"
129
-   fi
130
-}
131
-
132
-main "$@"
... ...
@@ -36,7 +36,7 @@ echo "deb [arch=all] http://www.mulle-kybernetik.com `lsb_release -c -s` main" \
36 36
 > "/etc/apt/sources.list.d/mulle-nat.mulle-kybernetik.com.list"
37 37
 
38 38
 apt-get update
39
-apt-get -y --allow-unauthenticated install mulle-bootstrap
39
+apt-get -y install mulle-bootstrap
40 40
 ```
41 41
 
42 42
 ## Windows: How to install
... ...
@@ -30,8 +30,8 @@
30 30
 #   POSSIBILITY OF SUCH DAMAGE.
31 31
 #
32 32
 MULLE_EXECUTABLE_VERSION_MAJOR=3
33
-MULLE_EXECUTABLE_VERSION_MINOR=14
34
-MULLE_EXECUTABLE_VERSION_PATCH=1
33
+MULLE_EXECUTABLE_VERSION_MINOR=15
34
+MULLE_EXECUTABLE_VERSION_PATCH=0
35 35
 
36 36
 MULLE_EXECUTABLE_VERSION="${MULLE_EXECUTABLE_VERSION_MAJOR}.${MULLE_EXECUTABLE_VERSION_MINOR}.${MULLE_EXECUTABLE_VERSION_PATCH}"
37 37
 
38 38
similarity index 100%
39 39
rename from bin/formula-info.sh
40 40
rename to mulle-project/formula-info.sh
41 41
similarity index 100%
42 42
rename from bin/generate-formula.sh
43 43
rename to mulle-project/generate-formula.sh
44 44
similarity index 100%
45 45
rename from bin/post-release.sh
46 46
rename to mulle-project/post-release.sh
47 47
new file mode 100755
... ...
@@ -0,0 +1,9 @@
1
+PUBLISHER="mulle-nat"
2
+PUBLISHER_TAP="mulle-kybernetik/software"
3
+PUBLISHER_FULLNAME="Mulle kybernetiK"
4
+PUBLISHER_EMAIL="Nat! <nat@mulle-kybernetik.de>"
5
+
6
+# community has no own domain yet
7
+PUBLISHER_DOMAIN="mulle-kybernetik.com"
8
+PUBLISHER_DEBIAN_GPG_PATH="www.${PUBLISHER_DOMAIN}/dists/debian-admin-pub.asc"
9
+PUBLISHER_DEBIAN_DISTS_PATH="www.${PUBLISHER_DOMAIN}"
0 10
similarity index 100%
1 11
rename from bin/version-info.sh
2 12
rename to mulle-project/version-info.sh