Skip to content

Commit

Permalink
Corrected file extensions in rosrepubs-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Lawrance committed Apr 11, 2016
1 parent 92b7e98 commit 553db15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rosrepub-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ fi
mkdir -p launch autosrc
touch -a autosrc/CMakeLists.txt

# Create (empty) launch file
LAUNCH_FILE="launch/$( echo $1 | cut -f1 -d "." ).launch"
# Create (empty) launch file
LAUNCH_FILE=${1##*/} # Remove leading directories
LAUNCH_FILE=${LAUNCH_FILE%.*} # Remove trailing extension
LAUNCH_FILE="launch/${LAUNCH_FILE}.launch"
echo "Adding publishers to launch file: ${LAUNCH_FILE} (will be overwritten)" >&2
# if [ ! -f $LAUNCH_FILE ] ; then
echo "<launch>" > $LAUNCH_FILE
Expand Down

0 comments on commit 553db15

Please sign in to comment.