Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 7380 Details for
Bug 14048
[NEW]net-www/parsedxml-1.3.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-www/parsedxml/files/zprod-update
zprod-update (text/plain), 1.40 KB, created by
Jason Shoemaker (RETIRED)
on 2003-01-16 11:50:59 UTC
(
hide
)
Description:
net-www/parsedxml/files/zprod-update
Filename:
MIME Type:
Creator:
Jason Shoemaker (RETIRED)
Created:
2003-01-16 11:50:59 UTC
Size:
1.40 KB
patch
obsolete
>#!/bin/bash > >PROD_NAME= >PROD_LST= >MOD_DIR= > ># Parameters: ># $1 = /path/to/zope/instance ># Returns: ># echos the /path/location if it finds it > >find_zope_products_dir() >{ > if [[ -d "${1}/Products" && -d "${1}/var" && -d "${1}/import" && -d "${1}/Extensions" ]] ; then > echo ${1}/Products > fi >} > ># Summary: ># Parameters: ># $1 = /path/to/zope/instance/Products ># Returns: > >prods_add() >{ > local RESULT=1 > > if [ -d "${1}" ] ; then > for n in ${PROD_LST} ; do ># ln -fs ${MOD_DIR}${n} ${1} > cp -Ra ${MOD_DIR}${n} ${1} > done > RESULT=0 > fi > return ${RESULT} >} > ># Summary: ># Parameters: ># $1 = /path/to/zope/instance/Products > >prods_del() >{ > local RESULT=1 > > if [ -d "${1}" ] ; then > for n in ${PROD_LST} ; do > rm -f ${1}/${n} > done > RESULT=0 > fi > return ${RESULT} >} > ># Main > >PROD_DIR=$(find_zope_products_dir ${2}) >if [ "${#}" -ne 2 ] ; then > echo Usage: > echo -e "\t$(basename ${0}) add /path/to/zope/instance/" > echo -e "\t$(basename ${0}) del /path/to/zope/instance/" > echo -e "\nSummary:" > echo -e "\tAdd or delete ${PROD_NAME} symbolic links in /path/to/zope/instance" >elif [ -z ${PROD_DIR} ] ; then > echo "Error: ${2} isn't a zope instance directory." > exit 1 >elif [ "${1}" = "add" ] ; then > prods_add ${PROD_DIR} >elif [ "${1}" = "del" ] ; then > prods_del ${PROD_DIR} >else > echo "\"${1}\" is an unknown command. Should be 'add' or 'del'." >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14048
:
7379
| 7380