Skip to content

Commit

Permalink
Add some additional publishing options
Browse files Browse the repository at this point in the history
  • Loading branch information
icanhasmath committed May 21, 2024
1 parent 77baab3 commit 6b1eed2
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
31 changes: 31 additions & 0 deletions SharedLibraries/publish/demo-command
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}";
9 changes: 9 additions & 0 deletions SharedLibraries/publish/libunistring.ingredient.com
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
8 changes: 8 additions & 0 deletions SharedLibraries/publish/libunistring.version.com
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

0 comments on commit 6b1eed2

Please sign in to comment.