Check-in [ecf92091f8]
Overview
Comment:Updated to support tagging a package as beta when doing CPIO
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ecf92091f83a85634572afa7f44be58f4d2bd046
User & Date: rkeene on 2019-12-13 00:10:06
Other Links: manifest | tags
Context
2019-12-13
00:11
Updated root CA certificate, the previous one expired, and made errors about this more informative check-in: 7241c0986c user: rkeene tags: trunk
00:10
Updated to support tagging a package as beta when doing CPIO check-in: ecf92091f8 user: rkeene tags: trunk
00:09
Updated URLs to tcllib check-in: 6172840058 user: rkeene tags: trunk
Changes

Modified appfs-mkfs from [6085412bf1] to [a9c4f4dd01].

    20     20   # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21     21   # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22     22   # THE SOFTWARE.
    23     23   #
    24     24   
    25     25   PATH="${PATH}:$(cd "$(dirname "$(which "$0")")" && pwd)"
    26     26   
    27         -if [ "$1" == '--cpio' ]; then
           27  +if [ "$1" = '--cpio' ]; then
    28     28   	shift
           29  +
           30  +	if [ "$1" = '--beta' ]; then
           31  +		shift
           32  +
           33  +		setLatest=0
           34  +	else
           35  +		setLatest=1
           36  +	fi
    29     37   
    30     38   	mode='file'
    31     39   
    32     40   	pkgfile="$1"
    33     41   else
    34     42   	mode='dir'
    35     43   
................................................................................
    44     52   fi
    45     53   
    46     54   if [ -n "${sitecert}" ]; then
    47     55   	sitecert="$(readlink -f "${sitecert}")"
    48     56   fi
    49     57   
    50     58   if [ -z "${pkgsdir}" -a -z "${pkgfile}" ] || [ -z "${appfsdir}" ]; then
    51         -	echo 'Usage: appfs-mk {--cpio <pkgfile>|<pkgsdir>} <appfsdir> [<site-key> [<site-certificate>]]' >&2
           59  +	echo 'Usage: appfs-mk {--cpio [--beta] <pkgfile>|<pkgsdir>} <appfsdir> [<site-key> [<site-certificate>]]' >&2
    52     60   
    53     61   	exit 1
    54     62   fi
    55     63   
    56     64   appfsdir="$(cd "${appfsdir}" && pwd)"
    57     65   if [ -z "${appfsdir}" ]; then
    58     66   	echo "Unable to find appfs directory." >&2
................................................................................
   149    157   
   150    158   		dirdate="$(find . -type f -printf '%TY%Tm%Td%TH%TM.%TS\n' -quit | cut -f 1-2 -d '.')"
   151    159   		find . -type d -print0 | xargs -0 -- touch -t "${dirdate}"
   152    160   
   153    161   		# If this archive contains exactly one package mark it as the latest version
   154    162   		chk_package="$(echo *)"
   155    163   		if [ -d "${chk_package}" ]; then
   156         -			default_isLatest='1'
          164  +			default_isLatest="${setLatest:-1}"
   157    165   		fi
   158    166   
   159    167   		cat "${oldpackagelistfile}" 2>/dev/null | (
   160    168   			if [ -d "${chk_package}" ]; then
   161    169   				sed 's@^\('"{chk_package}"',.*\),1@\1,0@'
   162    170   			else
   163    171   				cat