aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2008-10-22 05:19:04 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2008-10-22 05:19:04 +0000
commit6fd903a4deaa99fa2b1a482a5c775023f1a829ea (patch)
tree247ac59ffb5b8d420b75173c6b9371a18f9a6f2a /scripts
parent14717272bee0254edcbfd931c8a0668da6ccebca (diff)
downloadbuildroot-6fd903a4deaa99fa2b1a482a5c775023f1a829ea.tar.gz
buildroot-6fd903a4deaa99fa2b1a482a5c775023f1a829ea.tar.bz2
new package wizard: change bash-specific construct
Patch by Markus Heidelberg. ${VAR//-/_} which replaces - with _ aborts with "syntax error" on a system where /bin/sh points to dash. Use tr therefor as already done in the line above rather than changing the shebang to bash.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/add_new_package.wizard3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/add_new_package.wizard b/scripts/add_new_package.wizard
index 63078b0fc2..4ad72c935b 100755
--- a/scripts/add_new_package.wizard
+++ b/scripts/add_new_package.wizard
@@ -48,8 +48,7 @@ read CONFIG_OPTIONS
URL=${DOWNLOAD_LOC%/*}
TARBALL=${DOWNLOAD_LOC##*/}
EXTENSION=${TARBALL##*.tar.}
-NAME_UPPER=`echo ${PACKAGE_NAME} | tr [a-z] [A-Z]`
-NAME_UPPER=${NAME_UPPER//-/_}
+NAME_UPPER=`echo ${PACKAGE_NAME} | tr a-z- A-Z_`
mkdir ../package/${PACKAGE_NAME}