-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a95313d
commit 2312ca8
Showing
6 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
AC_INIT([easy-json-q], [0.1], [[email protected]]) | ||
AC_INIT([ejq], m4_esyscmd([bash version.sh]), [[email protected]]) | ||
AM_INIT_AUTOMAKE([-Wall -Werror foreign no-dist-gzip dist-xz]) | ||
|
||
AC_PROG_CC | ||
AC_PROG_CC_C99 | ||
AC_PROG_INSTALL | ||
|
||
AC_CONFIG_FILES([Makefile]) | ||
AC_CONFIG_FILES([Makefile packaging/rpm/ejq.spec]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Summary: A more performant jq alternative for simple cases | ||
Name: @PACKAGE_NAME@ | ||
Version: @PACKAGE_VERSION@ | ||
Release: 1%{?dist} | ||
License: MIT AND BSD-2-Clause | ||
URL: https://flowerysong.com/ | ||
Source0: %{name}-%{version}.tar.xz | ||
BuildRequires: autoconf | ||
BuildRequires: automake | ||
BuildRequires: gcc | ||
BuildRequires: make | ||
|
||
%description | ||
A simple CLI wrapper around James Barford's easy-json library. | ||
|
||
%prep | ||
%autosetup -n %{name}-%{version} -p1 | ||
|
||
%build | ||
%configure | ||
%make_build | ||
|
||
%install | ||
%make_install | ||
|
||
%files | ||
%{_bindir}/ejq | ||
|
||
%changelog | ||
* %(date "+%a %b %d %Y") (Automated RPM build) - %{version}-%{release} | ||
- See git log for actual changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
if [ -d .git ]; then | ||
git describe --tags | perl -pe 'chomp; s/-/./; s/-.*//' | tee VERSION | ||
elif [ -s VERSION ]; then | ||
cat VERSION | ||
else | ||
echo -n UNKNOWN | ||
fi |