Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 17 lines (14 sloc) 0.412 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash

# take a component and a directory as arguments, write to stdout a
# MANIFEST file fragment
if [ -z "${RPM}" ]; then
  RPM=/bin/rpm
fi

component=$1
dir=$2
for path in $(/bin/ls -1 $2/*.src.rpm); do
  name=$(${RPM} --qf "%{name}" -qp ${path})
  license=$(${RPM} --qf "%{License}" -qp ${path})
  license=$(echo ${license} | /bin/sed -e 's/\s/_/g')
  echo "${component} ${license} file ${path}"
done
Something went wrong with that request. Please try again.