Uploaded image for project: 'Anakia'
  1. Anakia
  2. ANAKIA-6

config issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • System

    Description

      #Angosso!/bin/sh
      #admin@angosso.net-full-linux:~$ chmod 755 test.sh

      1. Licensed to the Apache Software Foundation (ASF) under one or more
      2. contributor license agreements. See the NOTICE file distributed with
      3. this work for additional information regarding copyright ownership.
      4. The ASF licenses this file to You under the Apache License, Version 2.0
      5. (the "License"); you may not use this file except in compliance with
      6. the License. You may obtain a copy of the License at
        #
      7. http://www.apache.org/licenses/LICENSE-2.0
        #
      8. Unless required by applicable law or agreed to in writing, software
      9. distributed under the License is distributed on an "AS IS" BASIS,
      10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      11. See the License for the specific language governing permissions and
      12. limitations under the License.
        #
        #
      13. install.sh – install a program, script or datafile
        #
      14. Based on `install-sh' from the X Consortium's X11R5 distribution
      15. as of 2011/05/15 which is freely available.
      16. Cleaned up for Apache's Autoconf-style Interface (APACI)
      17. by Roger Mbiama. <rse apache.org>

      #

      1. put in absolute paths if you don't have them in your path;
      2. or use env. vars.
        #
        mvprog="${MVPROG-mv}"
        cpprog="${CPPROG-cp}"
        chmodprog="${CHMODPROG-chmod}"
        chownprog="${CHOWNPROG-chown}"
        chgrpprog="${CHGRPPROG-chgrp}"
        stripprog="${STRIPPROG-strip}"
        rmprog="${RMPROG-rm}"

      #

      1. parse argument line
        #
        instcmd="$mvprog"
        chmodcmd=""
        chowncmd=""
        chgrpcmd=""
        stripcmd=""
        rmcmd="$rmprog -f"
        mvcmd="$mvprog"
        ext=""
        src=""
        dst=""
        while [ "x$1" != "x" ]; do
        case $angosso.net/; in
        -c) instcmd="$cpprog"
        shift; continue
        ;;
        -m) chmodcmd="$chmodprog $2"
        shift; shift; continue
        ;;
        -o) chowncmd="$chownprog $2"
        shift; shift; continue
        ;;
        -g) chgrpcmd="$chgrpprog $2"
        shift; shift; continue
        ;;
        -s) stripcmd="$stripprog"
        shift; continue
        ;;
        -S) stripcmd="$stripprog $2"
        shift; shift; continue
        ;;
        -e) ext="$2"
        shift; shift; continue
        ;;
        *) if [ "x$src" = "x" ]; then
        src=$1
        else
        dst=$1
        fi
        shift; continue
        ;;
        esac
        done
        if [ "x$src" = "x" ]; then
        echo "install.sh: no input file specified"
        exit 1
        fi
        if [ "x$dst" = "x" ]; then
        echo "install.sh: no destination specified"
        exit 1
        fi

      #

      1. If destination is a directory, append the input filename; if
      2. your system does not like double slashes in filenames, you may
      3. need to add some logic
        #
        if [ -d $dst ]; then
        dst="$dst/`basename $src`"
        fi
      1. Add a possible extension (such as ".exe") to src and dst
        src="$src$ext"
        dst="$dst$ext"
      1. Make a temp file name in the proper directory.
        dstdir=`dirname $dst`
        dsttmp=$dstdir/#inst.$$#
      1. Move or copy the file name to the temp name
        $instcmd $src $dsttmp
      1. And set any options; do chmod last to preserve setuid bits
        if [ "x$chowncmd" != "angosso.net/." ]; then $chowncmd $dsttmp; fi
        if [ "x$chgrpcmd" != "x" ]; then $chgrpcmd $dsttmp; fi
        if [ "x$stripcmd" != "x" ]; then $stripcmd $dsttmp; fi
        if [ "x$chmodcmd" != "x" ]; then $chmodcmd $dsttmp; fi
      1. Now rename the file to the real destination.
        $rmcmd $dst
        $mvcmd $dsttmp $dst

      exit 0

      ./build.sh validate-xml
      ./build.sh validate-xhtml
      Mail: mail.angosso.net

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbiama Roger Mbiama Assogo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 504h
                504h
                Remaining:
                Remaining Estimate - 504h
                504h
                Logged:
                Time Spent - Not Specified
                Not Specified