code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/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 before a Subversion txn is created # 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 file is a template) # with the following ordered...
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/bash echo "Running acopt tests..." testnum=0 # TEST 1 testnum=$(($testnum+1)) rm -f msweb-out1.ac #../../../libra-tk-old/bin/acopt -i baudio-e100k.ac -o baudio-test1.ac -tb baudio.xmod -ev baudio1.tev -gibbs -gspeed fast > baudio-test1.log ../../bin/acopt -m msweb-ac.ac -o msweb-out1.ac -ma msweb-cl.xmod -ev ...
Shell
#!/bin/sh echo $1 $2 ./round.pl 12 $1 > "$1-r" ./round.pl 12 $2 > "$2-r" diff -b -q "$1-r" "$2-r"
Shell
#!/bin/bash echo "Running MN tests..." testnum=0 # # Convert models to Markov networks # # TEST 1 testnum=$(($testnum+1)) ../../bin/mconvert -m msweb-cl.bn -o out1.mn ./diffr out1.mn msweb-cl.mn > /dev/null if [ $? -ne 0 ]; then echo "Test $testnum: FAILED"; else echo "Test $testnum: Success"; fi # TEST 2 testnum=$...
Shell
#!/bin/sh echo $1 $2 ./round.pl 12 $1 > "$1-r" ./round.pl 12 $2 > "$2-r" diff -b -q "$1-r" "$2-r"
Shell
#!/bin/bash echo "Running cl tests..." testnum=0 # TEST 1 testnum=$(($testnum+1)) ../../bin/cl -v -i test1.data -o out1.bif > out1.log diff -b -q out1.bif test1.bif > /dev/null if [ $? -ne 0 ]; then echo "Test $testnum: FAILED"; else echo "Test $testnum: Success"; fi # TEST 2 testnum=$(($testnum+1)) ../../bin/cl -v ...
Shell
#!/bin/bash echo "Running dn2mn tests..." testnum=0 for base in a3 a1 alarm; do testnum=$(($testnum+1)) ../../bin/dn2mn -m $base.dn -i $base.data -o $base-l.mn -rev -linear -marg ../../bin/dn2mn -m $base.dn -i $base.data -order $base.order -o $base-o.mn -norev -single -marg ../../bin/dn2mn -m $base.dn -i $base.data -...
Shell
#!/bin/bash cd ..; cd ..; librapath="`pwd`/bin" echo $librapath cd test; cd idspn; oldpath=$PATH export PATH=$PATH:$librapath echo "Running idspn tests..." echo "Idspn's tests may take several minutes" testnum=0 # TEST 1 testnum=$(($testnum+1)) # TEST 1-a ../../bin/idspn -i train1.data -s train1.schema -o out1.spn -f...
Shell
#!/bin/bash echo "Running acbn tests..." testnum=0 # TEST 1 testnum=$(($testnum+1)) rm -f cold-out1.ac cold-out1.xmod cold-out1.log ../../bin/acbn -i cold.data -o cold-out1.ac -mo cold-out1.xmod -debug -v > cold-out1.log diff -b -q cold-out1.ac cold-test1.ac > /dev/null if [ $? -ne 0 ]; then echo "Test $testnum-a: F...
Shell
#!/bin/bash echo "Running acve tests..." testnum=0 # TEST 1 testnum=$(($testnum+1)) rm -rf out1.ac out1.log ../../bin/acve -m test1.bif -o out1.ac -log out1.log diff -b -q out1.ac test1.ac > /dev/null if [ $? -ne 0 ]; then echo "Test $testnum: FAILED"; else echo "Test $testnum: Success"; fi # TEST 2 testnum=$(($test...
Shell
#!/bin/bash echo "Running acmn tests..." testnum=0 # TEST 1 testnum=$(($testnum+1)) ../../bin/acmn -i cold.data -o cold-out1.ac -mo cold-out1.mn -v > /dev/null diff -b -q cold-out1.ac cold.ac > /dev/null if [ $? -ne 0 ]; then echo "Test $testnum-a: FAILED"; else echo "Test $testnum-a: Success"; fi diff -b -q cold-out...
Shell
#!/bin/bash echo "Running mtlearn tests..." echo "mtlearn is sensitive to the sequence of random numbers." testnum=0 # TEST 1 testnum=$(($testnum+1)) # TEST 1-a ../../bin/mtlearn -i train1.data -s train1.schema -o out1.spn -k 5 -f -seed 1234 > out1.log diff -b -q model1.spn/spac.m out1.spn/spac.m > /dev/null if [ $? -...
Shell
#!/bin/bash echo "Running manual tests..." testnum=0 if true; then # TEST 1 testnum=$(($testnum+1)) ../../bin/cl -i ../../doc/examples/msweb.data -s ../../doc/examples/msweb.schema -o out1.xmod -prior 1 -v -log out1.log ./diffr out1.xmod test1.xmod > /dev/null if [ $? -ne 0 ]; then echo "Test $testnum: FAILED"; else ...
Shell
#!/bin/sh echo $1 $2 ./round.pl 10 $1 > "$1-r" ./round.pl 10 $2 > "$2-r" diff -b -q "$1-r" "$2-r"
Shell
#!/bin/sh ../bin/rand -seed 1234 -n 100 > out-rand.txt diff -n -b out-rand.txt test-rand.txt if [ $? -ne 0 ]; then echo "The random number generator generates different sequence using the same seed, so the test of algorithms that depend on random numbers may fail"; fi cd ..; librapath="`pwd`/bin" echo $librapath cd t...
Shell
#!/bin/bash echo "Running util tests..." testnum=0 # TEST 1 testnum=$(($testnum+1)) ../../bin/bnsample -m test1.bif -n 10000 -seed 1 -o out1.data diff -b -q out1.data test1.data > /dev/null if [ $? -ne 0 ]; then echo "Test $testnum: FAILED"; else echo "Test $testnum: Success"; fi # TEST 2 testnum=$(($testnum+1)) .....
Shell
#!/bin/bash echo "Running inference tests..." testnum=0 echo "Testing BP..." # Testing BP on simple chain network # TEST 1 testnum=$(($testnum+1)) ../../bin/bp -m test1.bif -log out1-bn.log ./diffr -b -q out1-bn.log test1.log > /dev/null if [ $? -ne 0 ]; then echo "Test $testnum BN: FAILED"; else echo "Test $testnu...
Shell
#!/bin/sh echo $3 $4 ./round.pl 12 $3 > "$3-r" ./round.pl 12 $4 > "$4-r" diff -b -q "$3-r" "$4-r"
Shell
#!/../bin/bash echo "Running MPE tests..." testnum=0 echo "Testing Max-Product..." # Testing BP on simple chain network # TEST 1 testnum=$(($testnum+1)) ../../../bin/maxprod -m test1.bif -log out1-bn.log ./diffr out1-bn.log test1.log > /dev/null if [ $? -ne 0 ]; then echo "Test $testnum BN: FAILED"; else echo "Test ...
Shell
#!/bin/sh echo $1 $2 ./round.pl 12 $1 > "$1-r" ./round.pl 12 $2 > "$2-r" diff -b -q "$1-r" "$2-r"
Shell
#!/bin/bash cd maven && ./install_maven.sh cd ../connectors/koha && ./install_xcncip2toolkit.sh
Shell
#!/bin/bash docker build -t xcncip2toolkit/maven .
Shell
#!/bin/bash cd /home/xcncip2toolkit/xcncip2toolkit/core/trunk mvn install mvn install -Dmaven.test.skip cd ../../connectors/koha/3.xx/trunk mvn install -Dmaven.test.skip
Shell
#!/bin/bash # If you plan to deploy docker into other than Czech library, change this export LC_ALL=cs_CZ.UTF-8 export LANGUAGE=cs_CZ.UTF-8 export LANG=cs_CZ.UTF-8 config='toolkit.properties' cp toolkit.properties.example $config echo echo "Koha's configuration is on schedule.." echo "" read -e -p "Enter your librar...
Shell
#!/bin/bash ./configure.sh docker build -t xcncip2toolkit/xcncip2toolkit .
Shell
#!/bin/bash cd /home/xcncip2toolkit/xcncip2toolkit/core/trunk mvn install mvn install -Dmaven.test.skip cd ../../connectors/aleph/22/trunk mvn install -Dmaven.test.skip
Shell
#!/bin/bash sudo docker build -t xcncip2toolkit/xcncip2toolkit .
Shell
#!/bin/bash cd maven && ./install_maven.sh cd ../connectors/aleph && ./install_xcncip2toolkit.sh
Shell
#!/bin/bash i=$(docker ps -a | egrep '.*Up.*8080/tcp' | cut -d' ' -f1 | xargs docker stop) if [ $i ]; then echo "" echo "Your xcncip2toolkit have successfully stopped." echo "" fi
Shell
#!/bin/bash # Run tomcat with random PW (to show generated password, use "docker logs CONTAINER_ID") # All running containers can be listed with "docker ps -a" i=$(docker run -d -p 8080:8080 xcncip2toolkit/xcncip2toolkit) # Run xcncip2toolkit on tomcat with custom PW: # i=$(docker run -d -p 8080:8080 -e TOMCAT_PASS="m...
Shell
xboard -fcp ./xechecs.sh
Shell
java -jar xechecs.jar
Shell
java -cp dist/xeerkat-xmpp-client.jar org.xeerkat.xmpp.tools.MUC $*
Shell
java -cp ../thirdparty/xml-infoset_0.11.1/xml-infoset-0.11.1.jar:../thirdparty/xml-infoset_0.11.1/xml-infoset-memory-0.11.1.jar:dist/xeerkat-xmpp-client.jar org.xeerkat.xmpp.tools.RawChat $*
Shell
#!/bin/sh java -Djavax.net.ssl.trustStore=../xmpp-server/test/truststore -Djavax.net.ssl.trustStorePassword=keystore -jar dist/xeerkat-xmpp-client.jar $*
Shell
java -cp ../thirdparty/xml-infoset_0.11.1/xml-infoset-0.11.1.jar:../thirdparty/xml-infoset_0.11.1/xml-infoset-memory-0.11.1.jar:dist/xeerkat-xmpp-client.jar org.xeerkat.xmpp.tools.Roster $*
Shell
#!/bin/sh java -Djavax.net.ssl.trustStore=../xmpp-server/test/truststore -Djavax.net.ssl.trustStorePassword=keystore -jar dist/xeerkat-xmpp-client.jar $*
Shell
java -cp ../thirdparty/xml-infoset_0.11.1/xml-infoset-0.11.1.jar:../thirdparty/xml-infoset_0.11.1/xml-infoset-memory-0.11.1.jar:dist/xeerkat-xmpp-client.jar org.xeerkat.xmpp.tools.Sniff $*
Shell
#!/bin/sh KEYSTORE=keystore TRUSTSTORE=truststore echo "Creating key for alias $1 ..." keytool -genkeypair -keyalg RSA -validity 7 -keystore $KEYSTORE -dname "CN=$1,OU=server,O=xeerkat,C=US" -alias $1 echo "Exporting alias $1 ..." keytool -export -file $1.cer -keystore $KEYSTORE -alias $1 echo "Importing alias $1 into...
Shell
#!/bin/sh KEYSTORE=keystore TRUSTSTORE=truststore echo "Creating key for alias $1 ..." keytool -genkeypair -keyalg RSA -validity 7 -keystore $KEYSTORE -dname "CN=$1,OU=server,O=xeerkat,C=US" -alias $1 echo "Exporting alias $1 ..." keytool -export -file $1.cer -keystore $KEYSTORE -alias $1 echo "Importing alias $1 into...
Shell
#!/bin/sh # # Small shell script to show how to start/stop Atomojo using jsvc # # Adapt the following lines to your configuration JAVA_HOME=/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update12 XEERKAT_HOME=/home/xeerkat/current XEERKAT_CONF=/home/xeerkat/server.conf DAEMON_HOME=$XEERKAT_HOME/jsvc XEERKAT_USER=xeerkat # for mu...
Shell
#!/bin/sh # # Small shell script to show how to start/stop Atomojo using jsvc # # Adapt the following lines to your configuration JAVA_HOME=/usr/lib64/jvm/java-1.5.0-sun-1.5.0_update12 XEERKAT_HOME=/home/xeerkat/current XEERKAT_CONF=/home/xeerkat/server.conf DAEMON_HOME=$XEERKAT_HOME/jsvc XEERKAT_USER=xeerkat # for mu...
Shell
java -cp dist/agent.jar:../lib/org.restlet.jar:../lib/com.noelios.restlet.jar:../lib/smack.jar:../lib/smackx.jar:../lib/smackx-debug.jar org.xeerkat.agent.Main $*
Shell
java -cp dist/restlet-xmpp.jar:../lib/org.restlet.jar:../lib/com.noelios.restlet.jar:../lib/infoset-0.10.2.jar:../lib/infoset-memory-0.10.2.jar:../lib/jsr173_1.0_api.jar:../lib/sjsxp.jar:../xmpp-client/dist/xeerkat-xmpp-client.jar org.xeerkat.restlet.xmpp.Shell $*
Shell
mvn clean install cd xdoc-web mvn jetty:run
Shell
mvn clean install cd xdoc-web mvn jetty:run
Shell
#!/bin/sh cmake -E make_directory build cd build cmake .. make cpack --config CPackConfig.cmake
Shell
#!/bin/sh # Copyright (c) 2009-2011 # XCast Labs # # This work is licensed under the Creative Commons Attribution License. # # To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0 # # **************************************************************** # # You are free: ...
Shell
#!/bin/sh # Copyright (c) 2009-2011 # XCast Labs # # This work is licensed under the Creative Commons Attribution License. # # To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0 # # **************************************************************** # # You are free: ...
Shell
#!/bin/sh # Copyright (c) 2009-2011 # XCast Labs # # This work is licensed under the Creative Commons Attribution License. # # To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0 # # **************************************************************** # # You are free: ...
Shell
#!/bin/sh # Copyright (c) 2009-2011 # XCast Labs # # This work is licensed under the Creative Commons Attribution License. # # To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0 # # **************************************************************** # # You are free: ...
Shell
#!/bin/sh # Copyright (c) 2009-2011 # XCast Labs # # This work is licensed under the Creative Commons Attribution License. # # To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0 # # **************************************************************** # # You are free: ...
Shell
#!/bin/sh # Copyright (c) 2009-2011 # XCast Labs # # This work is licensed under the Creative Commons Attribution License. # # To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0 # # **************************************************************** # # You are free: ...
Shell
#!/bin/bash this=`basename $0` this=`echo $0 | sed -e 's/\/'$this'$//'` cd $this/.. . /home/native/.profile export HOME=`pwd` export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH exec bin/FBReader -lang `bin/language_detector` $2
Shell
#!/bin/sh if [ $# != 2 ]; then echo -e "usage\n $0 <platform> <install_dir>"; exit 0; fi; case "$1" in desktop|win32|pepperpad3) toolbar_file=data/default/toolbar.full.xml ;; zaurus_640x480) toolbar_file=data/default/toolbar.zaurus.xml ;; *) toolbar_file=data/default/toolbar.short.xml ;; esac; case...
Shell
#!/bin/sh if [ $# != 2 ]; then echo -e "usage\n $0 <platform> <install_dir>"; exit 0; fi; case "$1" in desktop|maemo|openzaurus_640x480|pdaxrom|pepperpad3|zaurus_640x480) platform=desktop; ;; moto) platform=desktop; ;; opensimpad-0.9.0|qvfb) platform=640x480; ;; openzaurus_240x320|pma400|zaurus_240...
Shell
#!/bin/bash this=`basename $0` this=`echo $0 | sed -e 's/\/'$this'$//'` cd $this/.. . /home/native/.profile export HOME=`pwd` export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH exec bin/FBReader -lang `bin/language_detector` $2
Shell
#!/bin/sh if [ $# != 2 ]; then echo -e "usage\n $0 <platform> <install_dir>"; exit 0; fi; case "$1" in desktop|win32|pepperpad3) toolbar_file=data/default/toolbar.full.xml ;; zaurus_640x480) toolbar_file=data/default/toolbar.zaurus.xml ;; *) toolbar_file=data/default/toolbar.short.xml ;; esac; case...
Shell
#!/bin/sh if [ $# != 2 ]; then echo -e "usage\n $0 <platform> <install_dir>"; exit 0; fi; case "$1" in desktop|maemo|openzaurus_640x480|pdaxrom|pepperpad3|zaurus_640x480) platform=desktop; ;; moto) platform=desktop; ;; opensimpad-0.9.0|qvfb) platform=640x480; ;; openzaurus_240x320|pma400|zaurus_240...
Shell
#!/bin/sh if [ $# != 2 ]; then echo "usage: "; exit 0; fi; if mkdir ../$1; then for file in Dummy*.h Dummy*.cpp; do sed "s/Dummy/$2/g" $file | sed "s/DUMMY/$2/g" > ../$1/`echo $file | sed "s/Dummy/$2/"`; done fi;
Shell
#!/bin/sh exec FBReader "$@"
Shell
#!/bin/sh if [ $# != 2 ]; then echo "usage: "; exit 0; fi; if mkdir ../$1; then for file in Dummy*.h Dummy*.cpp; do sed "s/Dummy/$2/g" $file | sed "s/DUMMY/$2/g" > ../$1/`echo $file | sed "s/Dummy/$2/"`; done fi;
Shell
#! /bin/sh if [ -x /usr/bin/gtk-update-icon-cache ] then /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor fi if [ -x /usr/bin/update-desktop-database ] then /usr/bin/update-desktop-database fi if [ -x /usr/bin/update-mime-database ] then /usr/bin/update-mime-database /usr/share/mime fi if [ "$1" = "...
Shell
#! /bin/sh set -e if [ "$1" = "configure" ]; then ldconfig fi
Shell
#! /bin/sh if [ -x /usr/bin/gtk-update-icon-cache ] then /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor fi if [ -x /usr/bin/update-desktop-database ] then /usr/bin/update-desktop-database fi if [ -x /usr/bin/update-mime-database ] then /usr/bin/update-mime-database /usr/share/mime fi
Shell
#! /bin/sh set -e if [ "$1" = "configure" ]; then ldconfig fi
Shell
#! /bin/sh if [ -x /usr/bin/gtk-update-icon-cache ] then /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor fi if [ -x /usr/bin/update-desktop-database ] then /usr/bin/update-desktop-database fi if [ -x /usr/bin/update-mime-database ] then /usr/bin/update-mime-database /usr/share/mime fi if [ "$1" = "...
Shell
#! /bin/sh set -e if [ "$1" = "configure" ]; then ldconfig fi
Shell
#! /bin/sh if [ -x /usr/bin/gtk-update-icon-cache ] then /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor fi if [ -x /usr/bin/update-desktop-database ] then /usr/bin/update-desktop-database fi if [ -x /usr/bin/update-mime-database ] then /usr/bin/update-mime-database /usr/share/mime fi
Shell
#! /bin/sh set -e if [ "$1" = "configure" ]; then ldconfig fi
Shell
#!/bin/sh exec FBReader "$@"
Shell
#! /bin/sh if [ -x /usr/bin/gtk-update-icon-cache ] then /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor fi if [ -x /usr/bin/update-desktop-database ] then /usr/bin/update-desktop-database fi if [ -x /usr/bin/update-mime-database ] then /usr/bin/update-mime-database /usr/share/mime fi if [ "$1" = "...
Shell
#! /bin/sh set -e if [ "$1" = "configure" ]; then ldconfig fi
Shell
#! /bin/sh if [ -x /usr/bin/gtk-update-icon-cache ] then /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor fi if [ -x /usr/bin/update-desktop-database ] then /usr/bin/update-desktop-database fi if [ -x /usr/bin/update-mime-database ] then /usr/bin/update-mime-database /usr/share/mime fi
Shell
#! /bin/sh set -e if [ "$1" = "configure" ]; then ldconfig fi
Shell
#! /bin/sh if [ -x /usr/bin/gtk-update-icon-cache ] then /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor fi if [ -x /usr/bin/update-desktop-database ] then /usr/bin/update-desktop-database fi if [ -x /usr/bin/update-mime-database ] then /usr/bin/update-mime-database /usr/share/mime fi if [ "$1" = "...
Shell
#! /bin/sh set -e if [ "$1" = "configure" ]; then ldconfig fi
Shell
#! /bin/sh if [ -x /usr/bin/gtk-update-icon-cache ] then /usr/bin/gtk-update-icon-cache -f /usr/share/icons/hicolor fi if [ -x /usr/bin/update-desktop-database ] then /usr/bin/update-desktop-database fi if [ -x /usr/bin/update-mime-database ] then /usr/bin/update-mime-database /usr/share/mime fi
Shell
#! /bin/sh set -e if [ "$1" = "configure" ]; then ldconfig fi
Shell
ant OAIToolkitInstallPackage-server ant OAIToolkitInstallPackage-linux ant OAIToolkitInstallPackage-windows
Shell
FROM=1.0.10 TO=1.0.11 FROM_JAR=OAIToolkit\-${FROM}.jar TO_JAR=OAIToolkit\-${TO}.jar cd sample_scripts for f in `grep -l ${FROM_JAR} *` do mv $f ${f}.old cat ${f}.old | sed 's/'"${FROM_JAR}"'/'"${TO_JAR}"'/g' > $f rm -f ${f}.old done
Shell
#!/bin/sh # # This script will check to see if the BIB and Authority file extract arrrived # Create date formatYEAR="`date +%Y`" # Two digit day format DAY="`date +%d`" # Three letter month format MONTH="`date +%b`" FILEDATE=$YEAR-$MONTH-$DAY echo $FILEDATE if [ -f /import/marc_extract/updates$FILEDATE....
Shell
#!/bin/sh # # Archive deleted and replaced marc files # Updated 11/13/08 # # This script will move a list of Voyager reports to Voyager's home directory. # # Voyager must be stopped in order to move these files # # Create start date # Four digit year format YEAR="`date +%Y`" # Two digit day format DAY="...
Shell
#!/bin/sh #Create date format YEAR="`date +%Y`" # Two digit day format DAY="`date +%d`" # Two digit month format MONTH="`date +%m`" FILEDATE=$YEAR-$MONTH-$DAY if [ -f /import/marc_extract/auth_records$FILEDATE.mrc ] ; then date echo Bib Auth file arrived ; else date cat <<EOF | mailx -s "Authority R...
Shell
#!/bin/sh find /import/deleted_records -mtime -4 -name "*.tgz" > /import/deleted_records/TESTFILE if [ -s /import/deleted_records/TESTFILE ] ; then echo Deleted file arrived ; time else echo "Deleted records did not arrive" >> /import/deleted_records/mailfile date echo "Deleted records did not arrive" mailx -...
Shell
#!/bin/sh # ============================================== # convert the MARC files to MARCXML and import to Lucene # ============================================== # ATTENTION: this is a sample script, modify the # parameters according to your needs. Read the # OAIToolkit Manual for the details. # ==================...
Shell
@echo off rem ============================================== rem Convert the MARC files to MARCXML rem ============================================== rem ATTENTION: this is a sample script, modify the rem parameters according to your needs. Read the rem OAIToolkit Manual for the details. rem =========================...
Shell
@echo off rem ============================================== rem Import the MARCXML files to MySQL rem ============================================== rem ATTENTION: this is a sample script, modify the rem parameters according to your needs. Read the rem OAIToolkit Manual for the details. rem =========================...
Shell
#!/bin/sh # ==================================================== # Script for getting the record count with their types # and the deleted count of the Lucene Database # ==================================================== # ATTENTION: this is a sample script, modify the # parameters according to your needs. Read the ...
Shell
#!/bin/sh #Script for reporting errors in the records of the import process of OAI Toolkit touch /import/OAIToolkit/log/convert_errors_recordno.log touch /import/OAIToolkit/test_recordno grep -i record# /import/OAIToolkit/log/librarian_convert.log >> /import/OAIToolkit/test_recordno if [ -s /import/OAIToolkit/test_r...
Shell