Commit 8bd0e67a authored by Vitaly Lipatov's avatar Vitaly Lipatov

support comments in .gear/rules

parent 78d1f1c5
...@@ -195,7 +195,7 @@ gear_update_from_tarball() ...@@ -195,7 +195,7 @@ gear_update_from_tarball()
is_gear_sources() is_gear_sources()
{ {
cat $(get_root_git_dir)/.gear/rules | grep -q "tar:.*\.gear/gear-sources" cat $(get_root_git_dir)/.gear/rules | grep -q "^tar:.*\.gear/gear-sources"
#fatal "missed tar:.gear/gear-sources in $(get_root_git_dir)/.gear/rules" #fatal "missed tar:.gear/gear-sources in $(get_root_git_dir)/.gear/rules"
} }
......
...@@ -38,7 +38,7 @@ get_gear_rules_by_spec() ...@@ -38,7 +38,7 @@ get_gear_rules_by_spec()
print_gear_rules() print_gear_rules()
{ {
is_gear || fatal "Can't get rules" is_gear || fatal "Can't get rules"
cat $(get_gear_rules) | sed -e "s|@name@|$BASENAME|g" | sed -e "s|@version@|$VERSION|g" | sed -e "s|@release@|$RELEASE|g" cat $(get_gear_rules) | grep -v "^#" | sed -e "s|@name@|$BASENAME|g" | sed -e "s|@version@|$VERSION|g" | sed -e "s|@release@|$RELEASE|g"
} }
# args: tar_format, packaging_name # args: tar_format, packaging_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment