File: open-new-source

package info (click to toggle)
derivations 0.53.20120414-1.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,208 kB
  • ctags: 486
  • sloc: cpp: 1,634; perl: 600; makefile: 153; sh: 116
file content (22 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

# This bash shell pseudoscript opens a new development source tree.

if   [[ $MAINTENV != derivations ]] ; then
  echo 1>&2 "Please run helper/maintenv first."
  false
elif [[ ! $PWD -ef $E/$P-$V.$D1  ]] ; then
  echo 1>&2 "Please run from the top source directory $E/$D1."
  false
elif [[ -e $P-$V.$D2             ]] ; then
  echo 1>&2 "Sorry, but $P-$V.$D2 already exists."
  false
else
  # Open a full new upstream tree.
  cd ..
  cp -a $P-$V.{$D1,$D2}
  cd $P-$V.$D2
  bash - helper/letexec
  helper/extend-changelog
  helper/update-date -c $D2
fi