From e9c7314a992c4a0ac60f7deaa7c136a01a2de67f Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Thu, 30 Sep 2021 01:01:56 -0400 Subject: package name changed to cryptonomic --- selfpublish.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/selfpublish.sh b/selfpublish.sh index 9bb3b20..660c7f8 100644 --- a/selfpublish.sh +++ b/selfpublish.sh @@ -164,11 +164,12 @@ control_file_file_check() SELF_VERSION='0.1' SELF_EXECUTABLE=$(realpath "$0") +SELF_PACKAGE=cryptonomic control_file() { cat < want-dependencies - dpkg-query -f '${Depends}\n' -W selfpublish-dot-sh | sed 's/, */\n/g' | sort -u > have-dependencies + dpkg-query -f '${Depends}\n' -W "${SELF_PACKAGE}" | sed 's/, */\n/g' | sort -u > have-dependencies diff -q want-dependencies have-dependencies ) } equivocate() { - if dpkg-query -s selfpublish-dot-sh | grep -q '^Status: install ok installed' 2>/dev/null + if dpkg-query -s "${SELF_PACKAGE}" | grep -q '^Status: install ok installed' 2>/dev/null then if control_file_unchanged && control_file | control_file_file_check then @@ -523,11 +524,11 @@ equivocate() cd "$destdir" control_file > ./control equivs-build ./control >&2 - DEB=selfpublish-dot-sh_${SELF_VERSION}_all.deb + DEB=${SELF_PACKAGE}_${SELF_VERSION}_all.deb if ! [ "$NO_APT" ] then - as_root dpkg -r selfpublish-dot-sh + as_root dpkg -r "${SELF_PACKAGE}" dpkg_install "$DEB" install -m0644 "$DEB" "$DEBDEST" fi @@ -724,7 +725,7 @@ install_self_to_site() cp -Tuv "$src" "$dst" >&2 cp -Tuv "$src" "$dst".txt >&2 fi - DEB="selfpublish-dot-sh_${SELF_VERSION}_all.deb" + DEB="${SELF_PACKAGE}_${SELF_VERSION}_all.deb" if [ -e "$DEB" ] then cp -Tuv "$DEB" "$SITE_DIR/public_html/$DEB" @@ -789,7 +790,7 @@ configure_apache_vhost() install_header_to_site() { - cat > "$SITE_DIR"/public_html/HEADER.html < "$SITE_DIR"/public_html/HEADER.html <<'EOF' -- cgit v1.2.3