mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
- Double-quote $@ to properly propagate parameters down the execution path
- Consistently pad (separate) shebang in wrapper scripts with an empty line
This commit is contained in:
parent
f9bbf9161c
commit
bbc0e7b376
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424092
@ -10,4 +10,4 @@ export MANPATH=%%BRLCAD_ROOT%%/man:$MANPATH
|
||||
export ITCL_PATH=%%BRLCAD_ROOT%%/lib/itcl3.4
|
||||
export ITK_PATH=%%BRLCAD_ROOT%%/lib/itk3.4
|
||||
|
||||
exec %%BRLCAD_ROOT%%/bin/mged $@
|
||||
exec %%BRLCAD_ROOT%%/bin/mged "$@"
|
||||
|
@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
for i in `ls %%ETCDIR%%/envvars.d/*.env`
|
||||
do
|
||||
. ${i}
|
||||
done
|
||||
|
||||
exec %%DATADIR%%/bin/hadoop $@
|
||||
exec %%DATADIR%%/bin/hadoop "$@"
|
||||
|
@ -41,17 +41,18 @@ do-configure:
|
||||
@${ECHO_CMD} "#!${SH}" > ${WRKDIR}/childsplay.sh
|
||||
@${ECHO_CMD} >> ${WRKDIR}/childsplay.sh
|
||||
@${ECHO_CMD} 'cd "${CHILDSPLAYDIR}"' >> ${WRKDIR}/childsplay.sh
|
||||
@${ECHO_CMD} 'exec ${PYTHON_CMD} childsplay.py $$@' >> ${WRKDIR}/childsplay.sh
|
||||
@${ECHO_CMD} 'exec ${PYTHON_CMD} childsplay.py "$$@"' \
|
||||
>> ${WRKDIR}/childsplay.sh
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/childsplay.sh ${STAGEDIR}${PREFIX}/bin/childsplay
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/childsplay.sh \
|
||||
${STAGEDIR}${PREFIX}/bin/childsplay
|
||||
@${MKDIR} ${STAGEDIR}${CHILDSPLAYDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.py ${STAGEDIR}${CHILDSPLAYDIR}
|
||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} "SPWidgets alphabetsounds lib" \
|
||||
${STAGEDIR}${CHILDSPLAYDIR})
|
||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} locale ${STAGEDIR}${PREFIX}/share)
|
||||
${INSTALL_DATA} ${WRKSRC}/sp_content.db ${STAGEDIR}${CHILDSPLAYDIR}
|
||||
|
||||
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
|
||||
-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
|
||||
|
||||
|
@ -61,7 +61,7 @@ pre-build:
|
||||
>> ${WRKDIR}/wrappers/stepmania
|
||||
@${ECHO_CMD} 'cd ${PREFIX}/lib/stepmania' \
|
||||
>> ${WRKDIR}/wrappers/stepmania
|
||||
@${ECHO_CMD} 'exec ./stepmania $$@' \
|
||||
@${ECHO_CMD} 'exec ./stepmania "$$@"' \
|
||||
>> ${WRKDIR}/wrappers/stepmania
|
||||
|
||||
do-install:
|
||||
|
@ -110,7 +110,7 @@ post-patch:
|
||||
|
||||
.if !${BUILD_MOZC_LIST:Mmozc_el}
|
||||
${BUILD_WRKSRC}/mozcmake:
|
||||
${PRINTF} "%s\n%s\n" "#!/bin/sh" 'exec ${BUILD_CMD} $$@' \
|
||||
${PRINTF} "%s\n\n%s\n" "#!/bin/sh" 'exec ${BUILD_CMD} "$$@"' \
|
||||
> ${BUILD_WRKSRC}/mozcmake
|
||||
${CHMOD} +x ${BUILD_WRKSRC}/mozcmake
|
||||
|
||||
|
@ -43,4 +43,4 @@ if [ ! -x "${ECLIPSE_HOME}/eclipse" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" JAVA_OS="%%JAVA_OS%%" PATH=${JAVA_HOME}/bin:${PATH} %%SWTGTK3OPT%% exec "${ECLIPSE_HOME}/eclipse" $@
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" JAVA_OS="%%JAVA_OS%%" PATH=${JAVA_HOME}/bin:${PATH} %%SWTGTK3OPT%% exec "${ECLIPSE_HOME}/eclipse" "$@"
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
exec "%%DATADIR%%/bin/pycharm.sh" $@
|
||||
|
||||
exec "%%DATADIR%%/bin/pycharm.sh" "$@"
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
exec "%%IDEA_HOME%%/bin/idea.sh" $@
|
||||
|
||||
exec "%%IDEA_HOME%%/bin/idea.sh" "$@"
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
exec "%%IDEA_HOME%%/bin/idea.sh" $@
|
||||
|
||||
exec "%%IDEA_HOME%%/bin/idea.sh" "$@"
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
exec java -jar "%%JAVAJARDIR%%/jd-gui.jar" $@
|
||||
|
||||
exec java -jar "%%JAVAJARDIR%%/jd-gui.jar" "$@"
|
||||
|
@ -9,5 +9,4 @@ export PYTHONPATH
|
||||
# You can change this to point to your Python interpreter if you wish.
|
||||
PYTHON=__PYTHON__
|
||||
|
||||
exec "$PYTHON" ${PPCPATH}/papercut.py $@
|
||||
|
||||
exec "$PYTHON" ${PPCPATH}/papercut.py "$@"
|
||||
|
@ -29,9 +29,10 @@ SHEBANG_FILES= namefix-cli.pl namefix.pl
|
||||
do-configure:
|
||||
.for bin in ${PORTNAME} ${PORTNAME}-cli
|
||||
@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/${bin}.in
|
||||
@${ECHO_CMD} >> ${WRKDIR}/${bin}.in
|
||||
@${ECHO_CMD} 'namefix_dir=${PREFIX}/${SITE_PERL_REL}/${PORTNAME}' \
|
||||
>> ${WRKDIR}/${bin}.in
|
||||
@${ECHO_CMD} 'cd $${namefix_dir}; exec ./${bin}.pl $$@' \
|
||||
@${ECHO_CMD} 'cd $${namefix_dir} && exec ./${bin}.pl "$$@"' \
|
||||
>> ${WRKDIR}/${bin}.in
|
||||
.endfor
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -classpath %%DATADIR%%/js.jar -jar %%DATADIR%%/shrinksafe.jar $@
|
||||
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -classpath %%DATADIR%%/js.jar -jar %%DATADIR%%/shrinksafe.jar "$@"
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%JAVAJARDIR%%/htmlcompressor.jar $@
|
||||
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%JAVAJARDIR%%/htmlcompressor.jar "$@"
|
||||
|
@ -1,3 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
exec "%%JAVA%%" -mx512m -jar "%%JAVAJARDIR%%/scloader.jar" $@
|
||||
exec "%%JAVA%%" -mx512m -jar "%%JAVAJARDIR%%/scloader.jar" "$@"
|
||||
|
@ -19,4 +19,4 @@ if [ -f "%%EXAMPLESDIR%%/playflash.sh" ] && [ ! -f "$HOME/.xombrero/playflash.sh
|
||||
chmod +x $HOME/.xombrero/playflash.sh
|
||||
fi
|
||||
|
||||
exec %%PREFIX%%/bin/xombrero-bin $@
|
||||
exec %%PREFIX%%/bin/xombrero-bin "$@"
|
||||
|
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%JAVAJARDIR%%/yuicompressor.jar $@
|
||||
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%JAVAJARDIR%%/yuicompressor.jar "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user