Changeset View
Changeset View
Standalone View
Standalone View
release/packages/generate-ucl.sh
| Show All 26 Lines | *) | ||||
| echo "Unknown argument" | echo "Unknown argument" | ||||
| ;; | ;; | ||||
| esac | esac | ||||
| done | done | ||||
| shift $(( ${OPTIND} - 1 )) | shift $(( ${OPTIND} - 1 )) | ||||
| outname="$(echo ${outname} | tr '-' '_')" | outname="$(echo ${outname} | tr '-' '_')" | ||||
| vital="false" | |||||
| case "${outname}" in | case "${outname}" in | ||||
| clibs) | clibs) | ||||
| vital="true" | |||||
| # clibs should not have any dependencies or anything | # clibs should not have any dependencies or anything | ||||
| # else imposed on it. | # else imposed on it. | ||||
manu: clibs should be vital too. | |||||
| ;; | ;; | ||||
| caroot) | caroot) | ||||
| pkgdeps="utilities" | pkgdeps="utilities" | ||||
| ;; | ;; | ||||
| utilities) | |||||
| uclfile="${uclfile}" | |||||
| vital="true" | |||||
| ;; | |||||
| runtime) | runtime) | ||||
| outname="runtime" | outname="runtime" | ||||
| uclfile="${uclfile}" | |||||
| _descr="$(make -C ${srctree}/release/packages -f Makefile.package -V ${outname}_DESCR)" | _descr="$(make -C ${srctree}/release/packages -f Makefile.package -V ${outname}_DESCR)" | ||||
| vital="true" | |||||
| ;; | ;; | ||||
| *_lib32_dev) | *_lib32_dev) | ||||
| outname="${outname%%_lib32_dev}" | outname="${outname%%_lib32_dev}" | ||||
Done Inline Actionswell, this is wrong freebsd_igalic.co: well, this is wrong | |||||
| _descr="32-bit Libraries, Development Files" | _descr="32-bit Libraries, Development Files" | ||||
| pkgdeps="${outname}" | pkgdeps="${outname}" | ||||
| ;; | ;; | ||||
Done Inline Actionsand why are jails vital? freebsd_igalic.co: and why are jails vital? | |||||
| *_lib32_dbg) | *_lib32_dbg) | ||||
| outname="${outname%%_lib32_dbg}" | outname="${outname%%_lib32_dbg}" | ||||
| _descr="32-bit Libraries, Debugging Symbols" | _descr="32-bit Libraries, Debugging Symbols" | ||||
| pkgdeps="${outname}" | pkgdeps="${outname}" | ||||
| ;; | ;; | ||||
| *_lib32) | *_lib32) | ||||
| outname="${outname%%_lib32}" | outname="${outname%%_lib32}" | ||||
| _descr="32-bit Libraries" | _descr="32-bit Libraries" | ||||
| ▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | if [ ! -z "${debug}" ]; then | ||||
| echo "DEBUG:" | echo "DEBUG:" | ||||
| echo "_descr=${_descr}" | echo "_descr=${_descr}" | ||||
| echo "outname=${outname}" | echo "outname=${outname}" | ||||
| echo "origname=${origname}" | echo "origname=${origname}" | ||||
| echo "srctree=${srctree}" | echo "srctree=${srctree}" | ||||
| echo "uclfile=${uclfile}" | echo "uclfile=${uclfile}" | ||||
| echo "desc=${desc}" | echo "desc=${desc}" | ||||
| echo "comment=${comment}" | echo "comment=${comment}" | ||||
| echo "vital=${vital}" | |||||
| echo "cp ${uclsource} -> ${uclfile}" | echo "cp ${uclsource} -> ${uclfile}" | ||||
| echo "===============================================================" | echo "===============================================================" | ||||
| echo "" | echo "" | ||||
| echo "" | echo "" | ||||
| echo "" | echo "" | ||||
| fi | fi | ||||
| [ -z "${comment}" ] && comment="${outname} package" | [ -z "${comment}" ] && comment="${outname} package" | ||||
| Show All 11 Lines | |||||
| } | } | ||||
| EOF | EOF | ||||
| fi | fi | ||||
| cap_arg="$( make -f ${srctree}/share/mk/bsd.endian.mk -VCAP_MKDB_ENDIAN )" | cap_arg="$( make -f ${srctree}/share/mk/bsd.endian.mk -VCAP_MKDB_ENDIAN )" | ||||
| sed -i '' -e "s/%VERSION%/${PKG_VERSION}/" \ | sed -i '' -e "s/%VERSION%/${PKG_VERSION}/" \ | ||||
| -e "s/%PKGNAME%/${origname}/" \ | -e "s/%PKGNAME%/${origname}/" \ | ||||
| -e "s/%COMMENT%/${comment}/" \ | -e "s/%COMMENT%/${comment}/" \ | ||||
| -e "s/%DESC%/${desc}/" \ | -e "s/%DESC%/${desc}/" \ | ||||
| -e "s/%VITAL%/${vital}/" \ | |||||
| -e "s/%CAP_MKDB_ENDIAN%/${cap_arg}/g" \ | -e "s/%CAP_MKDB_ENDIAN%/${cap_arg}/g" \ | ||||
| -e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \ | -e "s/%PKG_NAME_PREFIX%/${PKG_NAME_PREFIX}/" \ | ||||
| -e "s|%PKG_WWW%|${PKG_WWW}|" \ | -e "s|%PKG_WWW%|${PKG_WWW}|" \ | ||||
| -e "s/%PKG_MAINTAINER%/${PKG_MAINTAINER}/" \ | -e "s/%PKG_MAINTAINER%/${PKG_MAINTAINER}/" \ | ||||
| ${uclfile} | ${uclfile} | ||||
| return 0 | return 0 | ||||
| } | } | ||||
| main "${@}" | main "${@}" | ||||
clibs should be vital too.