#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; 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}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true 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;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: chmodcmd="" else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 ghlight'> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1174 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2012-02-14driver for TeakLCM by Andreas Thienemannmichael10-33/+1113 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1173 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2012-02-10patch from Robert Tesch: support KIT120-5 and KIT129-6, GPO code repaired, ↵michael1-20/+58 use Scalefont git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1172 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2012-01-16Patch for Driver EA232Graphic by Robert Reschmichael2-7/+70 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1171 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2012-01-16scaletext patch from Stefan Kuhnemichael2-4/+16 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1170 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2012-01-16update to automake 1.11.2michael3-44/+78 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1169 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2012-01-08DPF driver by Stefan Kuhne 8note that you need libdpf)michael9-4/+337 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1168 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2012-01-08[PATCH 2/2] gcc warnings by Jonathan McCrohanmichael1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1167 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2012-01-08ATCH 1/2] gcc warnings by Jonathan McCrohanmichael1-2/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1166 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-12-26old ancient legacy port access disabled by defaultmichael6-162/+491 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1165 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-12-22All compilation related issues in the headers have been fixed. Now each ↵mjona10-0/+11 header compiles with no warnings as a standalone file. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1164 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-12-09Replaced parameter NoPowerCycle with PowerCyclesonic741-5/+5 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1163 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-12-09Blit speedup, switch PICASO back to 9600 baud when exitingsonic741-47/+46 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1162 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-12-08Removed compiler warningsonic741-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1161 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-12-08SGC supportsonic741-111/+254 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1160 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-08-31Fix spelling errors. Flagged by Debian lintian checkjmccrohan4-4/+4 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1159 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-28driver for Futaba MDM166A Graphic(96x16) vf-displays by Andreas Bracholdmichael9-2/+684 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1158 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27driver for Newhaven's NHD‐0420D3Z‐FL‐GBW. 4x20 LCD by Rusty Clarksonmichael9-4/+573 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1157 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27indentation :-(michael1-3/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1156 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27magic bold escape char by Andrew Thompsonmichael1-1/+9 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1155 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27picoLCDGraphics needs keypad linkedmichael2-0/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1154 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27various compiler warnings fixedmichael13-60/+39 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1153 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27Autoconf 2.68michael3-1455/+2751 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1152 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27run smoketest on all of my 8 coresmichael1-2/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1151 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27indentationmichael4-330/+320 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1150 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27patch to replace outdate library libmpd with recent library libmpdclient ↵michael2-240/+427 from Andreas Brachold git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1149 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27lcd4linux-wireless.patch from Hans de Goedemichael1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1148 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27st2205-width-height-swap.patch from Hans de Goedemichael1-2/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1147 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27hwmon patch from Hans de Goedemichael1-0/+14 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1146 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-07-27patch to support SureElectronicsDE-LD023 from Matt Joicemichael1-3/+16 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1145 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-05-06Fixed keypad widget in GLCD2USBharbaum1-0/+7 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1144 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-02-12timer.c: fixed detection of positive clock skew (and some typos)mzuther4-10/+10 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1143 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-01-23timer.c: fixed clock skew detectionmzuther1-26/+46 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1142 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-01-23timer.c: skip intermediate timer intervalsmzuther2-16/+46 "timer_inc()" now checks how many trigger intervals have passed since a given timer has been updated. This might be due to "negative clock skew" (think of summer time) or the fact that some processing took too long (i.e. fetching of a web site). These missed trigger intervals are then skipped and the user is notified so that he may adapt his timer settings. This handling is essential, otherwise unprocessed timers might stack up and would trigger continuously while at the same time becoming notoriously late and unreliable. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1141 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-01-05fix for a bug introduced in the DE-LD021 drivermichael1-3/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1140 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-01-04indentationmichael2-3/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1139 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-01-04support for Sure Electronics DE-LD021 by Natanael Olaizmichael1-10/+8 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1138 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2011-01-02driver for EFN LED modules by Tilman Glötznermichael9-21/+469 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1137 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-11-28commented, corrected and beautified both timer and timer group codemzuther11-197/+511 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1136 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-11-27finished commenting the timer codemzuther2-46/+138 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1135 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-11-20started commenting the timer codemzuther5-52/+170 I'm not done yet, but my system is currently very unstable, and I don't want the changes to get lost... :( git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1134 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2010-11-19Added brightness support for GLCD2USBharbaum5-28/+8014 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1133 3ae390bd-cb1e-0410-b409-cd5a39f66f1f