Mercurial > hg > anonet-resdb
view scripts/update-git-remotes @ 819:f1f0ab9d41b7 draft
i changed the she-bang on configure from sh to bash because it
keeps giving people trouble:
/CA/pikaj00> ./configure: 132: Bad substitution
/CA/pikaj00> root@pikaj00-M-7323U:/services/ircd/resdb#
/relayhell/d3v11> use
/relayhell/d3v11> bash configure
/relayhell/d3v11> did you run that command on slackware?
/relayhell/d3v11> ./configure?
/CA/pikaj00> sorry
/CA/pikaj00> one sec
/CA/pikaj00> yes
/relayhell/d3v11> LOL
/relayhell/d3v11> then the problem is not ubuntu or debian
/CA/shuttle> =)
/relayhell/d3v11> if slackware has the same problem
/CA/pikaj00> bash
/CA/shuttle> what do you think pik
/CA/pikaj00> worked
author | d3v11 <d3v11@d3v11.ano> |
---|---|
date | Sat, 10 Dec 2011 22:23:18 +0000 |
parents | 3531789e64ef |
children | 2f57d4d36759 |
line wrap: on
line source
#!/bin/sh # # Creates git remotes from the user db # TODO: detect users' git address changes # if ! ./scripts/check_db_safety; then exit 1 fi USR_DB_DIR=./db/usr GIT_REPO=./.git GIT_REMOTES_DIR=$GIT_REPO/refs/remotes for u in `ls -1 $USR_DB_DIR`; do git_url_file="$USR_DB_DIR/$u/git" if [ -f $git_url_file ]; then git_url=`cat $git_url_file` git_remote_name="anonet_$u" if [ -d $GIT_REMOTES_DIR/$git_remote_name ]; then # The remote already exists; # TODO: Update it if it has changed. echo "skipping $u" >&2 else git remote add -t master -m master $git_remote_name $git_url fi fi done