code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
#
# Shell script to adjust the version numbers and dates wherever they appear
# on the JPGalleg sources and text files.
if [ $# -ne 2 ]; then
echo "Usage: fixver major minor" 1>&2
exit 1
fi
ver_str="$1.$2"
year_str="$(date +%Y)"
echo "s/Version [0-9]\.[0-9], by Angelo Mottola, .*/Version $ver_str, ... | Shell |
#! /bin/sh
#
# Shell script to adjust the version numbers in various AllegroGL files.
#
# Note: if you pass "datestamp" as the only argument, then the version
# digits will remain unchanged and the comment will be set to the date.
# This is in particular useful for making SVN snapshots.
set -e
if [ $# -lt 3 -o $... | Shell |
#! /bin/sh
#
# Shell script to adjust the version numbers in various AllegroGL files.
#
# Note: if you pass "datestamp" as the only argument, then the version
# digits will remain unchanged and the comment will be set to the date.
# This is in particular useful for making SVN snapshots.
set -e
if [ $# -lt 3 -o $... | Shell |
#! /bin/sh
# Generate X11 icon
# Usage: xfixicon iconfile
if test -z "$1"; then
echo "Usage:"
echo " xfixicon iconfile [-o outputfile]"
echo "this will generate a C file that can be linked with your application"
echo "to set the X11 icon automatically."
echo ""
echo "Options:"
echo " -o Set t... | Shell |
#! /bin/sh
# Generate X11 icon
# Usage: xfixicon iconfile
if test -z "$1"; then
echo "Usage:"
echo " xfixicon iconfile [-o outputfile]"
echo "this will generate a C file that can be linked with your application"
echo "to set the X11 icon automatically."
echo ""
echo "Options:"
echo " -o Set t... | Shell |
#!/bin/sh
#
# Convert LF line endings to CR/LF line endings, preserving timestamps and
# permissions on the file.
#
with_unix_tools() {
for file in "$@"
do
echo "$file"
tmpfile=`dirname "$file"`/__dtou_tmp.$RANDOM || exit 1
trap 'rm -f "$tmpfile"' 1 2 3 13 15
# We go through a slightly ... | Shell |
#!/bin/sh
#
# Create `languages.dat' and `keyboard.dat' from `resource' directory.
#
case "$DAT" in
"")
# DAT not supplied. Assume dat is installed on the PATH.
DAT=dat
;;
./*|../*)
# DAT supplied and looks like relative path.
# Assume it is and make it absolute.
DAT="`pwd`/$DAT"
;;
*)
# DAT suppl... | Shell |
#!/bin/sh
#
# Convert CR/LF line endings to LF line endings, preserving timestamps and
# permissions on the file.
#
with_unix_tools() {
for file in "$@"
do
echo "$file"
tmpfile=`dirname "$file"`/__dtou_tmp.$RANDOM || exit 1
trap 'rm -f "$tmpfile"' 1 2 3 13 15
# We go through a slightly ... | Shell |
#!/bin/sh
# This script, by Neil Townsend, is for cross-compilers to parse the `asmdef.s'
# file and generate `asmdef.inc'.
# Updated by Peter Wang.
# Parse command-line arguments
if [ $# != 2 ]; then
echo "usage: $0 asmdef.s asmdef.inc"
exit 1
fi
s_file=$1
inc_file=$2
# 1. Get the comments
grep "/\*" $s_file | ... | Shell |
#!/bin/sh
#
# Note: allegro-config is generated from allegro-config.in, by autoconf.
#
# This script returns suitable commandline options for compiling programs
# using the Allegro library, for example:
#
# gcc myprog.c -o myprog `allegro-config --libs`
#
# Undocumented feature for internal use:
# If... | Shell |
#! /bin/sh
#
# Shell script to scan the source and find any text strings that need
# to be translated. It creates an entext.cfg file containing the
# English version, and if given a commandline argument, will then
# check the named file (which should be a translation into some other
# language) to see if it is mis... | Shell |
#!/bin/sh
#
# Shell script to create a MacOS X package of the library.
# The package will hold an end-user version of Allegro,
# installing just the system wide library framework.
# The created package is compatible with MacOS X 10.2 and newer.
#
# Thanks to macosxhints.com for the hint!
#
# Usage: mkpkg <allegro_dir>
... | Shell |
#!/bin/sh
# This script, by Neil Townsend, is for cross-compilers to parse the `asmdef.s'
# file and generate `asmdef.inc'.
# Updated by Peter Wang.
# Parse command-line arguments
if [ $# != 2 ]; then
echo "usage: $0 asmdef.s asmdef.inc"
exit 1
fi
s_file=$1
inc_file=$2
# 1. Get the comments
grep "/\*" $s_file | ... | Shell |
#!/bin/sh
#
# Convert CR/LF line endings to LF line endings, preserving timestamps and
# permissions on the file.
#
with_unix_tools() {
for file in "$@"
do
echo "$file"
tmpfile=`dirname "$file"`/__dtou_tmp.$RANDOM || exit 1
trap 'rm -f "$tmpfile"' 1 2 3 13 15
# We go through a slightly ... | Shell |
#!/bin/sh
#
# Shell script to create a MacOS X package of the library.
# The package will hold an end-user version of Allegro,
# installing just the system wide library framework.
# The created package is compatible with MacOS X 10.2 and newer.
#
# Thanks to macosxhints.com for the hint!
#
# Usage: mkpkg <allegro_dir>
... | Shell |
#!/bin/sh
#
# Convert LF line endings to CR/LF line endings, preserving timestamps and
# permissions on the file.
#
with_unix_tools() {
for file in "$@"
do
echo "$file"
tmpfile=`dirname "$file"`/__dtou_tmp.$RANDOM || exit 1
trap 'rm -f "$tmpfile"' 1 2 3 13 15
# We go through a slightly ... | Shell |
#!/bin/sh
#
# Note: allegro-config is generated from allegro-config.in, by autoconf.
#
# This script returns suitable commandline options for compiling programs
# using the Allegro library, for example:
#
# gcc myprog.c -o myprog `allegro-config --libs`
#
# Undocumented feature for internal use:
# If... | Shell |
#! /bin/sh
#
# Shell script to create a Windows binary distribution. This will
# compile the DLL files using MSVC or Cygwin, generate the batch file and
# associated helpers needed for end users to build the example programs,
# and finally zip up the results.
#
# Note! If you use Cygwin to generate the DLLs make s... | Shell |
#! /bin/sh -e
#
# Shell script to create a distribution zip, generating the manifest
# file and optionally building diffs against a previous version. This
# should be run from the allegro directory, but will leave the zip
# files in the parent directory.
#
# This script tries to generate dependencies for all the ... | Shell |
#! /bin/sh
#
# Shell script to scan the source and find any text strings that need
# to be translated. It creates an entext.cfg file containing the
# English version, and if given a commandline argument, will then
# check the named file (which should be a translation into some other
# language) to see if it is mis... | Shell |
#!/bin/sh
# gcc-uni.sh
# ----------
# By Matthew Leverton
#
# Builds a universal binary by a multi-step process to allow for individual
# options for both architectures. Its primary use is to be used as a wrapper
# for makefile based projects.
#
# Although untested, it should be able to build OS X 10.2 compatible bui... | Shell |
#!/bin/sh
#
# Create `languages.dat' and `keyboard.dat' from `resource' directory.
#
case "$DAT" in
"")
# DAT not supplied. Assume dat is installed on the PATH.
DAT=dat
;;
./*|../*)
# DAT supplied and looks like relative path.
# Assume it is and make it absolute.
DAT="`pwd`/$DAT"
;;
*)
# DAT suppl... | Shell |
#! /bin/sh -e
#
# Shell script to create a distribution zip, generating the manifest
# file and optionally building diffs against a previous version. This
# should be run from the allegro directory, but will leave the zip
# files in the parent directory.
#
# This script tries to generate dependencies for all the ... | Shell |
#! /bin/sh
#
# Shell script to create a Windows binary distribution. This will
# compile the DLL files using MSVC or Cygwin, generate the batch file and
# associated helpers needed for end users to build the example programs,
# and finally zip up the results.
#
# Note! If you use Cygwin to generate the DLLs make s... | Shell |
#!/bin/sh
# gcc-uni.sh
# ----------
# By Matthew Leverton
#
# Builds a universal binary by a multi-step process to allow for individual
# options for both architectures. Its primary use is to be used as a wrapper
# for makefile based projects.
#
# Although untested, it should be able to build OS X 10.2 compatible bui... | Shell |
#!/bin/sh
#
# Shell script to adjust the version numbers and dates wherever they appear
# on the JPGalleg sources and text files.
if [ $# -ne 2 ]; then
echo "Usage: fixver major minor" 1>&2
exit 1
fi
ver_str="$1.$2"
year_str="$(date +%Y)"
echo "s/Version [0-9]\.[0-9], by Angelo Mottola, .*/Version $ver_str, ... | Shell |
#!/bin/sh
#
# Shell script to adjust the version numbers and dates wherever they appear
# on the JPGalleg sources and text files.
if [ $# -ne 2 ]; then
echo "Usage: fixver major minor" 1>&2
exit 1
fi
ver_str="$1.$2"
year_str="$(date +%Y)"
echo "s/Version [0-9]\.[0-9], by Angelo Mottola, .*/Version $ver_str, ... | Shell |
#! /bin/sh
#
# Shell script to adjust the version numbers in various AllegroGL files.
#
# Note: if you pass "datestamp" as the only argument, then the version
# digits will remain unchanged and the comment will be set to the date.
# This is in particular useful for making SVN snapshots.
set -e
if [ $# -lt 3 -o $... | Shell |
#! /bin/sh
#
# Shell script to adjust the version numbers in various AllegroGL files.
#
# Note: if you pass "datestamp" as the only argument, then the version
# digits will remain unchanged and the comment will be set to the date.
# This is in particular useful for making SVN snapshots.
set -e
if [ $# -lt 3 -o $... | Shell |
#! /bin/sh
# Generate X11 icon
# Usage: xfixicon iconfile
if test -z "$1"; then
echo "Usage:"
echo " xfixicon iconfile [-o outputfile]"
echo "this will generate a C file that can be linked with your application"
echo "to set the X11 icon automatically."
echo ""
echo "Options:"
echo " -o Set t... | Shell |
#! /bin/sh
# Generate X11 icon
# Usage: xfixicon iconfile
if test -z "$1"; then
echo "Usage:"
echo " xfixicon iconfile [-o outputfile]"
echo "this will generate a C file that can be linked with your application"
echo "to set the X11 icon automatically."
echo ""
echo "Options:"
echo " -o Set t... | Shell |
NLPID=`pgrep -u $UID notify-listener`
DSBA=`cat /proc/$NLPID/environ | tr '\0' '\n' | grep DBUS_SESSION_BUS_ADDRESS | cut -d '=' -f2-`
DBUS_SESSION_BUS_ADDRESS=$DSBA exec "$@"
| Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/bin/bash
if [ $1 ]
then
tm=$1
else
echo need hh:mm
exit
fi
for((i=20;$i<40;i=$i+1))
do
echo $tm:$i `grep accept\ $tm:$i log/*.12345.log 2>/dev/null|wc -l` `grep request\ $tm:$i log/*.12345.log 2>/dev/null|perl -nae 'END{print "$n $c\n"}$n++;$c+=$F[3]'`
done
| Shell |
#!/bin/bash
if [ $1 ]
then
tm=$1
else
echo need hh:mm
exit
fi
for((i=20;$i<40;i=$i+1))
do
echo $tm:$i `grep accept\ $tm:$i log/*.12345.log 2>/dev/null|wc -l` `grep request\ $tm:$i log/*.12345.log 2>/dev/null|perl -nae 'END{print "$n $c\n"}$n++;$c+=$F[3]'`
done
| Shell |
#!/bin/bash
if [ $1 ]
then
port=$1
else
port=12345
fi
s=1000
e=300
for (( i=$s ; $i < $s+$e ;i=$i+1))
do
echo $i `date`
./bosh-client $port $i 5 >log/$i.$port.log 2>/dev/null &
usleep 100000
done
| Shell |
#!/bin/bash
if [ $1 ]
then
port=$1
else
port=12345
fi
s=1000
e=300
for (( i=$s ; $i < $s+$e ;i=$i+1))
do
echo $i `date`
./bosh-client $port $i 5 >log/$i.$port.log 2>/dev/null &
usleep 100000
done
| Shell |
#!/bin/bash
url=/
date >stress.log
for ((i=1; $i < 6 ; i=$i+1))
do
usleep 1000
echo $i `date`
(
echo $i `./stress \
--port 80 \
--addr 192.168.0.10 \
--laddr 127.0.0.$i \
--host test.karnage.ru \
--timing \
--count 50000 \
--url $url 2>/dev/null` >>stress.log
) &
done
| Shell |
#!/bin/bash
url=/
date >stress.log
for ((i=1; $i < 6 ; i=$i+1))
do
usleep 1000
echo $i `date`
(
echo $i `./stress \
--port 80 \
--addr 192.168.0.10 \
--laddr 127.0.0.$i \
--host test.karnage.ru \
--timing \
--count 50000 \
--url $url 2>/dev/null` >>stress.log
) &
done
| Shell |
#!/bin/bash
t="http"
#t="sock"
perl $t-client1.pl --interactive --login admin --pass 12345 --chanel main --response --debug 0
| Shell |
#!/bin/bash
s=10000
e=50
rm ../../log/*
echo > ../../log/start.pids
echo > ../../log/reg.log
if [ $1 ]
then
rl="start"
for (( i=$s ; $i < $s + $e ; i=$i+1))
do
rl="$rl|/reg $i $i"
done
rl="$rl|stop|/exit"
perl sock-client1.pl \
--login admin --pass 12345 \
--run "$rl" \
--debug >.... | Shell |
#!/bin/bash
#kill `cat ../../log/start.pids`
g=0
b=0
for p in `cat ../../log/start.pids`
do
if kill $p >/dev/null 2>&1
then
g=`expr $g + 1`
else
b=`expr $b + 1`
fi
done
echo $g $b
| Shell |
#!/bin/bash
s=10000
e=1000
c=2
rm ../../log/*
echo > ../../log/start.pids
nc=`expr $e / $c`
for (( i=$s ; $i < $s + $e ; i=$i+1))
do
ch=`expr $i % $nc`
ch=`expr $ch + $s`
echo $i ch$ch `date`
perl http-client1.pl \
--login $i --pass $i \
--host test.ngsys.ru --addr 127.0.0.1 --port 12345 \
--interval 1... | Shell |
#!/bin/bash
s=10000
e=50
rm ../../log/*
echo > ../../log/start.pids
echo > ../../log/reg.log
if [ $1 ]
then
rl="start"
for (( i=$s ; $i < $s + $e ; i=$i+1))
do
rl="$rl|/reg $i $i"
done
rl="$rl|stop|/exit"
perl sock-client1.pl \
--login admin --pass 12345 \
--run "$rl" \
--debug >.... | Shell |
#!/bin/bash
t="http"
#t="sock"
perl $t-client1.pl --interactive --login admin --pass 12345 --chanel main --response --debug 0
| Shell |
#!/bin/bash
kill `cat srv.pid 2>/dev/null` 2>/dev/null
if [ "$1" -a "$1" = "stop" ]
then
echo "stoppped"
else
echo "restarted"
nohup perl server1.pl --debug 0 >srv.log 2>srv.err &
echo $! >srv.pid
fi
| Shell |
#!/bin/bash
#kill `cat ../../log/start.pids`
g=0
b=0
for p in `cat ../../log/start.pids`
do
if kill $p >/dev/null 2>&1
then
g=`expr $g + 1`
else
b=`expr $b + 1`
fi
done
echo $g $b
| Shell |
#!/bin/bash
kill `cat srv.pid 2>/dev/null` 2>/dev/null
if [ "$1" -a "$1" = "stop" ]
then
echo "stoppped"
else
echo "restarted"
nohup perl server1.pl --debug 0 >srv.log 2>srv.err &
echo $! >srv.pid
fi
| Shell |
#!/bin/bash
s=10000
e=1000
c=2
rm ../../log/*
echo > ../../log/start.pids
nc=`expr $e / $c`
for (( i=$s ; $i < $s + $e ; i=$i+1))
do
ch=`expr $i % $nc`
ch=`expr $ch + $s`
echo $i ch$ch `date`
perl http-client1.pl \
--login $i --pass $i \
--host test.ngsys.ru --addr 127.0.0.1 --port 12345 \
--interval 1... | Shell |
#!/bin/bash
#kill `cat ../../log/start.pids`
g=0
b=0
for p in `cat ../../log/start.pids`
do
if kill $p >/dev/null 2>&1
then
g=`expr $g + 1`
else
b=`expr $b + 1`
fi
done
echo $g $b
| Shell |
#!/bin/bash
s=20000
e=10
c=10
rm ../../log/*
echo > ../../log/start.pids
nc=`expr $e / $c`
for (( i=$s ; $i < $s + $e ; i=$i+1))
do
ch=`expr $i % $nc`
ch=`expr $ch + $s`
echo $i ch$ch `date`
perl bs-client5.pl \
--login $i \
--port 80 --host test.ngsys.ru --addr 192.168.254.200 --port 80 -path ch \
--in... | Shell |
#!/bin/bash
s=20000
e=10
c=10
rm ../../log/*
echo > ../../log/start.pids
nc=`expr $e / $c`
for (( i=$s ; $i < $s + $e ; i=$i+1))
do
ch=`expr $i % $nc`
ch=`expr $ch + $s`
echo $i ch$ch `date`
perl bs-client5.pl \
--login $i \
--port 80 --host test.ngsys.ru --addr 192.168.254.200 --port 80 -path ch \
--in... | Shell |
#!/bin/bash
if [ $1 ]
then
tm=$1
else
echo need hh:mm
exit
fi
pl=../../log
for((i=20;$i<40;i=$i+1))
do
echo $tm:$i `grep $tm:$i\ RESPONSE\(message $pl/*.log 2>/dev/null | wc -l`
#`grep request\ $tm:$i log/*.12345.log 2>/dev/null|perl -nae 'END{print "$n $c\n"}$n++;$c+=$F[3]'`
done
| Shell |
#!/bin/bash
#kill `cat ../../log/start.pids`
g=0
b=0
for p in `cat ../../log/start.pids`
do
if kill $p >/dev/null 2>&1
then
g=`expr $g + 1`
else
b=`expr $b + 1`
fi
done
echo $g $b
| Shell |
#!/bin/bash
if [ $1 ]
then
tm=$1
else
echo need hh:mm
exit
fi
pl=../../log
for((i=20;$i<40;i=$i+1))
do
echo $tm:$i `grep $tm:$i\ RESPONSE\(message $pl/*.log 2>/dev/null | wc -l`
#`grep request\ $tm:$i log/*.12345.log 2>/dev/null|perl -nae 'END{print "$n $c\n"}$n++;$c+=$F[3]'`
done
| Shell |
#!/bin/bash
#mn -c
file=sdn1.cap
tcpdump not port 22 and not port 6010 -i any -q -c 10000 -W 1 -w $file &
#tcpdump port 6633 or port 6634 -i any -q -w $file &
pid=$!
echo "$pid"
# do other stuff
python SDNInfoColector.py
sleep 1
kill $pid
runcount=0
f=.runcnt.txt
read runcount < $f
echo $runcount
./minicap $file ... | Shell |
#!/bin/bash
#mn -c
file=sdn1.cap
tcpdump not port 22 and not port 6010 -i any -q -c 10000 -W 1 -w $file &
#tcpdump port 6633 or port 6634 -i any -q -w $file &
pid=$!
echo "$pid"
# do other stuff
python SDNInfoColector.py
sleep 1
kill $pid
runcount=0
f=.runcnt.txt
read runcount < $f
echo $runcount
./minicap $file ... | Shell |
#!/bin/bash
# Compilation des sources
mvn compile
mvn test-compile
# Utilisation de Jumble
java -jar jumble.jar --classpath=./target/classes/:./target/test-classes/ fr.alma.coeur.Activateur
java -jar jumble.jar --classpath=./target/classes/:./target/test-classes/ fr.alma.coeur.GestionPlugins
java -jar jumble.jar --cl... | Shell |
#!/bin/bash
# Compilation des sources
mvn compile
mvn test-compile
# Utilisation de Jumble
java -jar jumble.jar --classpath=./target/classes/:./target/test-classes/ fr.alma.coeur.Activateur
java -jar jumble.jar --classpath=./target/classes/:./target/test-classes/ fr.alma.coeur.GestionPlugins
java -jar jumble.jar --cl... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#! /bin/sh
# Generate X11 icon
# Usage: xfixicon iconfile
if test -z "$1"; then
echo "Usage:"
echo " xfixicon iconfile [-o outputfile]"
echo "this will generate a C file that can be linked with your application"
echo "to set the X11 icon automatically."
echo ""
echo "Options:"
echo " -o Set t... | Shell |
#! /bin/sh
# Generate X11 icon
# Usage: xfixicon iconfile
if test -z "$1"; then
echo "Usage:"
echo " xfixicon iconfile [-o outputfile]"
echo "this will generate a C file that can be linked with your application"
echo "to set the X11 icon automatically."
echo ""
echo "Options:"
echo " -o Set t... | Shell |
#!/bin/sh
#
# This is a helper script for using a cross compiler to build and install
# the Allegro library. It is currently set up to use the MinGW
# cross-compiler out of the box but you can edit XC_PATH and INSTALL_BASE
# to use it with for example a djgpp cross-compiler.
# 1. Put here the path on which the cross c... | Shell |
#!/bin/sh
#
# Sets up the Allegro package for building with the specified compiler,
# and if possible converting text files to the desired target format.
#
proc_help()
{
echo
echo "Usage: $0 <platform> [--quick|--dtou|--utod|--utom|--mtou]"
echo
echo "Where platform is one of: bcc32, beos, djgpp, mingw, ms... | Shell |
#!/bin/sh
#
# This is a helper script for using a cross compiler to build and install
# the Allegro library. It is currently set up to use the MinGW
# cross-compiler out of the box but you can edit XC_PATH and INSTALL_BASE
# to use it with for example a djgpp cross-compiler.
# 1. Put here the path on which the cross c... | Shell |
#!/bin/sh
#
# Sets up the Allegro package for building with the specified compiler,
# and if possible converting text files to the desired target format.
#
proc_help()
{
echo
echo "Usage: $0 <platform> [--quick|--dtou|--utod|--utom|--mtou]"
echo
echo "Where platform is one of: bcc32, beos, djgpp, mingw, ms... | Shell |
#!/bin/sh
#
# allegro-config script, QNX version.
#
# This script returns suitable commandline options for compiling programs
# using the Allegro library, for example:
#
# gcc myprog.c -o myprog `allegro-config --libs`
#
# Derived from the Unix version of the same script.
version=4.2.3
prefix=
exec_prefix=$pr... | Shell |
#!/bin/sh
#
# Shell script to create a MacOS X package of the library.
# The package will hold an end-user version of Allegro,
# installing just the system wide library framework.
# The created package is compatible with MacOS X 10.2 and newer.
#
# Thanks to macosxhints.com for the hint!
#
# Usage: mkpkg <allegro_dir>
... | Shell |
#!/bin/sh
#
# Note: allegro-config is generated from allegro-config.in, by autoconf.
#
# This script returns suitable commandline options for compiling programs
# using the Allegro library, for example:
#
# gcc myprog.c -o myprog `allegro-config --libs`
#
# This is heavily based on a similar script from GTK.
v... | Shell |
#! /bin/sh
#
# Updates timestamps in order, to avoid rebuilding configuration files.
#
touch configure.in
touch makefile.in
touch aclocal.m4
touch acconfig.h
touch include/allegro/platform/alunixac.hin
touch stamp-h.in
touch configure
| Shell |
#! /bin/sh
#
# Shell script to scan the source and find any text strings that need
# to be translated. It creates an entext.cfg file containing the
# English version, and if given a commandline argument, will then
# check the named file (which should be a translation into some other
# language) to see if it is mis... | Shell |
#!/bin/sh
################################################################
# mkunixdists.sh -- shell script to generate Unix distributions
#
# Usage: mkunixdists.sh <archive>[.zip] [tmpdir]
#
# This generates all the Unix-specific distributions. The
# existing ZIP format is fine on Unix too, but we'll generate
# here... | Shell |
#! /bin/sh
# Generate dependencies and rules for building datafile utility programs
# from one source file and both the Allegro and datafile libraries.
if test "`echo tools/plugins/*.scu`" != "tools/plugins/*.scu"; then
plugin_scripts="\$(PLUGIN_LIB) `cat tools/plugins/*.scu | tr \\\r\\\n ' ' | sed -e 's/ *$//'`"
... | Shell |
#! /bin/sh
#
# Shell script to create a Windows binary distribution. This will
# compile the DLL files using MSVC or Cygwin, generate the batch file and
# associated helpers needed for end users to build the example programs,
# and finally zip up the results.
#
# Note! If you use Cygwin to generate the DLLs make s... | Shell |
#!/bin/sh
#
# Shell script to scan the header files and build the DLL export definition files for the Windows port.
#
# It uses misc/scanexp.c as a support for the preprocessing stage and can run in two modes:
# - without option: generates the export definition files for MSVC, MinGW and BCC32
# - with '--update... | Shell |
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Last modified: 1994-03-25
# Public domain
errstatus=0
for file in ${1+"$@"} ; do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
f... | Shell |
#! /bin/sh
#
# Shell script to scan the source and find any text strings that need
# to be translated. It creates an entext.cfg file containing the
# English version, and if given a commandline argument, will then
# check the named file (which should be a translation into some other
# language) to see if it is mis... | Shell |
#!/bin/sh
#
# Note: allegro-config is generated from allegro-config.in, by autoconf.
#
# This script returns suitable commandline options for compiling programs
# using the Allegro library, for example:
#
# gcc myprog.c -o myprog `allegro-config --libs`
#
# This is heavily based on a similar script from GTK.
v... | Shell |
#! /bin/sh
#
# Shell script to create a distribution zip, generating the manifest
# file and optionally building diffs against a previous version. This
# should be run from the allegro directory, but will leave the zip
# files in the parent directory.
#
# This script tries to generate dependencies for all the sup... | Shell |
#! /bin/sh
# Generate dependencies and rules for building datafile utility programs
# from one source file and both the Allegro and datafile libraries.
if test "`echo tools/plugins/*.scu`" != "tools/plugins/*.scu"; then
plugin_scripts="\$(PLUGIN_LIB) `cat tools/plugins/*.scu | tr \\\r\\\n ' ' | sed -e 's/ *$//'`"
... | Shell |
#!/bin/sh
#
# Shell script to scan the header files and build the DLL export definition files for the Windows port.
#
# It uses misc/scanexp.c as a support for the preprocessing stage and can run in two modes:
# - without option: generates the export definition files for MSVC, MinGW and BCC32
# - with '--update... | Shell |
#! /bin/sh
# Generate dependencies and rules for multifile binaries like the
# makedoc program. Usage is 'script binary_target sourcefiles'
first=$1
depend=
missing=
if test -n "$first"; then
for file in $*; do
if test $first != $file; then
if test -f $file; then
dir=`echo $file | sed 's,/[^/]*$,,'`
... | Shell |
#!/bin/sh
#
# Create `languages.dat' and `keyboard.dat' from `resource' directory.
#
case "$DAT" in
"")
# DAT not supplied. Assume dat is installed on the PATH.
DAT=dat
;;
./*|../*)
# DAT supplied and looks like relative path.
# Assume it is and make it absolute.
DAT="`pwd`/$DAT"
;;
*)
# DAT suppl... | Shell |
#!/bin/sh
# gcc-uni.sh
# ----------
# By Matthew Leverton
#
# Builds a universal binary by a multi-step process to allow for individual
# options for both architectures. Its primary use is to be used as a wrapper
# for makefile based projects.
#
# Although untested, it should be able to build OS X 10.2 compatible bui... | Shell |
#!/bin/sh
################################################################
# mkunixdists.sh -- shell script to generate Unix distributions
#
# Usage: mkunixdists.sh <archive>[.zip] [tmpdir]
#
# This generates all the Unix-specific distributions. The
# existing ZIP format is fine on Unix too, but we'll generate
# here... | Shell |
#!/bin/sh
#
# allegro-config script, QNX version.
#
# This script returns suitable commandline options for compiling programs
# using the Allegro library, for example:
#
# gcc myprog.c -o myprog `allegro-config --libs`
#
# Derived from the Unix version of the same script.
version=4.2.3
prefix=
exec_prefix=$pr... | Shell |
#! /bin/sh
# Generate dependencies and rules for building libraries.
# write_code: Writes the Make rules to create a set of libraries.
# Pass the library type (e.g. `alleg') and the object list variables' prefix
# (e.g. 'LIBALLEG'). What a nasty mixture of shell and Make variables...
write_code() {
staticlib... | Shell |
#! /bin/sh
# Usage: depmod.sh module_name libraries sources ...
# Generate dependencies and rules for building dynamically loaded modules
# under Unices.
modname=$1
modlibs=$2
shift; shift
sources=$*
objects=`echo $sources | sed 's,[^ ]*/,,g;s,\.[^. ]*,,g'`
MODNAME=`echo $modname | tr a-z A-Z`
module="alleg-${... | Shell |
#! /bin/sh
#
# Shell script to create a Windows binary distribution. This will
# compile the DLL files using MSVC or Cygwin, generate the batch file and
# associated helpers needed for end users to build the example programs,
# and finally zip up the results.
#
# Note! If you use Cygwin to generate the DLLs make s... | Shell |
#! /bin/sh
#
# Updates timestamps in order, to avoid rebuilding configuration files.
#
touch configure.in
touch makefile.in
touch aclocal.m4
touch acconfig.h
touch include/allegro/platform/alunixac.hin
touch stamp-h.in
touch configure
| Shell |
#! /bin/sh
# Generate dependencies and rules for building simple programs
# from one source file.
missing=
symbols=
for file in .. $*; do
if test -f $file; then
dir=`echo $file | sed 's,/[^/]*$,,'`
name=`echo $file | sed 's,^.*/,,' | sed 's,\.[^.]*$,,'`
ext=`echo $file | sed 's,^.*\.,,'`
includes=
... | Shell |
#!/bin/sh
# Used by makefile.all's create-install-dirs target.
for dir in $*; do
if [ ! -d "$dir" ]; then
mkdir $dir
if [ $? != 0 ]; then
exit 1
fi
fi
done
| Shell |
#! /bin/sh
# Usage: deplexe.sh libraries sources ...
# Generate dependencies and rules for building simple programs
# from one source file and library.
libs=$1
shift
missing=
symbols=
for file in .. $*; do
if test -f $file; then
dir=`echo $file | sed 's,/[^/]*$,,'`
name=`echo $file | sed 's,^.*/,,' | sed ... | Shell |
#! /bin/sh
# Generate dependencies and rules for building the datafile plugins library.
plugin_files="$* tools/plugins/*.c"
objects=`echo $plugin_files | sed 's,[^ ]*/,,g;s,\.[^. ]*,,g'`
# Normal library.
prev="LIBALDAT_OBJECTS ="
for file in .. $objects; do
if test "$file" != ..; then
echo "$prev \\"
pr... | Shell |
#!/bin/sh
#
# Shell script to create a MacOS X package of the library.
# The package will hold an end-user version of Allegro,
# installing just the system wide library framework.
# The created package is compatible with MacOS X 10.2 and newer.
#
# Thanks to macosxhints.com for the hint!
#
# Usage: mkpkg <allegro_dir>
... | Shell |
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5.
#
# 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, ... | Shell |
#!/bin/sh
# This script, by Neil Townsend, is for cross-compilers to parse the `asmdef.s'
# file and generate `asmdef.inc'.
# Updated by Peter Wang.
# Parse command-line arguments
if [ $# != 2 ]; then
echo "usage: $0 asmdef.s asmdef.inc"
exit 1
fi
s_file=$1
inc_file=$2
# 1. Get the comments
grep "/\*" $s_file | ... | Shell |
#!/bin/sh
#
# Create `languages.dat' and `keyboard.dat' from `resource' directory.
#
case "$DAT" in
"")
# DAT not supplied. Assume dat is installed on the PATH.
DAT=dat
;;
./*|../*)
# DAT supplied and looks like relative path.
# Assume it is and make it absolute.
DAT="`pwd`/$DAT"
;;
*)
# DAT suppl... | Shell |
#!/bin/sh
# Used by makefile.all's create-install-dirs target.
for dir in $*; do
if [ ! -d "$dir" ]; then
mkdir $dir
if [ $? != 0 ]; then
exit 1
fi
fi
done
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.