Browse Source

* converted `sde commit` into bin/sde-commit command

git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@20976 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
e786d69ec4
2 changed files with 12 additions and 22 deletions
  1. +9
    -22
      bin/sde-commit
  2. +3
    -0
      lib/sde-commit.hlp

lib/sde-commit.in → bin/sde-commit

@ -1,3 +1,4 @@
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN --- # --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
@ -16,13 +17,12 @@
#Description: Commits into svn the changes on the given locations #Description: Commits into svn the changes on the given locations
#Alias: ci #Alias: ci
commit_usage() {
cat <<EOT
Usage: sde commit [--file <file>] <package> [<location> [...]] (Alias: ci)
set -e
Note: location can be a package name or an explicit file/directory
EOT
}
[ -n "$SDEROOT" ] ||
export SDEROOT=$( cd "${0%/*}/.."; pwd -P )
. $SDEROOT/lib/libsde.in
# svn or svk ? # svn or svk ?
# #
@ -32,12 +32,9 @@ else
SVN=svk SVN=svk
fi fi
# commit_main <locations>
#
commit_main() {
local locations= x= y=
local logfile=
local tmpfile=$SDEROOT/tmp/$$
locations= x= y=
logfile=
tmpfile=$SDEROOT/tmp/$$
mkdir -p "$SDEROOT/tmp" mkdir -p "$SDEROOT/tmp"
@ -152,13 +149,3 @@ fi
rm -f $tmpfile.status $tmpfile.diff rm -f $tmpfile.status $tmpfile.diff
[ "$logfile" != "$tmpfile.log" ] || rm -f "$logfile" [ "$logfile" != "$tmpfile.log" ] || rm -f "$logfile"
}
if [ "$module" == "commit" ]; then
if [ $# -gt 0 ]; then
commit_main "$@"
else
commit_usage
exit 1
fi
fi

+ 3
- 0
lib/sde-commit.hlp

@ -0,0 +1,3 @@
Usage: sde commit [--file <file>] <package> [<location> [...]] (Alias: ci)
Note: location can be a package name or an explicit file/directory

Loading…
Cancel
Save