Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Scripts/functions.sh
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | @info\ *|@shell\ *) | ||||
case "$@" in | case "$@" in | ||||
/*) echo "${comment}$@" ;; | /*) echo "${comment}$@" ;; | ||||
*) echo "${comment}${cwd}/$@" ;; | *) echo "${comment}${cwd}/$@" ;; | ||||
esac | esac | ||||
;; | ;; | ||||
@sample\ *) | @sample\ *) | ||||
set -- $line | set -- $line | ||||
shift | shift | ||||
# Ignore the actual file if it is in stagedir | sample_file=$1 | ||||
case "$@" in | target_file=${1%.sample} | ||||
/*) | if [ $# -eq 2 ]; then | ||||
echo "@comment ${@%.sample}" | target_file=$2 | ||||
echo "${comment}$@" | fi | ||||
;; | case "${sample_file}" in | ||||
*) | /*) ;; | ||||
echo "@comment ${cwd}/${@%.sample}" | *) sample_file=${cwd}/${sample_file} ;; | ||||
echo "${comment}${cwd}/$@" | |||||
;; | |||||
esac | esac | ||||
case "${target_file}" in | |||||
/*) ;; | |||||
*) target_file=${cwd}/${target_file} ;; | |||||
esac | |||||
# Ignore the actual file if it is in stagedir | |||||
echo "@comment ${target_file}" | |||||
echo "${comment}${sample_file}" | |||||
;; | ;; | ||||
# Handle [dir] Keywords | # Handle [dir] Keywords | ||||
@fc\ *|@fcfontsdir\ *|@fontsdir\ *) | @fc\ *|@fcfontsdir\ *|@fontsdir\ *) | ||||
set -- $line | set -- $line | ||||
shift | shift | ||||
case "$@" in | case "$@" in | ||||
/*) | /*) | ||||
echo >&3 "${comment}$@" | echo >&3 "${comment}$@" | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |