- added missing shift after getting spec file name,
- finished implementing "build" and "get" $OMMAND.
Changed files:
builder.sh -> 1.3
"
}
+parse_spec()
+{
+}
+
+get_spec()
+{
+}
+
+get_all_files()
+{
+}
+
+build_package()
+{
+}
+
while test $# -gt 0 ; do
case "${1}" in
-V | --version )
-v | --verbose )
shift ;;
* )
- SPECFILE="${1}";;
+ SPECFILE="${1}"; shift ;;
esac
done
case "$COMMAND" in
+ "build" )
+ if [ "$SPECFILE" != "" ]; then
+ get_spec;
+ parse_spec;
+ get_all_files;
+ build_package;
+ else
+ echo "ERROR: spec file name not specified.";
+ usage;
+ fi
+ ;;
"get" )
- if [ "$SPECFILE" == "" ]; then
-
+ if [ "$SPECFILE" != "" ]; then
+ get_spec;
+ parse_spec;
+ get_all_files;
else
-
+ echo "ERROR: spec file name not specified.";
+ usage;
fi
;;
"usage" )