Changeset 70c2d86 in mod_gnutls for config/missing
- Timestamp:
- Jan 11, 2013, 12:55:20 AM (8 years ago)
- Branches:
- debian/master, debian/stretch-backports, jessie-backports, upstream
- Children:
- 3f5c713, ec06980
- Parents:
- 3e94bd3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
config/missing
r3e94bd3 r70c2d86 2 2 # Common stub for a few missing GNU programs while installing. 3 3 4 scriptversion=200 5-02-08.225 6 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 4 scriptversion=2006-05-10.23 5 6 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 7 7 # Free Software Foundation, Inc. 8 8 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. … … 20 20 # You should have received a copy of the GNU General Public License 21 21 # along with this program; if not, write to the Free Software 22 # Foundation, Inc., 5 9 Temple Place - Suite 330, Boston, MA23 # 0211 1-1307, USA.22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 23 # 02110-1301, USA. 24 24 25 25 # As a special exception to the GNU General Public License, if you … … 34 34 35 35 run=: 36 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' 37 sed_minuso='s/.* -o \([^ ]*\).*/\1/p' 36 38 37 39 # In the cases where this matters, `missing' is being run in the … … 45 47 msg="missing on your system" 46 48 47 case "$1"in49 case $1 in 48 50 --run) 49 51 # Try to run requested program, and just exit if it succeeds. … … 78 80 autoconf touch file \`configure' 79 81 autoheader touch file \`config.h.in' 82 autom4te touch the output file, or create a stub one 80 83 automake touch all \`Makefile.in' files 81 84 bison create \`y.tab.[ch]', if possible, from existing .[ch] … … 107 110 # don't have it and --version was passed (most likely to detect 108 111 # the program). 109 case "$1"in112 case $1 in 110 113 lex|yacc) 111 114 # Not GNU programs, they don't have --version. … … 136 139 # If it does not exist, or fails to run (possibly an outdated version), 137 140 # try to emulate it. 138 case "$1"in141 case $1 in 139 142 aclocal*) 140 143 echo 1>&2 "\ … … 165 168 touch_files= 166 169 for f in $files; do 167 case "$f"in170 case $f in 168 171 *:*) touch_files="$touch_files "`echo "$f" | 169 172 sed -e 's/^[^:]*://' -e 's/:.*//'`;; … … 193 196 archive site." 194 197 195 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`196 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`198 file=`echo "$*" | sed -n "$sed_output"` 199 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 197 200 if test -f "$file"; then 198 201 touch $file … … 215 218 \`Bison' from any GNU archive site." 216 219 rm -f y.tab.c y.tab.h 217 if [ $# -ne 1 ]; then220 if test $# -ne 1; then 218 221 eval LASTARG="\${$#}" 219 case "$LASTARG"in222 case $LASTARG in 220 223 *.y) 221 224 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` 222 if [ -f "$SRCFILE" ]; then225 if test -f "$SRCFILE"; then 223 226 cp "$SRCFILE" y.tab.c 224 227 fi 225 228 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` 226 if [ -f "$SRCFILE" ]; then229 if test -f "$SRCFILE"; then 227 230 cp "$SRCFILE" y.tab.h 228 231 fi … … 230 233 esac 231 234 fi 232 if [ ! -f y.tab.h ]; then235 if test ! -f y.tab.h; then 233 236 echo >y.tab.h 234 237 fi 235 if [ ! -f y.tab.c ]; then238 if test ! -f y.tab.c; then 236 239 echo 'main() { return 0; }' >y.tab.c 237 240 fi … … 245 248 \`Flex' from any GNU archive site." 246 249 rm -f lex.yy.c 247 if [ $# -ne 1 ]; then250 if test $# -ne 1; then 248 251 eval LASTARG="\${$#}" 249 case "$LASTARG"in252 case $LASTARG in 250 253 *.l) 251 254 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` 252 if [ -f "$SRCFILE" ]; then255 if test -f "$SRCFILE"; then 253 256 cp "$SRCFILE" lex.yy.c 254 257 fi … … 256 259 esac 257 260 fi 258 if [ ! -f lex.yy.c ]; then261 if test ! -f lex.yy.c; then 259 262 echo 'main() { return 0; }' >lex.yy.c 260 263 fi … … 268 271 effect. You can get \`Help2man' from any GNU archive site." 269 272 270 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 271 if test -z "$file"; then 272 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` 273 fi 274 if [ -f "$file" ]; then 273 file=`echo "$*" | sed -n "$sed_output"` 274 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 275 if test -f "$file"; then 275 276 touch $file 276 277 else … … 290 291 the \`GNU make' package. Grab either from any GNU archive site." 291 292 # The file to touch is that specified with -o ... 292 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 293 file=`echo "$*" | sed -n "$sed_output"` 294 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 293 295 if test -z "$file"; then 294 296 # ... or it is the one specified with @setfilename ... 295 297 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` 296 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` 298 file=`sed -n ' 299 /^@setfilename/{ 300 s/.* \([^ ]*\) *$/\1/ 301 p 302 q 303 }' $infile` 297 304 # ... or it is derived from the source name (dir/f.texi becomes f.info) 298 305 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info 299 306 fi 307 # If the file does not exist, the user really needs makeinfo; 308 # let's fail without touching anything. 309 test -f $file || exit 1 300 310 touch $file 301 311 ;; … … 315 325 firstarg="$1" 316 326 if shift; then 317 case "$firstarg"in327 case $firstarg in 318 328 *o*) 319 329 firstarg=`echo "$firstarg" | sed s/o//` … … 321 331 ;; 322 332 esac 323 case "$firstarg"in333 case $firstarg in 324 334 *h*) 325 335 firstarg=`echo "$firstarg" | sed s/h//`
Note: See TracChangeset
for help on using the changeset viewer.