mirror of
https://github.com/yaml/libyaml
synced 2026-06-08 18:28:36 +00:00
28 lines
442 B
Bash
Executable File
28 lines
442 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# Create tarball
|
|
cd /tmp
|
|
cp -rp /output/libyaml.git .
|
|
#git clone https://github.com/yaml/libyaml.git
|
|
cd libyaml.git
|
|
./bootstrap
|
|
./configure
|
|
make dist
|
|
|
|
# get the tarball filename
|
|
tarballs=(yaml-*.tar.gz)
|
|
tarball=${tarballs[0]:?}
|
|
dirname=${tarball/.tar.gz/}
|
|
|
|
# Copy to output dir
|
|
cp "$tarball" /output
|
|
|
|
# Create zip archive
|
|
cd /tmp
|
|
cp "/output/$tarball" .
|
|
tar xvf "$tarball"
|
|
zip -r "/output/$dirname.zip" "$dirname"
|