-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some additional publishing options
- Loading branch information
1 parent
77baab3
commit 6b1eed2
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
BOLD="\e[1;97m" | ||
GREEN="\e[32m" | ||
CYAN="\e[36m" | ||
ENDCOLOR="\e[0m" | ||
|
||
VERSION=$1 | ||
SUFFIX=$2 | ||
|
||
if [[ -z "${VERSION}" || -z "${SUFFIX}" ]]; then | ||
echo -e "Syntax: publish_unistring <version> <suffix>\nExample: publish_unistring 1.0 rc2\n"; | ||
exit 0 | ||
fi | ||
|
||
echo -e "${GREEN}Downloading libunistring ${VERSION} ${ENDCOLOR}"; | ||
WGET="wget https://ftp.gnu.org/gnu/libunistring/libunistring-${VERSION}.tar.gz"; | ||
echo ${WGET} | ||
command ${WGET} 2>/dev/null; | ||
|
||
META_FILE="libunistring-${SUFFIX}-${VERSION}.com" | ||
|
||
echo -e "\n${GREEN}Writing ${META_FILE}${ENDCOLOR}"; | ||
cp ./libunistring.ingredient.com ${META_FILE}; | ||
sed -i "s/SUFFIX/${SUFFIX}/g" ${META_FILE}; | ||
sed -i "s/VERSION/${VERSION}/g" ${META_FILE}; | ||
echo ${META_FILE}; | ||
|
||
echo -e "\n${GREEN}This command was manually created to state publish libunistring: ${CYAN}\n" | ||
cat ${META_FILE}; | ||
echo -e "\n${ENDCOLOR}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
state publish \ | ||
--namespace private/ActiveStateBE/shared \ | ||
--name libunistring-demo-SUFFIX \ | ||
--version "VERSION" \ | ||
--description "Unicode string library" \ | ||
--author "Bruno Haible <[email protected]>" \ | ||
--depend "builder/autotools-builder@>=0" \ | ||
--feature shared/libunistring@VERSION \ | ||
libunistring-VERSION.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
state publish \ | ||
--namespace private/ActiveStateBE/shared \ | ||
--name libunistring-demo-SUFFIX \ | ||
--version "VERSION" \ | ||
--author "Bruno Haible <[email protected]>" \ | ||
--depend "builder/autotools-builder@>=0" \ | ||
--feature shared/libunistring@VERSION \ | ||
libunistring-VERSION.tar.gz |