forked from pool/obs-service-format_spec_file
update
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-format_spec_file?expand=0&rev=25
This commit is contained in:
parent
7fedf2a7c4
commit
74a0c34178
@ -9,6 +9,10 @@ while test $# -gt 0; do
|
|||||||
MYOUTDIR="$2"
|
MYOUTDIR="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
*-specfile)
|
||||||
|
MYSPECFILES="$MYSPECFILES $2"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo Unknown parameter $1.
|
echo Unknown parameter $1.
|
||||||
echo 'Usage: this service is not excepting parameters'
|
echo 'Usage: this service is not excepting parameters'
|
||||||
@ -19,7 +23,10 @@ while test $# -gt 0; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
RETURN=0
|
RETURN=0
|
||||||
for i in *.spec; do
|
if [ -z "$MYSPECFILES" ]; then
|
||||||
|
MYSPECFILES=`echo *.spec`
|
||||||
|
fi
|
||||||
|
for i in $MYSPECFILES; do
|
||||||
if [ "$i" == '*.spec' ]; then
|
if [ "$i" == '*.spec' ]; then
|
||||||
echo "WARNING: no spec file found"
|
echo "WARNING: no spec file found"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
<service name="source_validator">
|
<service name="format_spec_file">
|
||||||
<summary>Validate sources</summary>
|
<summary>Format the spec files</summary>
|
||||||
<description>The default SUSE source validator which catches common pitfalls before build.</description>
|
<description>The default SUSE source validator which catches common pitfalls before build.</description>
|
||||||
|
<parameter name="specfile">
|
||||||
|
<description>Just run on specified spec file instead all available</description>
|
||||||
|
</parameter>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 1 14:10:52 UTC 2011 - adrian@suse.de
|
||||||
|
|
||||||
|
- allow to specify a defined spec file (version 0.2)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 7 13:34:45 CEST 2011 - dmueller@suse.de
|
Wed Sep 7 13:34:45 CEST 2011 - dmueller@suse.de
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@ Name: obs-service-format_spec_file
|
|||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
Summary: An OBS source service: reformats a spec file to SUSE standard.
|
Summary: An OBS source service: reformats a spec file to SUSE standard.
|
||||||
Version: 0.1
|
Version: 0.2
|
||||||
Release: 9
|
Release: 11
|
||||||
Source: format_spec_file
|
Source: format_spec_file
|
||||||
Source1: format_spec_file.service
|
Source1: format_spec_file.service
|
||||||
Source2: prepare_spec
|
Source2: prepare_spec
|
||||||
|
Loading…
Reference in New Issue
Block a user