code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh echo echo "## Build WebLogo release" python -c "import weblogolib; print weblogolib.description" echo echo "## Check Subversion status (Working copy checked in and up to date?) " svn status echo echo "## Lines of code" wc -l *.py weblogolib/*.py | grep 'total' echo echo "## Code Tags" grep 'F...
Shell
#!/bin/sh echo -ne '.' ../../../weblogo --format PNG --size large \ -i -5 -l 1 -u 20 \ --title "The DNA-binding helix-turn-helix motif of the CAP family" \ < cap_hth.fa \ > cap_hth.png || exit echo -ne '.' ../../../weblogo --format PNG --size large \ --title "58 CAP Binding Sites" \ -...
Shell
#!/bin/sh echo -ne '.' ../../../weblogo --format PNG --size large \ -i -5 -l 1 -u 20 \ --title "The DNA-binding helix-turn-helix motif of the CAP family" \ < cap_hth.fa \ > cap_hth.png || exit echo -ne '.' ../../../weblogo --format PNG --size large \ --title "58 CAP Binding Sites" \ -...
Shell
#!/bin/sh echo echo "## Build a WebLogo release" echo "# Use setup.py to install from a built distribution." echo "# Requires epydoc to build documentation. " python -c "import weblogolib; print weblogolib.description" echo echo "## Check Subversion status (Working copy checked in and up to date?) " svn status...
Shell
mkdir -p tmp echo "# Test weblogo by building logos with many different options." echo -ne '.' ./weblogo < cap.fa > tmp/logo0.eps ||exit echo -ne '.' ./weblogo --title "Default Logo with Title" < cap.fa > tmp/logo1.eps ||exit echo -ne '.' ./weblogo --debug yes --fineprint "Default Logo with this fineprint and deb...
Shell
#!/bin/sh echo echo "## Build a WebLogo release" echo "# Use setup.py to install from a built distribution." echo "# Requires epydoc to build documentation. " python -c "import weblogolib; print weblogolib.description" echo echo "## Check Subversion status (Working copy checked in and up to date?) " svn status...
Shell
#!/bin/bash echo -n '.' ../../../weblogo --format PNG --size large \ -i -5 -l 1 -u 20 \ --title "The DNA-binding helix-turn-helix motif of the CAP family" \ < cap_hth.fa \ > cap_hth.png || exit echo -n '.' ../../../weblogo --format PNG --size large \ --title "58 CAP Binding Sites" \ -...
Shell
#!/bin/bash echo -n '.' ../../../weblogo --format PNG --size large \ -i -5 -l 1 -u 20 \ --title "The DNA-binding helix-turn-helix motif of the CAP family" \ < cap_hth.fa \ > cap_hth.png || exit echo -n '.' ../../../weblogo --format PNG --size large \ --title "58 CAP Binding Sites" \ -...
Shell
#!/bin/bash echo echo "## Build a WebLogo release" echo "# Use setup.py to install from a built distribution." echo "# Requires epydoc to build documentation. " python -c "import weblogolib; print(weblogolib.description)" echo echo "## Check Subversion status (working copy checked in and up to date?) " svn statu...
Shell
#!/bin/bash mkdir -p tmp echo "# Test weblogo by building logos with many different options." echo -n '.' ./weblogo < cap.fa > tmp/logo0.eps ||exit echo -n '.' ./weblogo --title "Default Logo with Title" < cap.fa > tmp/logo1.eps ||exit echo -n '.' ./weblogo --debug yes --fineprint "Default Logo with this finep...
Shell
#!/bin/bash mkdir -p tmp echo "# Test weblogo by building logos with many different options." echo -n '.' ./weblogo < cap.fa > tmp/logo0.eps ||exit echo -n '.' ./weblogo --title "Default Logo with Title" < cap.fa > tmp/logo1.eps ||exit echo -n '.' ./weblogo --debug yes --fineprint "Default Logo with this finep...
Shell
#!/bin/bash echo echo "## Build a WebLogo release" echo "# Use setup.py to install from a built distribution." echo "# Requires epydoc to build documentation. " python -c "import weblogolib; print(weblogolib.description)" echo echo "## Check Subversion status (working copy checked in and up to date?) " svn statu...
Shell
#!/bin/sh # vi: set sw=4 ts=4 ai: # $Id: we-blog.sh 3 2012-07-09 12:55:25 tonk $ # we-blog, a command wrapper for We-Blog # Copyright (c) 2011-2012 Ton Kersten # Copyright (c) 2009-2011 Jaromir Hradilek # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General...
Shell
#!/bin/sh BLOG_CLASSPATH="" for f in lib/*.jar do BLOG_CLASSPATH="$BLOG_CLASSPATH":$f done BLOG_CLASSPATH="$JAVA_HOME/lib/tools.jar":"$BLOG_CLASSPATH":build/crawler.jar:"$CLASSPATH" echo $BLOG_CLASSPATH $JAVA_HOME/bin/java -Xmx1024m -cp "$BLOG_CLASSPATH" edu.indiana.cs.webmining.blog.BlogProcessingSystem Blog
Shell
#!/bin/sh BLOG_CLASSPATH="" for f in lib/*.jar do BLOG_CLASSPATH="$BLOG_CLASSPATH":$f done BLOG_CLASSPATH="$JAVA_HOME/lib/tools.jar":"$BLOG_CLASSPATH":build/crawler.jar:"$CLASSPATH" echo $BLOG_CLASSPATH $JAVA_HOME/bin/java -Xmx2048m -cp "$BLOG_CLASSPATH" edu.indiana.cs.webmining.blog.BlogProcessingSystem
Shell
#!/bin/sh BLOG_CLASSPATH="" for f in lib/*.jar do BLOG_CLASSPATH="$BLOG_CLASSPATH":$f done BLOG_CLASSPATH="$JAVA_HOME/lib/tools.jar":"$BLOG_CLASSPATH":build/crawler.jar:"$CLASSPATH" echo $BLOG_CLASSPATH $JAVA_HOME/bin/java -Xmx1024m -cp "$BLOG_CLASSPATH" edu.indiana.cs.webmining.blog.BlogProcessingSystem Blog
Shell
#!/bin/sh WEBAPP_DIR=${HOME}/opt/apps/tomcat/webapps pushd . ant clean jar cd WebApp ant clean war cd build cp -p mem.war ${WEBAPP_DIR}/ cd ${WEBAPP_DIR} rm -rf mem popd
Shell
#!/bin/sh BLOG_CLASSPATH="" for f in lib/*.jar do BLOG_CLASSPATH="$BLOG_CLASSPATH":$f done BLOG_CLASSPATH="$JAVA_HOME/lib/tools.jar":"$BLOG_CLASSPATH":build/crawler.jar:"$CLASSPATH" echo $BLOG_CLASSPATH $JAVA_HOME/bin/java -Xmx2048m -cp "$BLOG_CLASSPATH" edu.indiana.cs.webmining.blog.BlogProcessingSystem
Shell
#!/bin/sh BLOG_CLASSPATH="" for f in lib/*.jar do BLOG_CLASSPATH="$BLOG_CLASSPATH":$f done BLOG_CLASSPATH="$JAVA_HOME/lib/tools.jar":"$BLOG_CLASSPATH":build/crawler.jar:"$CLASSPATH" echo $BLOG_CLASSPATH $JAVA_HOME/bin/java -Xmx1024m -cp "$BLOG_CLASSPATH" edu.indiana.cs.webmining.blog.BlogProcessingSystem Crawler
Shell
#!/bin/sh BLOG_CLASSPATH="" for f in lib/*.jar do BLOG_CLASSPATH="$BLOG_CLASSPATH":$f done BLOG_CLASSPATH="$JAVA_HOME/lib/tools.jar":"$BLOG_CLASSPATH":build/crawler.jar:"$CLASSPATH" echo $BLOG_CLASSPATH $JAVA_HOME/bin/java -Xmx1024m -cp "$BLOG_CLASSPATH" edu.indiana.cs.webmining.blog.BlogProcessingSystem Crawler
Shell
#!/bin/sh WEBAPP_DIR=${HOME}/opt/apps/tomcat/webapps pushd . ant clean jar cd WebApp ant clean war cd build cp -p mem.war ${WEBAPP_DIR}/ cd ${WEBAPP_DIR} rm -rf mem popd
Shell
#!/bin/sh pdflatex $1 && bibtex $1 && pdflatex $1 && pdflatex $1
Shell
#!/bin/sh pdflatex $1 && bibtex $1 && pdflatex $1 && pdflatex $1
Shell
#!/usr/bin/env sh ## ## This script runs the org.archive.crawler.extractor.ExtractorTool main. ## Pass '--help' to get usage message. ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## ...
Shell
#!/usr/bin/env sh ## ## This script launches the heritrix crawler. ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## make an educated guess based of position relative to this ## ...
Shell
#!/usr/bin/env sh ## ## This script launches the heritrix crawler and keeps the process in foreground ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## make an educated guess based...
Shell
#!/usr/bin/env sh ## ## This script runs the arcreader main. ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## make an educated guess based of position relative to this ## ...
Shell
#!/usr/bin/env sh ## ## This script runs the org.archive.crawler.extractor.ExtractorHTMLTest main. ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## make an educated guess based of...
Shell
#!/usr/bin/env sh ## ## This script runs the org.archive.crawler.extractor.ExtractorTool main. ## Pass '--help' to get usage message. ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## ...
Shell
#!/usr/bin/env sh ## ## This script launches the heritrix crawler and keeps the process in foreground ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## make an educated guess based...
Shell
#!/usr/bin/env sh ## ## This script runs the org.archive.crawler.extractor.ExtractorHTMLTest main. ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## make an educated guess based of...
Shell
#!/usr/bin/env sh ## ## This script runs the arcreader main. ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## make an educated guess based of position relative to this ## ...
Shell
#!/usr/bin/env sh ## ## This script launches the heritrix crawler. ## ## Optional environment variables ## ## JAVA_HOME Point at a JDK install to use. ## ## HERITRIX_HOME Pointer to your heritrix install. If not present, we ## make an educated guess based of position relative to this ## ...
Shell
#!/bin/sh BLOG_CLASSPATH="" for f in lib/*.jar do BLOG_CLASSPATH="$BLOG_CLASSPATH":$f done BLOG_CLASSPATH="$JAVA_HOME/lib/tools.jar":"$BLOG_CLASSPATH":build/crawler.jar:"$CLASSPATH" echo $BLOG_CLASSPATH $JAVA_HOME/bin/java -Xmx2048m -cp "$BLOG_CLASSPATH" edu.indiana.cs.webmining.blog.BlogProcessingSystem
Shell
#!/bin/sh BLOG_CLASSPATH="" for f in lib/*.jar do BLOG_CLASSPATH="$BLOG_CLASSPATH":$f done BLOG_CLASSPATH="$JAVA_HOME/lib/tools.jar":"$BLOG_CLASSPATH":build/crawler.jar:"$CLASSPATH" echo $BLOG_CLASSPATH $JAVA_HOME/bin/java -Xmx2048m -cp "$BLOG_CLASSPATH" edu.indiana.cs.webmining.blog.BlogProcessingSystem
Shell
echo "This script will: 1) Install modules needed to run web2py on Fedora and CentOS/RHEL 2) Install Python 2.6 to /opt and recompile wsgi if not provided 2) Install web2py in /opt/web-apps/ 3) Configure SELinux and iptables 5) Create a self signed ssl certificate 6) Setup web2py with mod_wsgi 7) Create virtualhost ent...
Shell
# install virtualenv easy_install virtualenv python virtualenv.py w2env # install missing modules w2env/bin/easy_install -U pysqlite hashlib # donwload web2py and unpack wget http://web2py.com/examples/static/web2py_src.zip unzip web2py_src.zip cd web2py # start web2py using command-l...
Shell
# # Author: Christopher Steel # Organization: Voice of Access # Date: 2010-11-24 # License: Same as Web2py, MIT / GNU # Email: Christopher DOT Steel AT Voice of Access DOT org # # This script will : # download and install virtualenv # start a virtual environment # move into the virtual environment # download a...
Shell
#!/bin/bash # # /etc/rc.d/init.d/web2pyd # # Starts the Web2py Daemon on Fedora (Red Hat Linux) # # To execute automatically at startup # # sudo chkconfig --add web2pyd # # chkconfig: 2345 90 10 # description: Web2py Daemon # processname: web2pyd # pidfile: /var/lock/subsys/web2pyd source /etc/rc.d/init.d/fun...
Shell
#! /bin/sh ### BEGIN INIT INFO # startup script for Ubuntu and Debian Linux servers # # To use this file # cp ubuntu.sh /etc/init.d/web2py # # To automatitcally start at reboot # sudo update-rc.d web2py defaults # # Provides: web2py # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remo...
Shell
#!/bin/bash # the script should be run # from WEB2PY root directory prog=`basename $0` cd `pwd` chmod +x $prog function web2py_start { nohup ./$prog -a "<recycle>" 2>/dev/null & pid=`pgrep $prog | tail -1` if [ $pid -ne $$ ] then echo "WEB2PY has been started." fi } function web2py_stop { kill -15 ...
Shell
#!/bin/bash # # update-web2py.sh # 2009-12-16 # # install in web2py/.. or web2py/ or web2py/scripts as update-web2py.sh # make executable: chmod +x web2py.sh # # save a snapshot of current web2py/ as web2py/../web2py-version.zip # download the current stable version of web2py # unzip downloaded version over web...
Shell
#!/bin/bash # the script should be run # from WEB2PY root directory prog=`basename $0` cd `pwd` chmod +x $prog function web2py_start { nohup ./$prog -a "<recycle>" 2>/dev/null & pid=`pgrep $prog | tail -1` if [ $pid -ne $$ ] then echo "WEB2PY has been started." fi } function web2py_stop { kill -15 ...
Shell
chown -R nobody:nobody *.py chown -R nobody:nobody gluon chown -R nobody:nobody scripts chown -R nobody:nobody applications/*/modules/ chown -R nobody:nobody applications/*/models/ chown -R nobody:nobody applications/*/controllers/ chown -R nobody:nobody applications/*/views/ chown -R nobody:nobody applications/*/stati...
Shell
#!/bin/bash # # /etc/rc.d/init.d/web2pyd # # Starts the Web2py Daemon on Fedora (Red Hat Linux) # # To execute automatically at startup # # sudo chkconfig --add web2pyd # # chkconfig: 2345 90 10 # description: Web2py Daemon # processname: web2pyd # pidfile: /var/lock/subsys/web2pyd source /etc/rc.d/init.d/fun...
Shell
#! /bin/sh ### BEGIN INIT INFO # startup script for Ubuntu and Debian Linux servers # # To use this file # cp ubuntu.sh /etc/init.d/web2py # # To automatitcally start at reboot # sudo update-rc.d web2py defaults # # Provides: web2py # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remo...
Shell
echo "This script will: 1) install all modules need to run web2py on Ubuntu/Debian 2) install web2py in /home/www-data/ 3) create a self signed sll certificate 4) setup web2py with mod_wsgi 5) overwrite /etc/apache2/sites-available/default 6) restart apache. You may want to read this cript before running it. Press a ...
Shell
#!/bin/bash # # update-web2py.sh # 2009-12-16 # # install in web2py/.. or web2py/ or web2py/scripts as update-web2py.sh # make executable: chmod +x web2py.sh # # save a snapshot of current web2py/ as web2py/../web2py-version.zip # download the current stable version of web2py # unzip downloaded version over web...
Shell
#!/bin/sh for i in *.php do echo -e "\n\t\$lang['list_view'] = 'View';" >> $i done
Shell
#!/bin/sh for i in *.php do echo -e "\n\t\$lang['list_view'] = 'View';" >> $i done
Shell
: # this file should be run from Cygnus BASH # file to build ttf2pt1 with Cygnus GCC on Windows # don't forget to copy CYGWIN1.DLL into C:\WINDOWS gcc -o ttf2pt1 -DWINDOWS ttf2pt1.c pt1.c t1asm.c ttf.c -lm gcc -o t1asm -DWINDOWS -DSTANDALONE t1asm.c
Shell
#!/bin/sh # # Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. All rights reserved. # # Author: Mike Fabian <mfabian@suse.de>, 2002 # TYPE1_DIR=$1 if [ -z $TYPE1_DIR ] ; then TYPE1_DIR=/usr/share/texmf/fonts/type1/cjk-latex/ fi CJK_LATEX_TYPE1_MAP_FILE=/var/lib/texmf/dvips/config/cjk-latex.map echo "creati...
Shell
#!/bin/sh # # Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. All rights reserved. # # Author: Mike Fabian <mfabian@suse.de>, 2002 # TYPE1_DIR=$1 if [ -z $TYPE1_DIR ] ; then TYPE1_DIR=/usr/share/texmf/fonts/type1/cjk-latex/ fi CJK_LATEX_TYPE1_MAP_FILE=/var/lib/texmf/dvips/config/cjk-latex.map echo "creati...
Shell
#!/bin/sh CONFLOCAL=$HOME/.netscape/psfonts.cf CONFGLOBAL=/usr/local/etc/nspsfonts.cf if [ -r "$CONFLOCAL" ] then CONF="$CONFLOCAL" else CONF="$CONFGLOBAL" fi grep -v "^#" <$CONF | grep -v "^$" | while : do { read nsname base afm pfa x [ -z "$nsname" ] && break; fname=`awk '/^FontName/ {print $2;}' <$base$afm` ...
Shell
#!/bin/sh if uname -s | grep -i bsd >/dev/null then LPR=lpr else LPR=lp fi nsfilter | $LPR "$@"
Shell
#!/bin/sh if uname -s | grep -i bsd >/dev/null then LPR=lpr else LPR=lp fi nsfilter | $LPR "$@"
Shell
#!/bin/sh if [ $# != 2 ] then echo "Usage: 'nspr # file.ps' where # is 2, 5, or 1251" exit else enc=$1 shift fi case ${enc} in 1250|1251) charset=windows ;; *) charset=iso8859 ;; esac sed "s/Times-Roman/Timesnew-Roman-${charset}-${enc}/g;\ s/Times-Italic/Time...
Shell
#!/bin/sh NDIR=$HOME/.netscape PFILE=$NDIR/preferences.js CFFILE=$NDIR/fontsz.cf TMPFILE=$NDIR/fontsz.sed die() { echo "notscape: can't $*" >&2 exit 1 } [ -r $CFFILE ] && { awk '{ printf("/intl.font_spec_list/s/-[^-]*-\\([^-]*\\)-%s,/-%s-\\1-%s,/\n", \ $1, $2, $1); }' <$CFFILE >$TMPFILE cp $PFILE $PFILE.old || d...
Shell
#!/bin/sh CONFLOCAL=$HOME/.netscape/psfonts.cf CONFGLOBAL=/usr/local/etc/nspsfonts.cf if [ -r "$CONFLOCAL" ] then CONF="$CONFLOCAL" else CONF="$CONFGLOBAL" fi grep -v "^#" <$CONF | grep -v "^$" | while : do { read nsname base afm pfa x [ -z "$nsname" ] && break; fname=`awk '/^FontName/ {print $2;}' <$base$afm` ...
Shell
#!/bin/sh NDIR=$HOME/.netscape PFILE=$NDIR/preferences.js CFFILE=$NDIR/fontsz.cf TMPFILE=$NDIR/fontsz.sed die() { echo "notscape: can't $*" >&2 exit 1 } [ -r $CFFILE ] && { awk '{ printf("/intl.font_spec_list/s/-[^-]*-\\([^-]*\\)-%s,/-%s-\\1-%s,/\n", \ $1, $2, $1); }' <$CFFILE >$TMPFILE cp $PFILE $PFILE.old || d...
Shell
#!/bin/sh if [ $# != 2 ] then echo "Usage: 'nspr # file.ps' where # is 2, 5, or 1251" exit else enc=$1 shift fi case ${enc} in 1250|1251) charset=windows ;; *) charset=iso8859 ;; esac sed "s/Times-Roman/Timesnew-Roman-${charset}-${enc}/g;\ s/Times-Italic/Time...
Shell
#!/bin/sh # # Copyright (c) 1998-2000 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice...
Shell
#!/bin/sh # # Copyright (c) 1998, 1999 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notic...
Shell
#!/bin/sh # # See COPYRIGHT # # Script to create a release or shapshot archive. # Also checks for very basic inconsistences. # Expects that it would be run from the current directory of ttf2pt1, # and that the parent directory is the place to create archives. # Expects that the CVS environment variables are set properl...
Shell
#!/bin/sh # # Copyright (c) 1998, 1999 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notic...
Shell
#!/bin/sh # # Copyright (c) 1998-2000 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, ...
Shell
#!/bin/sh # # Copyright (c) 1998-2000 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice...
Shell
#!/bin/sh # # This script removes the HTML formatting from a file. If the file was designed # with such use in mind and was properly formatted besides HTML (such as the README # file for ttf2pt1) it will look good as a plain text file. # # This script supports a very limited set of HTML formatting. Everything that # go...
Shell
#!/bin/sh # # Script to install a file (for portability reasons) # # (c) 2000 by The TTF2PT1 Project # See COPYRIGHT for full license # [ $# != 5 ] && { echo "Use: $0 file-from file-to owner group mode" >&2 exit 1 } cp -f $1 $2 \ && chown $3 $2 \ && chgrp $4 $2 \ && chmod 0$5 $2
Shell
#!/bin/sh # # See COPYRIGHT # # Script to create a release or shapshot archive. # Also checks for very basic inconsistences. # Expects that it would be run from the current directory of ttf2pt1, # and that the parent directory is the place to create archives. # Expects that the CVS environment variables are set properl...
Shell
#!/bin/sh # # Copyright (c) 1998-2000 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, ...
Shell
#!/bin/sh # # This script removes the HTML formatting from a file. If the file was designed # with such use in mind and was properly formatted besides HTML (such as the README # file for ttf2pt1) it will look good as a plain text file. # # This script supports a very limited set of HTML formatting. Everything that # go...
Shell
#!/bin/sh # # Script to install a file (for portability reasons) # # (c) 2000 by The TTF2PT1 Project # See COPYRIGHT for full license # [ $# != 5 ] && { echo "Use: $0 file-from file-to owner group mode" >&2 exit 1 } cp -f $1 $2 \ && chown $3 $2 \ && chgrp $4 $2 \ && chmod 0$5 $2
Shell
: # this file should be run from Cygnus BASH # file to build ttf2pt1 with Cygnus GCC on Windows # don't forget to copy CYGWIN1.DLL into C:\WINDOWS gcc -o ttf2pt1 -DWINDOWS ttf2pt1.c pt1.c t1asm.c ttf.c -lm gcc -o t1asm -DWINDOWS -DSTANDALONE t1asm.c
Shell
#!/bin/sh # # Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. All rights reserved. # # Author: Mike Fabian <mfabian@suse.de>, 2002 # TYPE1_DIR=$1 if [ -z $TYPE1_DIR ] ; then TYPE1_DIR=/usr/share/texmf/fonts/type1/cjk-latex/ fi CJK_LATEX_TYPE1_MAP_FILE=/var/lib/texmf/dvips/config/cjk-latex.map echo "creati...
Shell
#!/bin/sh # # Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. All rights reserved. # # Author: Mike Fabian <mfabian@suse.de>, 2002 # TYPE1_DIR=$1 if [ -z $TYPE1_DIR ] ; then TYPE1_DIR=/usr/share/texmf/fonts/type1/cjk-latex/ fi CJK_LATEX_TYPE1_MAP_FILE=/var/lib/texmf/dvips/config/cjk-latex.map echo "creati...
Shell
#!/bin/sh CONFLOCAL=$HOME/.netscape/psfonts.cf CONFGLOBAL=/usr/local/etc/nspsfonts.cf if [ -r "$CONFLOCAL" ] then CONF="$CONFLOCAL" else CONF="$CONFGLOBAL" fi grep -v "^#" <$CONF | grep -v "^$" | while : do { read nsname base afm pfa x [ -z "$nsname" ] && break; fname=`awk '/^FontName/ {print $2;}' <$base$afm` ...
Shell
#!/bin/sh if uname -s | grep -i bsd >/dev/null then LPR=lpr else LPR=lp fi nsfilter | $LPR "$@"
Shell
#!/bin/sh if uname -s | grep -i bsd >/dev/null then LPR=lpr else LPR=lp fi nsfilter | $LPR "$@"
Shell
#!/bin/sh if [ $# != 2 ] then echo "Usage: 'nspr # file.ps' where # is 2, 5, or 1251" exit else enc=$1 shift fi case ${enc} in 1250|1251) charset=windows ;; *) charset=iso8859 ;; esac sed "s/Times-Roman/Timesnew-Roman-${charset}-${enc}/g;\ s/Times-Italic/Time...
Shell
#!/bin/sh NDIR=$HOME/.netscape PFILE=$NDIR/preferences.js CFFILE=$NDIR/fontsz.cf TMPFILE=$NDIR/fontsz.sed die() { echo "notscape: can't $*" >&2 exit 1 } [ -r $CFFILE ] && { awk '{ printf("/intl.font_spec_list/s/-[^-]*-\\([^-]*\\)-%s,/-%s-\\1-%s,/\n", \ $1, $2, $1); }' <$CFFILE >$TMPFILE cp $PFILE $PFILE.old || d...
Shell
#!/bin/sh CONFLOCAL=$HOME/.netscape/psfonts.cf CONFGLOBAL=/usr/local/etc/nspsfonts.cf if [ -r "$CONFLOCAL" ] then CONF="$CONFLOCAL" else CONF="$CONFGLOBAL" fi grep -v "^#" <$CONF | grep -v "^$" | while : do { read nsname base afm pfa x [ -z "$nsname" ] && break; fname=`awk '/^FontName/ {print $2;}' <$base$afm` ...
Shell
#!/bin/sh NDIR=$HOME/.netscape PFILE=$NDIR/preferences.js CFFILE=$NDIR/fontsz.cf TMPFILE=$NDIR/fontsz.sed die() { echo "notscape: can't $*" >&2 exit 1 } [ -r $CFFILE ] && { awk '{ printf("/intl.font_spec_list/s/-[^-]*-\\([^-]*\\)-%s,/-%s-\\1-%s,/\n", \ $1, $2, $1); }' <$CFFILE >$TMPFILE cp $PFILE $PFILE.old || d...
Shell
#!/bin/sh if [ $# != 2 ] then echo "Usage: 'nspr # file.ps' where # is 2, 5, or 1251" exit else enc=$1 shift fi case ${enc} in 1250|1251) charset=windows ;; *) charset=iso8859 ;; esac sed "s/Times-Roman/Timesnew-Roman-${charset}-${enc}/g;\ s/Times-Italic/Time...
Shell
#!/bin/sh # # Copyright (c) 1998-2000 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice...
Shell
#!/bin/sh # # Copyright (c) 1998, 1999 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notic...
Shell
#!/bin/sh # # See COPYRIGHT # # Script to create a release or shapshot archive. # Also checks for very basic inconsistences. # Expects that it would be run from the current directory of ttf2pt1, # and that the parent directory is the place to create archives. # Expects that the CVS environment variables are set properl...
Shell
#!/bin/sh # # Copyright (c) 1998, 1999 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notic...
Shell
#!/bin/sh # # Copyright (c) 1998-2000 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, ...
Shell
#!/bin/sh # # Copyright (c) 1998-2000 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice...
Shell
#!/bin/sh # # This script removes the HTML formatting from a file. If the file was designed # with such use in mind and was properly formatted besides HTML (such as the README # file for ttf2pt1) it will look good as a plain text file. # # This script supports a very limited set of HTML formatting. Everything that # go...
Shell
#!/bin/sh # # Script to install a file (for portability reasons) # # (c) 2000 by The TTF2PT1 Project # See COPYRIGHT for full license # [ $# != 5 ] && { echo "Use: $0 file-from file-to owner group mode" >&2 exit 1 } cp -f $1 $2 \ && chown $3 $2 \ && chgrp $4 $2 \ && chmod 0$5 $2
Shell
#!/bin/sh # # See COPYRIGHT # # Script to create a release or shapshot archive. # Also checks for very basic inconsistences. # Expects that it would be run from the current directory of ttf2pt1, # and that the parent directory is the place to create archives. # Expects that the CVS environment variables are set properl...
Shell
#!/bin/sh # # Copyright (c) 1998-2000 # Sergey A. Babkin. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, ...
Shell
#!/bin/sh # # This script removes the HTML formatting from a file. If the file was designed # with such use in mind and was properly formatted besides HTML (such as the README # file for ttf2pt1) it will look good as a plain text file. # # This script supports a very limited set of HTML formatting. Everything that # go...
Shell
#!/bin/sh # # Script to install a file (for portability reasons) # # (c) 2000 by The TTF2PT1 Project # See COPYRIGHT for full license # [ $# != 5 ] && { echo "Use: $0 file-from file-to owner group mode" >&2 exit 1 } cp -f $1 $2 \ && chown $3 $2 \ && chgrp $4 $2 \ && chmod 0$5 $2
Shell
: # this file should be run from Cygnus BASH # file to build ttf2pt1 with Cygnus GCC on Windows # don't forget to copy CYGWIN1.DLL into C:\WINDOWS gcc -o ttf2pt1 -DWINDOWS ttf2pt1.c pt1.c t1asm.c ttf.c -lm gcc -o t1asm -DWINDOWS -DSTANDALONE t1asm.c
Shell
#!/bin/sh # # Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. All rights reserved. # # Author: Mike Fabian <mfabian@suse.de>, 2002 # TYPE1_DIR=$1 if [ -z $TYPE1_DIR ] ; then TYPE1_DIR=/usr/share/texmf/fonts/type1/cjk-latex/ fi CJK_LATEX_TYPE1_MAP_FILE=/var/lib/texmf/dvips/config/cjk-latex.map echo "creati...
Shell
#!/bin/sh # # Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. All rights reserved. # # Author: Mike Fabian <mfabian@suse.de>, 2002 # TYPE1_DIR=$1 if [ -z $TYPE1_DIR ] ; then TYPE1_DIR=/usr/share/texmf/fonts/type1/cjk-latex/ fi CJK_LATEX_TYPE1_MAP_FILE=/var/lib/texmf/dvips/config/cjk-latex.map echo "creati...
Shell
#!/bin/sh CONFLOCAL=$HOME/.netscape/psfonts.cf CONFGLOBAL=/usr/local/etc/nspsfonts.cf if [ -r "$CONFLOCAL" ] then CONF="$CONFLOCAL" else CONF="$CONFGLOBAL" fi grep -v "^#" <$CONF | grep -v "^$" | while : do { read nsname base afm pfa x [ -z "$nsname" ] && break; fname=`awk '/^FontName/ {print $2;}' <$base$afm` ...
Shell