Added the shabang to auto-generated cunstom scripts.

Trailing space clean-up.
This commit is contained in:
Manuel Canales Esparcia 2006-10-16 17:22:57 +00:00
parent 9a536f733c
commit 245d1c9c54

View file

@ -53,9 +53,12 @@ EOF
# Create the build script file # Create the build script file
( cat <<- xEOFx ( cat <<- xEOFx
#!/bin/bash
set -e set -e
cd \$PKGDIR cd \$PKGDIR
`cat tmp` `cat tmp`
exit exit
xEOFx xEOFx
) > custom-commands/scripts/$THIS_SCRIPT ) > custom-commands/scripts/$THIS_SCRIPT
@ -80,8 +83,8 @@ add_CustomToolsURLS() { # Add any users supplied scripts URL informat
#----------------------------------# #----------------------------------#
local BLFS_SERVER="${SERVER}/pub/blfs/conglomeration/" local BLFS_SERVER="${SERVER}/pub/blfs/conglomeration/"
local this_script local this_script
local URL PKG PKG_VERSION PKG_FILE MD5 local URL PKG PKG_VERSION PKG_FILE MD5
> urls.lst.tmp > urls.lst.tmp
for this_script in $JHALFSDIR/custom-commands/config/*; do for this_script in $JHALFSDIR/custom-commands/config/*; do
if [[ `basename ${this_script}` = "*" ]]; then if [[ `basename ${this_script}` = "*" ]]; then
@ -90,9 +93,9 @@ add_CustomToolsURLS() { # Add any users supplied scripts URL informat
fi fi
source $this_script source $this_script
echo "${URL} ${BLFS_SERVER}${PKG}/${PKG_FILE} ${MD5}" >> urls.lst.tmp echo "${URL} ${BLFS_SERVER}${PKG}/${PKG_FILE} ${MD5}" >> urls.lst.tmp
# Add any patches.. # Add any patches..
for PATCH in PATCH{1..10}; do for PATCH in PATCH{1..10}; do
[[ -n ${!PATCH} ]] && echo "dummy-url ${!PATCH}" >> urls.lst.tmp [[ -n ${!PATCH} ]] && echo "dummy-url ${!PATCH}" >> urls.lst.tmp
done done
done done
cat urls.lst.tmp >> $BUILDDIR/sources/urls.lst cat urls.lst.tmp >> $BUILDDIR/sources/urls.lst