lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 496381cf 5/6: Customize and publish a fardel


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 496381cf 5/6: Customize and publish a fardel
Date: Sun, 5 Jun 2022 20:09:59 -0400 (EDT)

branch: master
commit 496381cf2718b5e31467f5ac5df6cef09acfa3ed
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Customize and publish a fardel
    
    The 'publish.sh' script is invoked in the makefile where the fardel is
    created, because its name is conveniently available only there.
---
 publish_fardel.sh | 39 +++++++++++++++++++++++++++++++++++++++
 workhorse.make    |  1 +
 2 files changed, 40 insertions(+)

diff --git a/publish_fardel.sh b/publish_fardel.sh
new file mode 100755
index 00000000..e8f79c78
--- /dev/null
+++ b/publish_fardel.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# Customize a fardel.
+
+# Copyright (C) 2022 Gregory W. Chicares.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+#
+# https://savannah.nongnu.org/projects/lmi
+# email: <gchicares@sbcglobal.net>
+# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+
+# Customizations:
+#   - liberalize expiry range
+#   - include '.mst' files, without checksumming them
+# The resulting fardel is suitable for uploading to savannah, as a
+# "trial" version for people who are interested in lmi but cannot
+# easily build it from source. Only 'sample' products are included.
+
+set -x
+
+if [ "greg" != "$(whoami)" ]; then
+  exit 0
+fi
+
+srcdir=$(dirname "$(readlink --canonicalize "$0")")
+
+make j1=2450449 j2=2472011 extra_fardel_files="$srcdir/*.mst" fardel
diff --git a/workhorse.make b/workhorse.make
index 282fa86c..b4ebe75a 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -1219,6 +1219,7 @@ wrap_fardel:
          --directory=$(fardel_root) \
          --file=$(fardel_root)/$(fardel_name).zip \
          $(fardel_name)
+       @-$(srcdir)/publish.sh $(fardel_root)/$(fardel_name).zip
 
 
################################################################################
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]