]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- template for parse_spec(), get_spec(), get_all_files(), build_package(),
authorkloczek <kloczek@pld-linux.org>
Sat, 29 May 1999 04:30:14 +0000 (04:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added missing shift after getting spec file name,
- finished implementing "build" and "get" $OMMAND.

Changed files:
    builder.sh -> 1.3

builder.sh

index 1bc8ea1cfda0d8d127b5a4494c98998e24f3f6c6..d5bb1ec906008a3774dd9b189fc92349ec688ea2 100644 (file)
@@ -24,6 +24,22 @@ Usage: builder [-h] [--help] [-q] <package>.spec
 "
 }
 
+parse_spec()
+{
+}
+
+get_spec()
+{
+}
+
+get_all_files()
+{
+}
+
+build_package()
+{
+}
+
 while test $# -gt 0 ; do
     case "${1}" in
        -V | --version )
@@ -45,16 +61,30 @@ while test $# -gt 0 ; do
        -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" )
This page took 0.036021 seconds and 4 git commands to generate.