diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2013-04-08 14:42:16 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2013-04-08 14:42:16 +0400 |
commit | 86632ef8ac793d54f1b9b2048a62c0d7134eaa0d (patch) | |
tree | a9ade7047ed4ecbca44e74b38093f7333fb08b8d /cibs.p5m.gen | |
parent | ea33e78c3ced7148612cf5c2885badd4dcf187c1 (diff) | |
download | cibs-86632ef8ac793d54f1b9b2048a62c0d7134eaa0d.tar.gz |
Deprecate *.p5m.x
Diffstat (limited to 'cibs.p5m.gen')
-rwxr-xr-x | cibs.p5m.gen | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/cibs.p5m.gen b/cibs.p5m.gen new file mode 100755 index 0000000..93ce326 --- /dev/null +++ b/cibs.p5m.gen @@ -0,0 +1,43 @@ +#!/bin/sh + +cat <<'META' +set name=pkg.fmri value=pkg:/developer/pkg/cibs@$(ips-version) +set name=pkg.summary value="Common IPS build system" +set name=info.upstream-url value="https://github.com/Nexenta/cibs" +set name=info.source-url value="https://github.com/Nexenta/cibs.git" + +license LICENSE license=CDDL + +depend fmri=pkg:/developer/build/gnu-make type=require + +META + +echo '# rules:' +for r in mogrified/rules/*.mk; do + echo "file $r path=\$(cibs-inst-root)/rules/`basename $r`" +done + +echo +echo '# scripts:' +for s in scripts/*; do + if ! [ -f "$s" ]; then + echo "Garbage in scripts: \`$s'" >&2 + exit 1 + fi + if ! [ -x "$s" ]; then + echo "\`$s' is not executable" >&2 + exit 1 + fi + echo "file $s path=\$(cibs-inst-root)/scripts/`basename $s` mode=0555" +done + +echo +echo '# transformations:' +for t in trans/*; do + if ! [ -f "$t" ]; then + echo "Garbage in trans: \`$t'" >&2 + exit 1 + fi + echo "file $t path=\$(cibs-inst-root)/trans/`basename $t`" +done + |