code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash the_dir=$1; if [ -z $1 ]; then echo echo "Usage $0 <playsms_directory>" echo exit 0; fi # CHMOD 644 CONFIG FILES for list in `find $the_dir`; do if [ -f $list ]; then echo "chmod 644 $list"; chmod 644 $list; fi done # CHMOD 755 DIRECTORIES for list in `find $the_dir`; do if [ -d $list ];...
Shell
#!/bin/sh /etc/playsms/cron/cron.sh weekly
Shell
#!/bin/sh /etc/playsms/cron/cron.sh hourly
Shell
#!/bin/sh when=$1 curl "http://localhost/playsms/inc/feat/sms_autosend.php?op=autosend&frequency=$when"
Shell
#!/bin/sh /etc/playsms/cron/cron.sh daily
Shell
#!/bin/sh /etc/playsms/cron/cron.sh monthly
Shell
#!/bin/sh /etc/playsms/cron/cron.sh hourly
Shell
#!/bin/sh when=$1 curl "http://localhost/playsms/inc/feat/sms_autosend.php?op=autosend&frequency=$when"
Shell
#!/bin/sh /etc/playsms/cron/cron.sh daily
Shell
#!/bin/sh /etc/playsms/cron/cron.sh weekly
Shell
#!/bin/sh /etc/playsms/cron/cron.sh monthly
Shell
#!/bin/sh # create kannel dir for pids # mkdir -p /var/run/kannel chown kannel /var/run/kannel # set default boxen to run # START_WAPBOX=1 START_SMSBOX=1
Shell
#!/bin/sh # create kannel dir for pids # mkdir -p /var/run/kannel chown kannel /var/run/kannel # set default boxen to run # START_WAPBOX=1 START_SMSBOX=1
Shell
#!/bin/sh set -e dbcnf_mysqluser='playsms/mysql-username' dbcnf_mysqlpass='playsms/mysql-password' # start up debconf and tell it the protocol version . /usr/share/debconf/confmodule db_version 2.0 # tell debconf what template questions to ask db_input high $dbcnf_mysqluser || true db_input high $dbcnf_mysqlpass ||...
Shell
#!/bin/sh # postrm script for svnyoungest # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install'...
Shell
#!/bin/sh set -e dbcnf_mysqluser='playsms/mysql-username' dbcnf_mysqlpass='playsms/mysql-password' # start up debconf and tell it the protocol version . /usr/share/debconf/confmodule db_version 2.0 # tell debconf what template questions to ask db_input high $dbcnf_mysqluser || true db_input high $dbcnf_mysqlpass ||...
Shell
#!/bin/sh # postrm script for svnyoungest # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install'...
Shell
#!/bin/sh set -e installpath=/usr/share/playsms binpath=$installpath/bin dbcnf_mysqluser='playsms/mysql-username' dbcnf_mysqlpass='playsms/mysql-password' if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then # start up debconf and tell it the protocol version # . /usr/share/debconf/confmodule db_ve...
Shell
#!/bin/sh # postinst script for svnyoungest # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> ...
Shell
#!/bin/sh set -e installpath=/usr/share/playsms binpath=$installpath/bin dbcnf_mysqluser='playsms/mysql-username' dbcnf_mysqlpass='playsms/mysql-password' if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then # start up debconf and tell it the protocol version # . /usr/share/debconf/confmodule db_ve...
Shell
#!/bin/sh # postinst script for svnyoungest # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> ...
Shell
#!/bin/bash ######################################################################### # # # This shell script is an example to get playsms send you back any # # informations from the server. # # ...
Shell
#!/bin/bash ######################################################################### # # # This shell script is an example to get playsms send you back any # # informations from the server. # # ...
Shell
#!/bin/bash ######################################################################### # # # This shell script is an example to get playsms send you back any # # informations from the server. # # ...
Shell
#!/bin/bash the_dir=$1; if [ -z $1 ]; then echo echo "Usage $0 <playsms_directory>" echo exit 0; fi # CHMOD 644 CONFIG FILES for list in `find $the_dir`; do if [ -f $list ]; then echo "chmod 644 $list"; chmod 644 $list; fi done # CHMOD 755 DIRECTORIES for list in `find $the_dir`; do if [ -d $list ];...
Shell
#!/bin/bash the_dir=$1; if [ -z $1 ]; then echo echo "Usage $0 <playsms_directory>" echo exit 0; fi # CHMOD 644 CONFIG FILES for list in `find $the_dir`; do if [ -f $list ]; then echo "chmod 644 $list"; chmod 644 $list; fi done # CHMOD 755 DIRECTORIES for list in `find $the_dir`; do if [ -d $list ];...
Shell
#!/bin/sh # create kannel dir for pids # mkdir -p /var/run/kannel chown kannel /var/run/kannel # set default boxen to run # START_WAPBOX=1 START_SMSBOX=1
Shell
#!/bin/sh # create kannel dir for pids # mkdir -p /var/run/kannel chown kannel /var/run/kannel # set default boxen to run # START_WAPBOX=1 START_SMSBOX=1
Shell
#!/bin/sh set -e #set -x package=playsms # start up debconf . /usr/share/debconf/confmodule # start up dbconfig-common # (uses debconf to config the database) # if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then . /usr/share/dbconfig-common/dpkg/config.mysql # first version that started using dbcon...
Shell
#!/bin/sh # postrm script for svnyoungest # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install'...
Shell
#!/bin/sh set -e #set -x package=playsms # start up debconf . /usr/share/debconf/confmodule # start up dbconfig-common # (uses debconf to config the database) # if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then . /usr/share/dbconfig-common/dpkg/config.mysql # first version that started using dbcon...
Shell
#!/bin/sh # postrm script for svnyoungest # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install'...
Shell
#!/bin/sh set -e package=playsms . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/prerm.mysql dbc_go $package $@
Shell
#!/bin/sh # postinst script for svnyoungest # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> ...
Shell
#!/bin/sh set -e package=playsms . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/prerm.mysql dbc_go $package $@
Shell
#!/bin/sh # postinst script for svnyoungest # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> ...
Shell
#!/bin/sh # TODO: FIXME: Get rid of this and hook it into Dojo's general build script # You must have mtasc to run this mtasc -trace DojoExternalInterface.trace -main -cp ../flash -swf Storage.swf -version 8 -header 215:138:10 Storage.as
Shell
#!/bin/sh # TODO: FIXME: Get rid of this and hook it into Dojo's general build script # You must have mtasc to run this mtasc -trace DojoExternalInterface.trace -main -cp ../flash -swf Storage.swf -version 8 -header 215:138:10 Storage.as
Shell
#!/system/bin/sh DIR=/data/data/org.sshtunnel PATH=$DIR:$PATH case $1 in start) echo " base { log_debug = off; log_info = off; log = stderr; daemon = on; redirector = iptables; } " >$DIR/redsocks.conf echo " redsocks { local_ip = 127.0.0.1; local_port = 8123; ip = 127.0.0.1; port = $2; type = http-re...
Shell
#!/system/bin/sh DIR=/data/data/org.sshtunnel PATH=$DIR:$PATH case $1 in start) echo " base { log_debug = off; log_info = off; log = stderr; daemon = on; redirector = iptables; } " >$DIR/redsocks.conf echo " redsocks { local_ip = 127.0.0.1; local_port = 8123; ip = 127.0.0.1; port = $2; type = socks5;...
Shell
#!/bin/sh # # Detects OS we're compiling on and outputs a file specified by the first # argument, which in turn gets read while processing Makefile. # # The output will set the following variables: # CC C Compiler path # CXX C++ Compiler path # PLATFORM_LDFLAGS ...
Shell
javaw -Xmx512m -jar dist/yaprnn_final.jar &
Shell
java -Xmx512m -jar dist/yaprnn.jar
Shell
#!/bin/sh test "$USER" != pearu && echo "Only pearu can upload F2PY apidocs" && exit 1 test html || (echo "Run me from f2py directory as tools/upload_apidocs.sh" && exit 1) || exit 1 cd html && scp -vr ./* pearu,f2py@web.sourceforge.net:/home/groups/f/f2/f2py/htdocs/docs/ cd -
Shell
#!/bin/sh test -d doc || (echo "Run me from f2py directory as tools/mk_apidocs.sh" && exit 1) || exit 1 HTML_TARGET=html rm -rf doc/_build/ doc/source/generated $HTML_TARGET/* echo `date -u` ": documentation is being updated... try again in few minutes." > $HTML_TARGET/index.html PYTHONPATH=`pwd`:$PYTHONPATH cd doc &...
Shell
#!/bin/bash make && g++ -g Main.cpp ./libksisort.so -o test
Shell
#!/bin/bash make && g++ -g Main.cpp ./libksisort.so -o test
Shell
#!/bin/bash g++ -g 1.cpp && ./a.out #g++ -g 2.cpp && ./a.out
Shell
#!/bin/bash rm a.out
Shell
#!/bin/bash g++ -g 1.cpp && ./a.out #g++ -g 2.cpp && ./a.out
Shell
#!/bin/bash rm a.out
Shell
#!/bin/bash make && g++ -g Main.cpp ./libksitree.so -o test
Shell
#!/bin/bash make && g++ -g Main.cpp ./libksitree.so -o test
Shell
echo -n "aaabbbcccbbbcccaaa"|sed -r 's/(.)\1*/&\n/g;:a;s/(^|\n)(.*)(\n(.*\n)*)\2\n/\1\2\3/;ta' seq 9|sed 'N;:a;N;s/\n/ /gp;s/\w //;ta' sed 'N;N;s/\n/ /g' 1.txt sed ':a;N;/ms$/{s/\n/ /;ta};P;D' 2.txt sed '/^AA/s/$/ YES/;t;s/$/ NO/' 3.txt sed '/^AA/ba;s/$/ NO/;b;:a;s/$/ YES/' 3.txt sed -n '/a/{:a;N;/c/{/^\n/s/\n//;...
Shell
echo '1a2a3a4a5' | awk 'BEGIN{RS="a"}{print $1}' echo '1ab2bc3cd4de5' | awk 'BEGIN{RS="[a-z]+"}{print $1,RS,RT}' awk 'BEGIN{RS=""}{print $0}' 1.txt seq 5|awk 'BEGIN{ORS="|"}{print $0}' echo '1ab2bc3cd4de5' | awk 'BEGIN{FS="[a-z]+"}{print $1,$2,$5}' echo ' 1 2' | awk 'BEGIN{FS=" "}{print $1}' echo ' 1 2' | awk 'BE...
Shell
#!/bin/sh # Create a backup tar gzip file of the cwd with the date appended # located in the parent directory. FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz echo Will create $FILENAME tar cfz $FILENAME . echo Done.
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh # # Copyright 2013 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/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_BitmapCache VERBOSE
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ...
Shell
#!/bin/sh # To use this script install the Google App Engine SDK for Java in the directory # /usr/local/appengine-java-sdk /usr/local/appengine-java-sdk/bin/dev_appserver.sh --address=0.0.0.0 web-app
Shell
#!/bin/sh /usr/local/appengine-java-sdk/bin/appcfg.sh update web-app
Shell
javac SQLDatabase.java -sourcepath . javac Server.java -sourcepath . javac viewListener.java -sourcepath . javac viewUser.java -sourcepath . javac RtspResponse.java -sourcepath . javac PhoneListener.java -sourcepath . javac PhoneUserS.java -sourcepath . javac PhoneForward.java -sourcepath .
Shell
#!/bin/bash # # This script checks the java version and bails if it's less # than Java6 (because we use @Override annotations on interface # overriding methods. It then proceeds to do a maven build that # first cleans, then builds the normal lifecycle through compilation # unit testing (if available) up to packaging. ...
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null $PYTHON $TOOLS_DIR/update_messages.py "$@"
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null find $PROJECT_DIR -name '*.pyc' -exec rm '{}' ';' find $PROJECT_DIR -name '*.orig' -exec rm '{}' ';'
Shell
#!/bin/sh # use pylint to check the args. # requires installing pylint http://www.logilab.org/project/pylint # short form: easy_install pylint (may require root) LINT=$(which pylint) REPORTS="no" DEPRECATED=regsub,string,TERMIOS,Bastion,rexec if [ -z "$LINT" ]; then echo "pylint not found, please install." exit ...
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null $PYTHON $TOOLS_DIR/validate_merge.py "$@"
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null $PYTHON $TOOLS_DIR/merge_messages.py "$@"
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null $PYTHON $TOOLS_DIR/find_missing_translations.py "$@"
Shell
#!/bin/bash DEFAULT_DAYS=90 function usage() { echo "Usage: $0 [-r <rev>] [-d <days>] [-l] [-h]" echo echo " Interactively go through all the heads that have no children in" echo " history DAG and that are at least $DEFAULT_DAYS days old, and " echo " no-op merge them to the default branch." echo ech...
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 to...
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null export REMOTE_API_RC="from model import *"$'\n'"from setup_pf import *" $PYTHON $TOOLS_DIR/remote_api.py "$@"
Shell
#!/bin/bash # Copyright 2011 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 to in w...
Shell
#!/bin/bash pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null if [ "$1" == "run" ]; then shift # Look through the arguments for an application directory. for arg in "$@"; do case "$arg" in (--datastore_path*) datastore_path="$arg";; (-*) true;; ...
Shell
#!/bin/bash # Scripts in the tools/ directory should source this file with the line: # pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null export TOOLS_DIR=$(pwd) export PROJECT_DIR=$(dirname $TOOLS_DIR) export APP_DIR=$PROJECT_DIR/app export TESTS_DIR=$PROJECT_DIR/tests for dir in \ "$APPENG...
Shell
#!/bin/bash # Starts up an appserver and runs end-to-end tests against it. # # Use -k to select particular test classes or methods by a substring match: # tools/server_tests -k ConfigTests # tools/server_tests -k test_delete_and_restore # # Specify -v to show the name of each test as it runs (rather than just...
Shell
#!/bin/bash # Creates a code review on codereview.appspot.com for the current branch. # The posted patch is a diff from the default head to this branch's head. # # This script supports the following workflow: # 1. Create a named branch and make your changes there. # 2. Merge changes (if any) from the default...
Shell
#!/bin/bash # To run all tests: # # tools/unit_tests # # To run just the tests in tests/test_model.py and tests/test_indexing.py: # # tools/unit_tests test_model test_indexing pushd "$(dirname $0)" >/dev/null && source common.sh && popd >/dev/null echo echo "--- Running unit tests" TZ=UTC $PYTHON $TESTS_DIR/...
Shell
# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 or later # Try to remove any dm-crypt mappings if [ -x /usr/bin/truecrypt ]; then ebegin "Removing truecrypt mappings" ! /usr/bin/truecrypt -l > /dev/null 2>&1 || /usr/bin/truecrypt -d eend $? fi
Shell
#!/bin/sh PYTHON_DIRECTORY=$(/usr/bin/python2 -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LIBP"))') cd "${PYTHON_DIRECTORY}/site-packages/openerp-client" exec /usr/bin/python2 ./openerp-client.py $@
Shell
#!/bin/sh PYTHON_DIRECTORY=$(/usr/bin/python2 -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LIBP"))') cd "${PYTHON_DIRECTORY}/site-packages/openerp-client" exec /usr/bin/python2 ./openerp-client.py $@
Shell
#!/bin/sh #get the bundle's MacOS directory full path DIR=$(cd "$(dirname "$0")"; pwd) #change these values to match your app EXE_PATH="$DIR/ArdupilotMegaPlanner.exe" PROCESS_NAME=ArdupilotMegaPlanner APPNAME="ArdupilotMegaPlanner" #set up environment MONO_FRAMEWORK_PATH=/Library/Frameworks/Mono.framework/Versions/...
Shell
#!/bin/bash echo "## Step 00: initialize" ( if ! [ -d build ]; then mkdir build mkdir build/src mkdir build/src/trunk fi ) fetch() { ( cd src if ! [ -f "${2}/.svn/entries" ]; then mkdir "${2}" cd "${2}" svn co --non-interactive --trust-server-cert "${1}" "." else cd "${2}" sv...
Shell
#!/bin/bash find org/jivesoftware -name '*.java' -exec sed -i 's:import org.xmlpull.mxp1.MXParser:import org.xmlpull.v1.XmlPullParserFactory:' '{}' ';' find org/jivesoftware -name '*.java' -exec sed -i 's:new MXParser():XmlPullParserFactory.newInstance().newPullParser():g' '{}' ';'
Shell
#!/bin/bash rm org/xbill/DNS/spi/DNSJavaNameServiceDescriptor.java
Shell
#!/bin/bash rm -rf org/ietf/ rm -rf org/apache/harmony/auth rm -rf org/apache/harmony/javax/security/auth/kerberos/ rm -rf org/apache/harmony/javax/security/auth/x500/ rm org/apache/harmony/javax/security/auth/Policy.java
Shell
#!/bin/bash find -name '*.java' -exec sed -i 's:import org.apache.harmony.javax.security.sasl.Sasl;:import de.measite.smack.Sasl;:g' '{}' ';'
Shell
#!/bin/bash find org/apache/harmony -name '*.java' -exec sed -i 's:import org.apache.harmony.auth.internal.nls.Messages;::' '{}' ';' find org/apache/harmony -name '*.java' -exec sed -i 's:Messages.getString(\("[^"]*"\)):\1:g' '{}' ';'
Shell
#!/bin/bash rm org/jivesoftware/smack/debugger/LiteDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebugger.java rm org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java
Shell
#!/bin/bash mkdir -p org/apache/harmony/ mv javax org/apache/harmony/ find org/apache/harmony/ -name '*.java' -exec sed -i 's:package javax:package org.apache.harmony.javax:g' '{}' ';' find -name '*.java' -exec sed -i 's:import javax.security.sasl:import org.apache.harmony.javax.security.sasl:g' '{}' ';' find -name '*...
Shell
#!/bin/bash # all.sh echo shell_all echo run pydicom test suite on all supported python versions echo ------- python 2.6 ------------ python2.6 run_tests.py echo ------- python 2.7 ------------ python2.7 run_tests.py # Check location for each version -- to make sure are not running old pydicom versions echo - echo ---...
Shell
# This would be useful for people who use the svn repository, and want # to keep it up to date. The idea is to use it where it is, rather # than 'installing' it as would be usual for python modules. # I also include this one-line script for anybody who might want to # muck with p4 in the privacy of their own home dir...
Shell
#!/bin/bash Res=res/ Alt=donottranslate-altchars.xml Map=donottranslate-keymap.xml Out=assets/kbd/ mkdir -p "$Out" for Dir in res/values res/values-* do [ -f $Dir/$Map ] || continue # -o -f $Dir/$Alt ] || continue Args="$Res/values/$Alt" [ -f $Dir/$Alt ] && Args="$Args $Dir/$Alt" Args="$Args $Res/values/$Map...
Shell
#!/bin/bash getLangsForFiles () { echo "en" # default language for F in "$@" do find res/ -name "$F" done \ | sed -n ' s/.*res.[a-z]*-\(..\)-r\(..\).*/\1_\2/p; # yy-rXX => yy_XX s/.*res.[a-z]*-\(..\)\/.*/\1/p; # yy => yy ' } getLangsForDicts () { ls ../Dicts \ | sed 's/.*-//;...
Shell
#!/bin/sh echo This script takes a minute to run. Be patient. 1>&2 LC_CTYPE=C export LC_CTYPE # pad stdin to multiple of 120 lines pad() { awk '{print} END{for(; NR%120!=0; NR++) print ""}' } # create formatted (numbered) files mkdir -p fmt rm -f fmt/* cp README fmt files=`grep -v '^#' runoff.list | awk '{print $...
Shell