diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-21 16:08:21 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-21 16:08:21 +0000 |
commit | 0baeac3b4aff5cd75e43ae69bdfd5d5cb5208b40 (patch) | |
tree | 14644a9c8aa4dc1fc52a84749607abc4b0345d54 /trunk/src/mkbuild | |
parent | 9215fde72daf22e6f1098e914571ac79017c91e5 (diff) | |
download | simplepkg-0baeac3b4aff5cd75e43ae69bdfd5d5cb5208b40.tar.gz simplepkg-0baeac3b4aff5cd75e43ae69bdfd5d5cb5208b40.tar.bz2 |
minor changes at Manifest implementation
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@692 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src/mkbuild')
-rwxr-xr-x | trunk/src/mkbuild | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild index 72c970f..11532ac 100755 --- a/trunk/src/mkbuild +++ b/trunk/src/mkbuild @@ -512,7 +512,7 @@ function make_slack_required { } -function change_others_parameters { +function change_other_parameters { # Change others parameters started by '[[' in .mkbuild file sed '1,/#>>/ ! d' $MKBUILD_NAME | grep -v '^#' | grep '^\[\[[A-Za-z]' | \ @@ -729,10 +729,15 @@ function file_metainfo { # get integrity file metainformation # usage: file_metainfo <file> <file_type> - local size algo sum="" file="$1" file_type="$2" + local size algo sum="" file="$1" file_type="`echo $2 | tr '[:lower:]' '[:upper:]'`" - if [ ! -e "$file" ] || [ -z "$file_type" ]; then - return 1 + if [ -z "$file_type" ]; then + file_type="AUX" + fi + + if [ ! -e "$file" ]; then + echo "$file_type `basename $file` " # end space is important + [ $VERBOSE -eq $on ] && echo "Adding blank information for $file on Manifest. Please fix this." fi for algo in md5 sha1 sha256 sha512 rmd160; do @@ -745,15 +750,11 @@ function file_metainfo { function update_manifest_info { - # update Manifest meatinfo for a given file + # update Manifest metainfo for a given file # usage: update_manifest_info <file> <file_type> local tmpfile file="$1" file_type="`echo $2 | tr '[:lower:]' '[:upper:]'`" - if [ ! -e "$file" ]; then - return 1 - fi - if [ -z "$file_type" ]; then file_type="`file_extension $file | tr '[:lower:]' '[:upper:]'`" fi @@ -802,6 +803,9 @@ function update_manifest { fi done + # Add source code information + update_manifest $CONST_STRING dist + } # ---------------------------------------------------------------- @@ -1055,7 +1059,7 @@ if [ ! -z $MKBUILD_NAME ]; then # Others changes [ $VERBOSE -eq $on ] && echo -e "\nEdit others [[]] parameters ..." - change_others_parameters + change_other_parameters # Update Manifest file update_manifest |