File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ FILE="$1"
63
63
# Package: MachinekitClient-Nightly-MacOSX-<branch>-<arch> (e.g. MachinekitClient-Nightly-master-x64)
64
64
65
65
# Read app name from file name (get characters before first dash)
66
- APPNAME=" $( basename " $FILE " | sed -r ' s|^([^-]*)-.*$|\1|' ) "
66
+ APPNAME=" $( basename " $FILE " | sed -E ' s|^([^-]*)-.*$|\1|' ) "
67
67
68
68
# Read version from the file name (get characters between first and last dash)
69
- VERSION=" $( basename " $FILE " | sed -r ' s|^[^-]*-(.*)-[^-]*$|\1|' ) "
69
+ VERSION=" $( basename " $FILE " | sed -E ' s|^[^-]*-(.*)-[^-]*$|\1|' ) "
70
70
71
71
# Read architecture from file name (characters between last dash and .dmg)
72
- ARCH=" $( basename " $FILE " | sed -r ' s|^.*-([^-]*)\.dmg$|\1|' ) "
72
+ ARCH=" $( basename " $FILE " | sed -E ' s|^.*-([^-]*)\.dmg$|\1|' ) "
73
73
74
74
case " ${ARCH} " in
75
75
x86_64|x64|amd64 )
@@ -107,10 +107,10 @@ else
107
107
url_query=" publish=1&override=1" # Automatically publish, overwrite existing
108
108
109
109
# Get Git branch from $VERSION (get characters between first and last dash)
110
- BRANCH=" $( echo $VERSION | sed -r ' s|^[^-]*-(.*)-[^-]*$|\1|' ) "
110
+ BRANCH=" $( echo $VERSION | sed -E ' s|^[^-]*-(.*)-[^-]*$|\1|' ) "
111
111
112
112
# Get Git commit from $VERSION (get characters after last dash)
113
- COMMIT=" $( echo $VERSION | sed -r ' s|^.*-([^-]*)$|\1|' ) "
113
+ COMMIT=" $( echo $VERSION | sed -E ' s|^.*-([^-]*)$|\1|' ) "
114
114
115
115
PCK_NAME=" $APPNAME -MacOSX-$BRANCH -$ARCH "
116
116
BINTRAY_REPO=" ${BINTRAY_REPO:- MachinekitClient-Development} " # env, or use "MachinekitClient-Development"
Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ FILE="$1"
63
63
# Package: QtQuickVcp-Nightly-MacOSX-<branch>-<arch> (e.g. QtQuickVcp-Nightly-master-x64)
64
64
65
65
# Read app name from file name (get characters before first dash)
66
- APPNAME=" $( basename " $FILE " | sed -r ' s|^([^-]*)-.*$|\1|' ) "
66
+ APPNAME=" $( basename " $FILE " | sed -E ' s|^([^-]*)-.*$|\1|' ) "
67
67
68
68
# Read version from the file name (get characters between first and almost last dash)
69
- VERSION=" $( basename " $FILE " | sed -r ' s|^[^-]*-(.*)-[^-]*-[^-]*$|\1|' ) "
69
+ VERSION=" $( basename " $FILE " | sed -E ' s|^[^-]*-(.*)-[^-]*-[^-]*$|\1|' ) "
70
70
71
71
# Read architecture from file name (characters between last dash and .tar.gz)
72
- ARCH=" $( basename " $FILE " | sed -r ' s|^.*-([^-]*)\.tar.gz$|\1|' ) "
72
+ ARCH=" $( basename " $FILE " | sed -E ' s|^.*-([^-]*)\.tar.gz$|\1|' ) "
73
73
74
74
case " ${ARCH} " in
75
75
x86_64|x64|amd64 )
@@ -107,10 +107,10 @@ else
107
107
url_query=" publish=1&override=1" # Automatically publish, overwrite existing
108
108
109
109
# Get Git branch from $VERSION (get characters between first and last dash)
110
- BRANCH=" $( echo $VERSION | sed -r ' s|^[^-]*-(.*)-[^-]*$|\1|' ) "
110
+ BRANCH=" $( echo $VERSION | sed -E ' s|^[^-]*-(.*)-[^-]*$|\1|' ) "
111
111
112
112
# Get Git commit from $VERSION (get characters after last dash)
113
- COMMIT=" $( echo $VERSION | sed -r ' s|^.*-([^-]*)$|\1|' ) "
113
+ COMMIT=" $( echo $VERSION | sed -E ' s|^.*-([^-]*)$|\1|' ) "
114
114
115
115
PCK_NAME=" $APPNAME -MacOSX-$BRANCH -$ARCH "
116
116
BINTRAY_REPO=" ${BINTRAY_REPO:- QtQuickVcp-Development} " # env, or use "QtQuickVcp-Development"
You can’t perform that action at this time.
0 commit comments