code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/sh
# this script uses ImageMagic to cut the needed portions out of png
# upper left
convert frame.png -gravity NorthWest -crop 20x15+0+0 +repage t_aa.png
# upper right
convert frame.png -gravity NorthEast -crop 20x15+0+0 +repage t_ac.png
# lower left
convert frame.png -gravity SouthWest -crop 20x25+0+0 +repag... | Shell |
#! /bin/sh
# Trebol-A 2005 (info@trebol-a.com)
# http://www.trebol-a.com
#
# This script cropped your picture and create eight new images from a new decoration theme of a-foto
# Use: ./recorte.sh file.png border_top border_left border_right border_bottom
# Example: ./recorte.sh wood.png 10 10 10 20
ancho=`identify -... | Shell |
#! /bin/sh
# Trebol-A 2005 (info@trebol-a.com)
# http://www.trebol-a.com
#
# This script cropped your picture and create eight new images from shadows of superkaramba theme a-foto
# Use: ./recorte.sh file.png border_top border_left border_right border_bottom
# Example: ./recorte.sh wood.png 10 10 10 20
ancho=`identi... | Shell |
#! /bin/sh
# Trebol-A 2005 (info@trebol-a.com)
# http://www.trebol-a.com
#
# This script cropped your picture and create eight new images from a new decoration theme of a-foto
# Use: ./recorte.sh file.png border_top border_left border_right border_bottom
# Example: ./recorte.sh wood.png 10 10 10 20
ancho=`identify -... | Shell |
#! /bin/sh
# Trebol-A 2005 (info@trebol-a.com)
# http://www.trebol-a.com
#
# This script cropped your picture and create eight new images from shadows of superkaramba theme a-foto
# Use: ./recorte.sh file.png border_top border_left border_right border_bottom
# Example: ./recorte.sh wood.png 10 10 10 20
ancho=`identi... | Shell |
#! /bin/sh
# Trebol-A 2005 (info@trebol-a.com)
# http://www.trebol-a.com
#
# This script cropped your picture and create eight new images from a new decoration theme of a-foto
# Use: ./recorte.sh file.png border_top border_left border_right border_bottom
# Example: ./recorte.sh wood.png 10 10 10 20
ancho=`identify -... | Shell |
#! /bin/sh
# Trebol-A 2005 (info@trebol-a.com)
# http://www.trebol-a.com
#
# This script cropped your picture and create eight new images from a new decoration theme of a-foto
# Use: ./recorte.sh file.png border_top border_left border_right border_bottom
# Example: ./recorte.sh wood.png 10 10 10 20
ancho=`identify -... | Shell |
#! /bin/sh
# this script uses ImageMagic to cut the needed portions out of png
# upper left
convert frame.png -gravity NorthWest -crop 20x15+0+0 +repage t_aa.png
# upper right
convert frame.png -gravity NorthEast -crop 20x15+0+0 +repage t_ac.png
# lower left
convert frame.png -gravity SouthWest -crop 20x25+0+0 +repag... | Shell |
#! /bin/sh
# this script uses ImageMagic to cut the needed portions out of png
# upper left
convert frame.png -gravity NorthWest -crop 20x15+0+0 +repage t_aa.png
# upper right
convert frame.png -gravity NorthEast -crop 20x15+0+0 +repage t_ac.png
# lower left
convert frame.png -gravity SouthWest -crop 20x25+0+0 +repag... | Shell |
g++ -g convertor.cpp ddsbase.cpp
| Shell |
cd ..
srcdir=`pwd`
mkdir -p build/debug
cd build/debug
cmake -DCMAKE_BUILD_TYPE=Debug "$srcdir" -DCMAKE_INSTALL_PREFIX=output
make
| Shell |
cd ..
srcdir=`pwd`
mkdir -p build/release
cd build/release
cmake -DCMAKE_BUILD_TYPE=Release "$srcdir" -DCMAKE_INSTALL_PREFIX=output
make
| Shell |
rm tes*
| Shell |
#!/bin/bash
if [ ! -e eigen-android ]; then
hg clone https://bitbucket.org/eigen/eigen eigen-android
else
cd eigen-android && hg pull && hg update
fi
| Shell |
#!/bin/sh
current_dir=`pwd`
mkdir -p download
cd download
if [ ! -e boost_1_45_0.tar.gz ]
then
echo "wget'ing boost'"
#this url is for convenience, consider it a mirror and you may replace it
#with any existing boost_1_45_0.tar.gz url
boost_download=http://vault.willowgarage.com/wgdata1/vol1/android_bo... | Shell |
#!/bin/sh
if [ $# -ne 1 ]
then
echo "Error in $0 - Invalid Argument Count"
echo "Syntax: $0 boost_1_45_0"
exit
fi
patch $1/libs/filesystem/v2/src/v2_operations.cpp < android.patch
| Shell |
#!/bin/sh
if [ $# -ne 1 ]
then
echo "Error in $0 - Invalid Argument Count"
echo "Syntax: $0 boost_1_45_0"
exit
fi
patch $1/libs/filesystem/v2/src/v2_operations.cpp < filesystem.patch
patch $1/boost/detail/endian.hpp < endian.patch
| Shell |
if [ -z "$1" ]
then
echo "Usage: `basename $0` <path>
the path will be used to download and untar the android-ndk to."
exit $E_NOARGS
fi
export destination=$1
if [ ! -e $destination ]; then
echo "$destination does not exist!"
exit 1
fi
ball=android-ndk-r5b-linux-x86.tar.bz2
hash=4c0045ddc2bfd657be9d5177d0e0b7... | Shell |
if [ -z "$1" ]
then
echo "Usage: `basename $0` <path>
the path will be used to download and untar the android-ndk into."
exit $E_NOARGS
fi
export destination=$1
if [ ! -e $destination ]; then
echo "$destination does not exist!"
exit 1
fi
ball=android-ndk-r5b-linux-x86.tar.bz2
hash=4c0045ddc2bfd657be9d5177d0e0... | Shell |
#!/bin/sh
#this generates an ant based cli build of the android-jni project
android update project --name hello-android-cmake \
--path .
| Shell |
#this generates an ant based cli build of the android-jni project
android update project --name HelloGL2 \
--path .
| Shell |
#!/bin/bash
#javac HelloWorld.java
cd java && ant
| Shell |
#!/bin/bash
LD_LIBRARY_PATH=./lib/pc
export LD_LIBRARY_PATH
java -jar java/dist/lib/HelloBoost.jar
| Shell |
javah -jni -classpath build com.theveganrobot.cmake.HelloBoost
| Shell |
#!/bin/bash
#javac HelloWorld.java
cd java && ant
| Shell |
#!/bin/sh
#this generates an ant based cli build of the android-jni project
android update project --name hello-eigen \
--path .
| Shell |
#!/bin/bash
LD_LIBRARY_PATH=./lib/pc
export LD_LIBRARY_PATH
java -jar java/dist/lib/HelloEigen.jar
| Shell |
javah -jni -classpath build com.theveganrobot.cmake.HelloEigen
| Shell |
#!/bin/bash
#javac HelloWorld.java
cd java && ant
| Shell |
#!/bin/bash
LD_LIBRARY_PATH=./lib/pc
export LD_LIBRARY_PATH
java -jar java/dist/lib/HelloCMake.jar
| Shell |
javah -jni -classpath build com.theveganrobot.cmake.HelloWorld
| Shell |
#!/bin/bash
svn st | grep '^!' | awk '{print $2}' | xargs svn delete --force
| Shell |
#!/bin/bash
svn st | grep '^!' | awk '{print $2}' | xargs svn delete --force
| Shell |
#!/bin/bash
test -z "$1" && echo "Usage: commit <message>" && exit
echo "Cleaning"
./cleanup
echo "Commiting"
svn commit -m "${@}"
echo "Done"
| Shell |
#!/bin/bash
test -z "$1" && echo "Usage: commit <message>" && exit
echo "Cleaning"
./cleanup
echo "Commiting"
svn commit -m "${@}"
echo "Done"
| Shell |
#!/bin/bash
# Recreate
rm -f user.passwd
touch user.passwd
# SVNUsers
userPasswdArray=(
"jinhaijiang jhj117"
"hanning hn111"
"yaohuimin yhm120"
"songchaopeng scp888"
)
for userPasswd in "${userPasswdArray[@]}"
do
# Add to passwd
sudo /opt/lampp/bin/htpasswd -b user.passwd $userPa... | Shell |
#!/bin/bash
# Recreate
rm -f user.passwd
touch user.passwd
# SVNUsers
userPasswdArray=(
"jinhaijiang jhj117"
"hanning hn111"
"yaohuimin yhm120"
"songchaopeng scp888"
)
for userPasswd in "${userPasswdArray[@]}"
do
# Add to passwd
sudo /opt/lampp/bin/htpasswd -b user.passwd $userPa... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked immediately after a Subversion txn is
# created and populated with initial revprops in the process of doing a
# commit. Subversion runs this hook by invoking a program (script,
# executable, binary, etc.) named 'start-commit' (for which this fi... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked immediately after a Subversion txn is
# created and populated with initial revprops in the process of doing a
# commit. Subversion runs this hook by invoking a program (script,
# executable, binary, etc.) named 'start-commit' (for which this fi... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked immediately after a Subversion txn is
# created and populated with initial revprops in the process of doing a
# commit. Subversion runs this hook by invoking a program (script,
# executable, binary, etc.) named 'start-commit' (for which this fi... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# POST-LOCK HOOK
#
# The post-lock hook is run after a path is locked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-lock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this repos... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/sh
# POST-REVPROP-CHANGE HOOK
#
# The post-revprop-change hook is invoked after a revision property
# has been added, modified or deleted. Subversion runs this hook by
# invoking a program (script, executable, binary, etc.) named
# 'post-revprop-change' (for which this file is a template), with the
# f... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# START-COMMIT HOOK
#
# The start-commit hook is invoked immediately after a Subversion txn is
# created and populated with initial revprops in the process of doing a
# commit. Subversion runs this hook by invoking a program (script,
# executable, binary, etc.) named 'start-commit' (for which this fi... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# PRE-LOCK HOOK
#
# The pre-lock hook is invoked before an exclusive lock is
# created. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-lock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (the pat... | Shell |
#!/bin/sh
# PRE-UNLOCK HOOK
#
# The pre-unlock hook is invoked before an exclusive lock is
# destroyed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-unlock' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH ... | Shell |
#!/bin/sh
# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-commit' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this rep... | Shell |
#!/bin/sh
# PRE-COMMIT HOOK
#
# The pre-commit hook is invoked before a Subversion txn is
# committed. Subversion runs this hook by invoking a program
# (script, executable, binary, etc.) named 'pre-commit' (for which
# this file is a template), with the following ordered arguments:
#
# [1] REPOS-PATH (t... | Shell |
#!/bin/sh
# PRE-REVPROP-CHANGE HOOK
#
# The pre-revprop-change hook is invoked before a revision property
# is added, modified or deleted. Subversion runs this hook by invoking
# a program (script, executable, binary, etc.) named 'pre-revprop-change'
# (for which this file is a template), with the following or... | Shell |
#!/bin/sh
# POST-UNLOCK HOOK
#
# The post-unlock hook runs after a path is unlocked. Subversion runs
# this hook by invoking a program (script, executable, binary, etc.)
# named 'post-unlock' (for which this file is a template) with the
# following ordered arguments:
#
# [1] REPOS-PATH (the path to this... | Shell |
#!/bin/sh
APPBUNDLE=ioquake3.app
BINARY=ioquake3.ub
DEDBIN=ioq3ded.ub
PKGINFO=APPLIOQ3
ICNS=misc/quake3.icns
DESTDIR=build/release-darwin-ub
BASEDIR=baseq3
MPACKDIR=missionpack
BIN_OBJ="
build/release-darwin-ppc/ioquake3-smp.ppc
build/release-darwin-i386/ioquake3-smp.i386
"
BIN_DEDOBJ="
build/release-darwin-ppc/ioq... | Shell |
#!/bin/sh
export CC=i586-mingw32msvc-gcc
export WINDRES=i586-mingw32msvc-windres
export PLATFORM=mingw32
if [ !$ARCH ]
then
export ARCH=x86
fi
exec make $*
| Shell |
#!/bin/bash
: ${MAKESELF:=/usr/share/loki-setup/makeself}
: ${SETUPIMAGE:=/usr/share/loki-setup/image}
: ${VERSION:=0.0_`date +%Y%m%d%H%M`}
: ${RELEASE:=0}
set -e
set -x
shopt -s nullglob
rm -rf image
mkdir image
### loki-setup files
cp -a $SETUPIMAGE/{setup.data,setup.sh} image/
### splash
rm -f image/setup.dat... | Shell |
#!/bin/sh
set -e
if ! test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then
exit 0
fi
xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null`
if test "x$xdg_desktop_menu" = x; then
xdg_desktop_menu=./xdg-desktop-menu
fi
sed -e "s#^Exec=.*#Exec=$SETUP_INSTALLPATH/ioquake3#" \
-e "s#^Icon=.*#Icon=$SETUP_INSTALLPAT... | Shell |
#!/bin/sh
readlink() {
local path=$1 ll
if [ -L "$path" ]; then
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
echo "${ll##* -> }"
else
return 1
fi
}
script=$0
count=0
while [ -L "$script" ]
do
script=$(readlink "$script")
count=`expr $count + 1`
if [ $c... | Shell |
#!/bin/bash
: ${MAKESELF:=/usr/share/loki-setup/makeself}
: ${SETUPIMAGE:=/usr/share/loki-setup/image}
: ${VERSION:=0.0_`date +%Y%m%d%H%M`}
: ${RELEASE:=0}
set -e
set -x
shopt -s nullglob
rm -rf image
mkdir image
### loki-setup files
cp -a $SETUPIMAGE/{setup.data,setup.sh} image/
### splash
rm -f image/setup.dat... | Shell |
#!/bin/sh
rmdir --ignore-fail-on-non-empty demoq3 missionpack >& /dev/null
if test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then
xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null`
if test "x$xdg_desktop_menu" = x; then
xdg_desktop_menu=./xdg-desktop-menu
fi
$xdg_desktop_menu uninstall --novendor ioqu... | Shell |
#!/bin/sh
readlink() {
local path=$1 ll
if [ -L "$path" ]; then
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
echo "${ll##* -> }"
else
return 1
fi
}
script=$0
count=0
while [ -L "$script" ]
do
script=$(readlink "$script")
count=`expr $count + 1`
if [ $c... | Shell |
#!/bin/sh
CWD=`pwd`
BASE=$CWD/../..
if [ "$TMP" = "" ]; then
TMP=/tmp
fi
# clean, update
make -C $BASE clean || exit 1
svn up $BASE || exit 1
# extract version info
VERSION=`grep "\#define *PRODUCT_VERSION" $BASE/code/qcommon/q_shared.h | \
sed -e 's/[^"]*"\(.*\)"/\1/'`
SVN_REV=`LANG=C svnversion $BASE`
if [ ! ... | Shell |
#!/bin/sh
set -e
if ! test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then
exit 0
fi
xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null`
if test "x$xdg_desktop_menu" = x; then
xdg_desktop_menu=./xdg-desktop-menu
fi
sed -e "s#^Exec=.*#Exec=$SETUP_INSTALLPATH/ioquake3#" \
-e "s#^Icon=.*#Icon=$SETUP_INSTALLPAT... | Shell |
#!/bin/bash
# Source directory
MOUNT_DIR="../.."
# Solaris stuff
PLATFORM=`uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'`
if [ "X${PLATFORM}" != "Xsunos" ]; then
echo "Unsupported platform! Must run this script on Solaris host!" ; exit 127
fi
if [ "X`uname -m`" = "Xi86pc" ]; then
ARCH=i386
else
ARCH=sparc
fi
... | Shell |
#!/bin/sh
readlink() {
local path=$1 ll
if [ -L "$path" ]; then
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
echo "${ll/* -> }"
else
return 1
fi
}
script=$0
count=0
while [ -L "$script" ]
do
script=$(readlink "$script")
count=`expr $count + 1`
if [ $co... | Shell |
#!/bin/sh
readlink() {
local path=$1 ll
if [ -L "$path" ]; then
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
echo "${ll/* -> }"
else
return 1
fi
}
script=$0
count=0
while [ -L "$script" ]
do
script=$(readlink "$script")
count=`expr $count + 1`
if [ $co... | Shell |
#!/bin/bash
#
# This script appends the text from Q3A_EULA.txt to a .dmg as a SLA resource
#
# usage is './SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg'
#
if [ "x$1" = "x" ] || [ "x$2" = "x" ]; then
echo "usage: ./SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg"
exit 1;
fi
if [ ! -r $1 ]; then
ech... | Shell |
#!/bin/bash
#
# This script appends the text from Q3A_EULA.txt to a .dmg as a SLA resource
#
# usage is './SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg'
#
if [ "x$1" = "x" ] || [ "x$2" = "x" ]; then
echo "usage: ./SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg"
exit 1;
fi
if [ ! -r $1 ]; then
ech... | Shell |
#!/bin/sh
CWD=`pwd`
BASE=$CWD/../..
if [ "$TMP" = "" ]; then
TMP=/tmp
fi
# clean, update
make -C $BASE clean || exit 1
svn up $BASE || exit 1
# extract version info
VERSION=`grep "\#define *PRODUCT_VERSION" $BASE/code/qcommon/q_shared.h | \
sed -e 's/[^"]*"\(.*\)"/\1/'`
SVN_REV=`LANG=C svnversion $BASE`
if [ ! ... | Shell |
#!/bin/bash
# Source directory
MOUNT_DIR="../.."
# Solaris stuff
PLATFORM=`uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'`
if [ "X${PLATFORM}" != "Xsunos" ]; then
echo "Unsupported platform! Must run this script on Solaris host!" ; exit 127
fi
if [ "X`uname -m`" = "Xi86pc" ]; then
ARCH=i386
else
ARCH=sparc
fi
... | Shell |
#!/bin/sh
#
# @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0
| Shell |
#!/bin/sh
#
# @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0
| Shell |
#!/bin/sh
#
# @(#)postinstall $Id: postinstall,v 1.3 2006/01/21 12:54:52 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR/quake3
dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin
if [ -d ${dest_dir} ]; then
for inst_script in ioq3ded.sh ioquake3.sh
do
dest_script=${dest_dir}/${inst_script}
if [ ! -h ... | Shell |
#!/bin/sh
#
# @(#)postremove $Id: postremove,v 1.3 2006/01/21 12:54:52 coyote Exp $
#
# postremove script for quake3
quake3_dir=$BASEDIR
dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin
if [ -d ${dest_dir} ]; then
for inst_script in ioq3ded.sh ioquake3.sh
do
dest_script=${dest_dir}/${inst_script}
if [ -h ${dest_scrip... | Shell |
#!/bin/sh
#
# @(#)postinstall $Id: postinstall,v 1.3 2006/01/21 12:54:52 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR/quake3
dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin
if [ -d ${dest_dir} ]; then
for inst_script in ioq3ded.sh ioquake3.sh
do
dest_script=${dest_dir}/${inst_script}
if [ ! -h ... | Shell |
#!/bin/sh
#
# @(#)postremove $Id: postremove,v 1.3 2006/01/21 12:54:52 coyote Exp $
#
# postremove script for quake3
quake3_dir=$BASEDIR
dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin
if [ -d ${dest_dir} ]; then
for inst_script in ioq3ded.sh ioquake3.sh
do
dest_script=${dest_dir}/${inst_script}
if [ -h ${dest_scrip... | Shell |
#!/bin/sh
#
# @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0
| Shell |
#!/bin/sh
#
# @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0
| Shell |
#!/bin/bash
# Rev: $Id: ioquake3.sh,v 1.11 2006/01/18 13:47:42 raistlin Exp raistlin $
# Needed to make symlinks/shortcuts work.
# the binaries must run with correct working directory
IOQ3_DIR=/usr/local/share/games/quake3
if [ "x${LD_LIBRARY_PATH}" = "x" ]; then
LD_LIBRARY_PATH="${IOQ3_DIR}/lib"
else
LD_LIBRARY_PA... | Shell |
#!/bin/sh
#
# @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.