code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5; it is not part of GNU. # # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $ # # This script is compatible with the BSD install script, but was written # from scratch. # # set DOITPROG to echo to test this script # Don'...
Shell
#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5; it is not part of GNU. # # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $ # # This script is compatible with the BSD install script, but was written # from scratch. # # set DOITPROG to echo to test this script # Don'...
Shell
#! /bin/bash perl ../../buildscripts/jslink.pl -pre cat -i program.js -l lib.js -o out.js java -jar ../../buildscripts/lib/custom_rhino.jar -e "load('out.js'); load('program.js');"
Shell
#! /bin/bash perl ../../buildscripts/jslink.pl -pre cat -i program.js -l lib.js -o out.js java -jar ../../buildscripts/lib/custom_rhino.jar -e "load('out.js'); load('program.js');"
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 aclocal -I m4 autoheader libtoolize -f -c --automake automake --foreign -c -a autoconf
Shell
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # This script runs the build unit tests with a coverage run and spits out # the result HTML to scratch/coverage/ # TODO(benvanik): merge with run-tests.py? # This must currently run from the root of the repo # TODO(benvanik): make this runnable from anyw...
Shell
#!/bin/sh # # San Angeles Observation OpenGL ES version example # # This shell script builds the demo application # with executable name "SanOGLES". # # Before running it, make sure that either libGLES_CM.so # or libGLES_CL.so is available in the library path. # Alternatively you can copy one of them to the same # dire...
Shell
#!/bin/ksh # launcher script for jsdoc # Author: Avi Deitcher # # This program is released under the MIT License as follows: # Copyright (c) 2008-2009 Atomic Inc <avi@jsorm.com> # #Permission is hereby granted, free of charge, to any person #obtaining a copy of this software and associated documentation #files (the "...
Shell
#!/bin/bash # Name: lrcdis (外挂式显歌词脚本) # License: GPLv3 # Credit: xiooli,solcomo,bones7456,oldherl (2008-2009) # Encoding: UTF-8 # Thanks to: 搜狗歌词搜索 Version=090908 #是否开启调试信息 Debug=0 Conf_file=~/.config/lrcdis.conf Cookie_file=/dev/shm/lrcdis-cookie-file-$USER-"`date +"%s.%N"`-$RANDOM" NoFileLrc=yes #=========...
Shell
#!/bin/bash # Name: lrcdis (外挂式显歌词脚本) # License: GPLv3 # Credit: xiooli,solcomo,bones7456,oldherl (2008-2009) # Encoding: UTF-8 # Thanks to: 搜狗歌词搜索 Version=090908 #是否开启调试信息 Debug=0 Conf_file=~/.config/lrcdis.conf Cookie_file=/dev/shm/lrcdis-cookie-file-$USER-"`date +"%s.%N"`-$RANDOM" NoFileLrc=yes #=========...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 ...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 ...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. # Copyright 1999, 2000 Free Software Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the F...
Shell
# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.6b # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # ...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Ge...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free softw...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is ...
Shell
#! /bin/sh # libtool - Provide generalized library-building support services. # Generated automatically by config.status (polo) 0.1 # Libtool was configured on host timberline.bld.corp.google.com: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001,...
Shell
#!/bin/sh # Before using, you should figure out all the .m4 macros that your # configure.m4 script needs and make sure they exist in the m4/ # directory. # # These are the files that this script might edit: # aclocal.m4 configure Makefile.in src/config.h.in \ # depcomp config.guess config.sub install-sh missing ...
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/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help...
Shell
# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This program i...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either ve...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU ...
Shell
#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help...
Shell
#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2004-01-05' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that S...
Shell
#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2004-01-05' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public L...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either ve...
Shell
#!/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 ...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU ...
Shell
#!/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 ...
Shell
#!/bin/bash # # Starts a basic web server on the port specified. # # ./serve.sh 3000 -> http://localhost:3000 # # Copyright 2012 Eric Bidelman <ebidel@gmail.com> port=$1 if [ $# -ne 1 ] then port=8000 fi open http://localhost:$port/template.html && python -m SimpleHTTPServer $port;
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/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/sh LATEX=pdflatex CLASS=apa6e # As per email from Robin Fairbairns on 2011-03-01, they don't want # the .cls file (as a generated file) uploaded to the CTAN archive: CTAN_DISTFILES="${CLASS}.dtx ${CLASS}.ins ${CLASS}.pdf README" DISTFILES="${CTAN_DISTFILES} ${CLASS}.cls" VERSION=$(grep '^ *\[..../../..' ${CLAS...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 ...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 ...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
#!/usr/bin/env bash # Copyright 2014 The Oppia Authors. All Rights Reserved. # # 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 re...
Shell
#!/bin/bash VERSION=0.1 OUTNAME=aom-$VERSION OUTFILE=./archive/$OUTNAME.tar.bz2 # assuming we're in prj/tools/scripts cd ../.. # we need the archive directory if [ ! -d "./archive" ]; then mkdir "./archive" fi # remove old version of this file if [ -f "$OUTFILE" ]; then rm "$OUTFILE" fi # do archive now git ar...
Shell
#!/bin/bash # enter trunk if [ "$1" != "" ] #if parameter exists, use as base folder then cd "$1" else cd "../.." fi echo Ignoring files in `pwd` echo *.o > ../ignorelst.tmp echo *.lo >> ../ignorelst.tmp echo *.la >> ../ignorelst.tmp echo *.rej >> ../ignorelst.tmp echo *.pyc >> ../ignorelst.tmp echo *...
Shell
#!/bin/sh qlist -I -c|grep 999|awk '{print "="$1"-"$2}'|xargs emerge -1 --keep-going
Shell
#!/bin/sh tunerip=192.168.2.120 data=`date +"%Y-%m-%d_%H:%M"` dest="/media/nfs/data/tuner_settings/$data" mkdir -p $dest ssh-copy-id root@$tunerip scp -r root@$tunerip:/etc/tuxbox "$dest/" scp -r root@$tunerip:/etc/enigma2 "$dest/" scp -r root@$tunerip:/usr/keys "$dest/" scp -r root@$tunerip:/usr/share/enigma2/picon "...
Shell
#!/bin/sh kernel=`eselect kernel show|grep gentoo|awk -F/ '{print $NF}'` kernel=${kernel#linux-} arch=`arch` if [ "$arch" == "i686" ] ; then arch="x86" fi echo "Kernel version: $kernel" echo "Generating initramfs with dracut" dracut -q --force "/boot/initramfs-genkernel-$arch-$kernel" $kernel update-grub #Add t...
Shell
#!/bin/sh OPTIONS="--initramfs-overlay=/usr/share/v86d --menuconfig" latest=`eselect kernel list|tail -n 1|awk '{print $2}'` lastnum=`eselect kernel list|tail -n 1|awk '{print $1}'|cut -d'[' -s -f2|cut -d']' -s -f1` eselect kernel set $lastnum kernel=`eselect kernel show|grep gentoo|awk -F/ '{print $NF}'` kernel=${k...
Shell
#!/bin/bash emerge --sync layman -S FILE=/usr/portage/profiles/base/package.use.mask if cat $FILE|grep -E '^sys\-auth\/polkit systemd' ; then perl -pi -e 's{^sys\-auth\/polkit\s+systemd}{#sys-auth/polkit systemd}' $FILE fi FILE=/usr/portage/profiles/package.mask grep -v 'xf86-input-evdev' $FILE > $FILE.tmp mv ...
Shell
#!/bin/sh grub-mkconfig -o /boot/grub/grub.cfg
Shell
#!/bin/sh qlist -I -C x11-drivers|xargs emerge -1
Shell
#!/bin/sh qlist -I -c|grep 999|awk '{print "="$1"-"$2}'|xargs emerge -1 --keep-going
Shell
#!/bin/sh tunerip=192.168.2.120 data=`date +"%Y-%m-%d_%H:%M"` dest="/media/nfs/data/tuner_settings/$data" mkdir -p $dest ssh-copy-id root@$tunerip scp -r root@$tunerip:/etc/tuxbox "$dest/" scp -r root@$tunerip:/etc/enigma2 "$dest/" scp -r root@$tunerip:/usr/keys "$dest/" scp -r root@$tunerip:/usr/share/enigma2/picon "...
Shell
#!/bin/sh kernel=`eselect kernel show|grep gentoo|awk -F/ '{print $NF}'` kernel=${kernel#linux-} arch=`arch` if [ "$arch" == "i686" ] ; then arch="x86" fi echo "Kernel version: $kernel" echo "Generating initramfs with dracut" dracut -q --force "/boot/initramfs-genkernel-$arch-$kernel" $kernel update-grub #Add t...
Shell
#!/bin/sh qlist -I -C x11-drivers|xargs emerge -1
Shell
#!/bin/sh grub-mkconfig -o /boot/grub/grub.cfg
Shell
#!/bin/sh OPTIONS="--initramfs-overlay=/usr/share/v86d --menuconfig" latest=`eselect kernel list|tail -n 1|awk '{print $2}'` lastnum=`eselect kernel list|tail -n 1|awk '{print $1}'|cut -d'[' -s -f2|cut -d']' -s -f1` eselect kernel set $lastnum kernel=`eselect kernel show|grep gentoo|awk -F/ '{print $NF}'` kernel=${k...
Shell
#!/bin/bash emerge --sync layman -S FILE=/usr/portage/profiles/base/package.use.mask if cat $FILE|grep -E '^sys\-auth\/polkit systemd' ; then perl -pi -e 's{^sys\-auth\/polkit\s+systemd}{#sys-auth/polkit systemd}' $FILE fi FILE=/usr/portage/profiles/package.mask grep -v 'xf86-input-evdev' $FILE > $FILE.tmp mv ...
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/sh ## this is an script to show the detail of webservice method in c# code file cat ws_PhotoManage.asmx.cs | sed -n '/WebMethod/,/public[^)]\+)/p' | sed 's/\(\s\+\)\[WebMethod([^=]\+)=\s\+\"\([^"]\+\)\"\]/\2/' | sed 's/\(\s\+\)[^ ]\+\s\+[^ ]\+\([^(]\+\).\+/\1\2/' | sed 's/\s\+"\([^"]\+\)".\+/\1/' | sed '/^[^ ]/{...
Shell
#!/bin/sh # File: fetch-regex # Date: 2009-11-28 # Author: jyf # Comment: get the regex code from viminfo and post it to svn host src0=/home/$USER/.viminfo src1=/home/$USER/.viminfz.tmp dst=/home/$USER/svn/jyf-code/funny/regex today=$(date +'%Y-%m-%d') dstf=$dst/$today echo 'Daily work -> vim regex: Begin' if [ ! -...
Shell
#!/bin/sh ## this script was made for pass the depends for compiling i3wm on ubuntu natty for pkg in `apt-cache search libxcb | cut -d' ' -f1 | grep 'dev' | grep libxcb`; \ do \ sudo apt-get -q -y install $pkg; \ done sudo apt-get -q -y install bison flex libstartup-notification0-dev sudo apt-get -q -y install...
Shell
#!/bin/bash [ "$#" -lt "1" ] && $(echo "sorry plz dont suply an empty words"; exit 0;) echo "downloading..." wget "http://dict.cn/$1" -O /tmp/$1 -o /dev/null iconv -f gbk -t utf8 < /tmp/$1 | sed -n -e '/<div\s\+id="exp_exp"\s\+[^>]\+>/,/<\/div>/p' | sed 's/<div\s\+id="exp_exp"\s\+[^>]\+>//' | sed 's/^\s\+\(.*\)<\/div>...
Shell
#!/bin/sh cat res.txt | sed '/\(搬家\|通州\|劲松\|双井\|天通苑\|惠新\|双桥\|上地\|霍营\|回龙观\|团结湖\|三元桥\|金台夕照\|北京南站\|北京西站\|望京\|东直门\|酒仙桥\|三里屯\|建国门\|潘家园\|鼓楼\|大望\|四惠\|传媒\|二外\|国贸\|五道口\|芍药居\|和平里\|清河\|军博\|公主坟\|太阳宫\|北新桥\|高碑店\|出二手\|\(13\|十三\|5\|五\)号线\|蒲黄\|管庄\|亦庄\|东.环\|呼家楼\|菜市口\|西三旗\|柳芳\|立水桥\|大悦城\|石佛营\|十里堡\|朝阳\|石景山\|丰台\|删帖\|已订\|床位\|拼房\|如家\|女子公寓\|宿...
Shell
#!/bin/sh URL= 'http://files.meetup.com/469587/NEW_-_Great_Science_Textbooks_DVD_Library_2007_-_Update_Apr_2008.torrent' URL= 'http://www.lildragon.eu/epo/ost/The_Legend_of_Zelda_Twilight_Princess_OST.torrent' php torrent_parser.php $URL
Shell
#!/bin/sh find ./ -type f -name "*.pyc" | xargs rm
Shell
#! /usr/bin/env sh # File: ctlapp.sh # Date: 2009-11-23 # Author: jyf # 后端控制脚本 case $1 in start) zdaemon -C daemon.conf start ;; stop) zdaemon -C daemon.conf stop ;; restart) zdaemon -C daemon.conf restart ;; log) tail -f logdaemon.log ;;...
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 t...
Shell
#!/bin/bash set -e function mount_img { img_file="source_img/system.img" # error checks if [ ! -d source_img ] ; then echo "Error. No source_img folder found. You are running this script in an incorrect folder or you haven't unpacked your image yet (rkimg.sh)." exit 1 fi if [ ! -f "${img_file}" ] ; then ech...
Shell
#!/bin/bash set -e if [ ! -n "${1}" ] ; then echo "Usage: ${0} <system dir>" exit 0 fi if [ ! -d "$1/app" ] ; then echo "Error. $1/ doesn't contain folder app - this is not the correct system folder." exit 1 fi mkdir -p target_img >/dev/null 2>&1 || true mkdir -p target_img/temp_sys >/dev/null 2>&1 || true echo ...
Shell
#!/bin/bash function unpack_img { echo "****** Cleaning dev folders" rm -rf ${1} unpack_${1} mkdir -p ${1} mkdir -p unpack_${1} echo "****** Unpacking ${1}.img" test_img=`abootimg -i "source_img/${1}.img" 2>&1 | grep "not a valid"` cd unpack_${1} if [ -n "${test_img}" ] ; then echo ">> this is ramdisk only ...
Shell
#!/bin/bash if [ ! -n "${1}" ] ; then echo "Usage: ${0} <apk dir>" exit 0 fi if [ ! -d $1 ]; then echo "Error. Not a valid directory." exit fi mydir=`pwd` outlog=${mydir}/appver.txt cd $1 echo "Apk versions:" >$outlog 2>&1 for file in *.apk ; do echo "$file" >>$outlog 2>&1 ( aapt d --values badging "$file...
Shell
#!/bin/bash set -e if [ ! -n "${1}" ] ; then echo "Usage: ${0} <system dir>" exit 0 fi if [ ! -d "$1/app" ] ; then echo "Error. $1/ doesn't contain folder app - this is not the correct system folder." exit 1 fi mkdir -p target_img >/dev/null 2>&1 || true mkdir -p target_img/temp_sys >/dev/null 2>&1 || true echo ...
Shell
#!/bin/bash set -e function mount_img { img_file="source_img/system.img" # error checks if [ ! -d source_img ] ; then echo "Error. No source_img folder found. You are running this script in an incorrect folder or you haven't unpacked your image yet (rkimg.sh)." exit 1 fi if [ ! -f "${img_file}" ] ; then ech...
Shell
#!/bin/bash set -e function pack_img { # error checks if [ -e "${1}" ] ; then echo "Error. File ${1} already exists!" exit 1 fi if [ ! -d unpack_update ] ; then echo "Error. No unpack_update folder found." exit 1 fi if [ ! -d source_img ] ; then echo "Error. No source_img folder found." exit 1 fi ...
Shell
#!/bin/bash function unpack_img { echo "****** Cleaning dev folders" rm -rf ${1} unpack_${1} mkdir -p ${1} mkdir -p unpack_${1} echo "****** Unpacking ${1}.img" test_img=`abootimg -i "source_img/${1}.img" 2>&1 | grep "not a valid"` cd unpack_${1} if [ -n "${test_img}" ] ; then echo ">> this is ramdisk only ...
Shell
#!/bin/bash function pack_img { if [ -d "${1}" ] && [ -d "unpack_${1}" ] ; then echo "****** Packing ${1}/ to ${1}.img-raw" mkbootfs ${1} | gzip > unpack_${1}/initrd.img-new echo "****** Creating ${1}.img" rm -f target_img/${1}.img if [ -f unpack_${1}/zImage ] ; then echo ">> Kernel is included in ${1}....
Shell
#!/bin/bash if [ ! -n "${1}" ] ; then echo "Usage: ${0} <apk dir>" exit 0 fi if [ ! -d $1 ]; then echo "Error. Not a valid directory." exit fi mydir=`pwd` outlog=${mydir}/appver.txt cd $1 echo "Apk versions:" >$outlog 2>&1 for file in *.apk ; do echo "$file" >>$outlog 2>&1 ( aapt d --values badging "$file...
Shell
#!/bin/bash function pack_img { if [ -d "${1}" ] && [ -d "unpack_${1}" ] ; then echo "****** Packing ${1}/ to ${1}.img-raw" mkbootfs ${1} | gzip > unpack_${1}/initrd.img-new echo "****** Creating ${1}.img" rm -f target_img/${1}.img if [ -f unpack_${1}/zImage ] ; then echo ">> Kernel is included in ${1}....
Shell
#!/bin/bash set -e function pack_img { # error checks if [ -e "${1}" ] ; then echo "Error. File ${1} already exists!" exit 1 fi if [ ! -d unpack_update ] ; then echo "Error. No unpack_update folder found." exit 1 fi if [ ! -d source_img ] ; then echo "Error. No source_img folder found." exit 1 fi ...
Shell
#!/bin/sh -x cd libevent find . -name "*" |xargs chmod +x make distclean ./configure --disable-thread-support --disable-openssl --disable-shared --enable-static && make
Shell
#!/bin/sh -x cd libevent find . -name "*" |xargs chmod +x make distclean ./configure --disable-thread-support --disable-openssl --disable-shared --enable-static && make
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2012-03-27.16; # UTC # Copyright (C) 1999-2012 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # ...
Shell
# libtool (GNU libtool) 2.4.2 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; no...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is ...
Shell
#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-03-05.13; # UTC # Copyright (C) 1999-2012 Free Software Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General ...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2012-03-27.16; # UTC # Copyright (C) 1999-2012 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # ...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2012-01-06.18; # UTC # Copyright (C) 1996-2012 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify # it under the...
Shell
#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. timestamp='2012-04-18' # This file is (in principle) common to ALL GNU software...
Shell