Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/check-stagedir.sh
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | sort_dfs() { | ||||
while read -r dir; do | while read -r dir; do | ||||
grep "^[0-9]* ${dir}$" ${WRKDIR}/.staged-dirs-dfs-sorted | grep "^[0-9]* ${dir}$" ${WRKDIR}/.staged-dirs-dfs-sorted | ||||
done | sort -n | cut -d ' ' -f2- | done | sort -n | cut -d ' ' -f2- | ||||
} | } | ||||
# Prepare sed(1) regex for PLIST_SUB_SED/PORTEXAMPLES/OPTIONS/... | # Prepare sed(1) regex for PLIST_SUB_SED/PORTEXAMPLES/OPTIONS/... | ||||
setup_plist_seds() { | setup_plist_seds() { | ||||
### HANDLE PORTDOCS/PORTEXAMPLES | ### HANDLE PORTDOCS/PORTEXAMPLES | ||||
sed_portdocsexamples="/%%DOCSDIR%%/s!^!%%PORTDOCS%%!g; /%%EXAMPLESDIR%%/s!^!%%PORTEXAMPLES%%!g;" | sed_portdocsexamples="/%%DOCSDIR%%/s!^!%%PORTDOCS%%!g; /%%EXAMPLESDIR%%/s!^!%%PORTEXAMPLES%%!g; /%%L10NDIR%%/s!^!%%L10N%%!g;" | ||||
mat: If you don't rename the variable here, you don't need most of the changes afterwards.
The… | |||||
if [ ${makeplist} -eq 0 ]; then | if [ ${makeplist} -eq 0 ]; then | ||||
# echo "=====> Using OPTIONS: ${PORT_OPTIONS}" | /usr/bin/fmt -w 79 | \ | # echo "=====> Using OPTIONS: ${PORT_OPTIONS}" | /usr/bin/fmt -w 79 | \ | ||||
# sed -e '2,$s/^/ /' | # sed -e '2,$s/^/ /' | ||||
# Handle magical PORT* features | # Handle magical PORT* features | ||||
for option in DOCS EXAMPLES; do | for option in DOCS EXAMPLES; do | ||||
want_option=0 | want_option=0 | ||||
case " ${PORT_OPTIONS} " in | case " ${PORT_OPTIONS} " in | ||||
*\ ${option}\ *) want_option=1 ;; | *\ ${option}\ *) want_option=1 ;; | ||||
▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines |
If you don't rename the variable here, you don't need most of the changes afterwards.
The variable already has a pretty long name, no need to make it longer.