Changeset 13662 in hybrid
- Timestamp:
- Dec 18, 2016, 11:54:40 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-11/nanobsd/tools/package-build.sh
r13657 r13662 9 9 10 10 cfg_dir=`dirname $0`/../cfg 11 abs_cfg_dir=`cd $cfg_dir; pwd -P` 11 12 poudriere_pkglist_file=${cfg_dir}/wlpkgbuild11_0-default-node-pkglist 12 13 … … 32 33 poudriere ports -c -F -f none -p default -M /usr/local/poudriere/ports/default 33 34 34 # Build options35 # Configure new build options 35 36 poudriere options -j wlpkgbuild11_0 -p default -z node -f ${poudriere_pkglist_file} 36 37 } 37 38 39 packages_config() { 40 # Configure all build options 41 poudriere options -j wlpkgbuild11_0 -p default -z node -c ${*:- -f ${poudriere_pkglist_file}} 42 } 43 44 38 45 packages_refresh() { 39 # Install new package options46 # Install new package (symlink) options 40 47 POUDRIERE_MAKE_CONF_FILE=wlpkgbuild11_0-node-make.conf 41 48 POUDRIERE_OPTIONS=wlpkgbuild11_0-node-options 49 50 # Clean old stuff 51 if [ -d "/usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE" ]; then 52 rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE 53 fi 42 54 43 55 if [ -d "/usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS" ]; then … … 45 57 fi 46 58 47 cp ${cfg_dir}/$POUDRIERE_MAKE_CONF_FILE /usr/local/etc/poudriere.d 48 cp -R ${cfg_dir}/$POUDRIERE_OPTIONS /usr/local/etc/poudriere.d 59 60 ln -s ${abs_cfg_dir}/$POUDRIERE_MAKE_CONF_FILE /usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE 61 ln -s ${abs_cfg_dir}/$POUDRIERE_OPTIONS /usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS 49 62 } 50 63 … … 62 75 packages_initenv 63 76 packages_refresh 77 elif [ "x$1" = "xrefresh" ]; then 78 packages_refresh 79 elif [ "x$1" = "xconfig" ]; then 80 shift; packages_config $* 64 81 elif [ "x$1" = "xrebuild" ]; then 65 82 packages_refresh … … 68 85 packages_build 69 86 else 70 echo "Usage $0 <initenv| rebuild|build>"87 echo "Usage $0 <initenv|config|rebuild|build>" 71 88 exit 128 72 89 fi
Note:
See TracChangeset
for help on using the changeset viewer.